/* ==========================================================================
   AGW Financial - Minimalist Recruitment Portal
   Local CSS Only - Zero CDNs - Deep Navy, Royal Purple & Ambient Animated Mesh
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  
  --color-primary: #121024;
  --color-accent: #6d28d9;
  --color-accent-light: #7c3aed;
  --color-accent-hover: #5b21b6;
  --color-bg: #f8fafc;
  --color-card: rgba(255, 255, 255, 0.94);
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(18, 16, 36, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Modern CSS Background Animation */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.bg-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(109, 40, 217, 0.05) 70%, transparent 100%);
  top: -120px;
  left: -100px;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.18) 0%, rgba(99, 102, 241, 0.06) 70%, transparent 100%);
  bottom: 10%;
  right: -150px;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.bg-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.10) 0%, rgba(139, 92, 246, 0.04) 70%, transparent 100%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseOrb 14s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.08); }
  100% { transform: translate(-40px, 120px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.1); }
  100% { transform: translate(40px, -100px) scale(0.92); }
}

@keyframes pulseOrb {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-45%, -45%) scale(1.15); opacity: 0.8; }
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.brand-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(109, 40, 217, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(109, 40, 217, 0.15);
}

.job-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.job-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-icon {
  width: 15px;
  height: 15px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Content Cards & Clean Spacing */
.card {
  background: var(--color-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(18, 16, 36, 0.1);
}

h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 6px;
  display: inline-block;
}

h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 24px 0 10px;
}

p {
  margin-bottom: 14px;
  color: #334155;
  font-size: 0.98rem;
}

ul {
  list-style: none;
  margin-bottom: 16px;
}

ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #334155;
}

ul li::before {
  content: "—";
  color: var(--color-accent);
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 0;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.35);
}

/* Disclosure */
.disclosure-box {
  background: rgba(241, 245, 249, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 3px solid var(--color-accent);
  padding: 20px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
  margin-top: 32px;
  margin-bottom: 28px;
}

/* HTMX Spinner & Confirmation */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline-block;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert-success {
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
  color: #4c1d95;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}

.alert-success h3 {
  color: #4c1d95;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .job-title {
    font-size: 1.6rem;
  }
}
