/* ═══════════════════════════════════════════════════
   Meridian Careers — style.css
   Editorial · Luxury · Refined
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea, button { font: inherit; }

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  /* Colors */
  --ink:        #0b0c10;
  --ink-soft:   #1c1e27;
  --ink-muted:  #3a3d4a;
  --surface:    #f5f3ee;
  --surface-2:  #ece9e0;
  --surface-3:  #ffffff;
  --gold:       #c9a84c;
  --gold-light: #e4c97e;
  --gold-glow:  rgba(201,168,76, 0.18);
  --accent:     #6b4f2f;
  --error:      #c0392b;
  --success:    #2d7a4f;
  --success-bg: #edf7f1;
  --error-bg:   #fdf0ee;
  --border:     rgba(11,12,16, 0.12);
  --border-focus: var(--gold);
  --shadow-sm:  0 2px 8px rgba(11,12,16,0.06);
  --shadow-md:  0 6px 24px rgba(11,12,16,0.10);
  --shadow-lg:  0 20px 60px rgba(11,12,16,0.14);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Dark Mode Overrides ───────────────────────────── */
[data-theme="dark"] {
  --ink:        #f0ede6;
  --ink-soft:   #e0ddd4;
  --ink-muted:  #9a9585;
  --surface:    #0e0f14;
  --surface-2:  #171921;
  --surface-3:  #1e2030;
  --border:     rgba(240,237,230, 0.10);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.30);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.40);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.50);
  --error-bg:   rgba(192,57,43,0.15);
  --success-bg: rgba(45,122,79,0.15);
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ─── Body ──────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

/* ════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  gap: var(--sp-8);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--gold); }
.theme-toggle {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  margin-left: var(--sp-2);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  margin-left: var(--sp-2);
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: var(--sp-3) 0;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.mobile-menu.open { display: flex; }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(64px + var(--sp-20)) var(--sp-6) var(--sp-20);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, #8b6e3a 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  animation: heroReveal 1s var(--ease) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 99px;
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: var(--sp-6);
  animation: heroReveal 1s 0.1s var(--ease) both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-6);
  animation: heroReveal 1s 0.2s var(--ease) both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  line-height: 1.75;
  animation: heroReveal 1s 0.3s var(--ease) both;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--ink);
  color: var(--surface);
  padding: var(--sp-4) var(--sp-8);
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  animation: heroReveal 1s 0.4s var(--ease) both;
  position: relative;
  overflow: hidden;
}
.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: -1;
  border-radius: inherit;
}
.hero-cta:hover { color: var(--ink); box-shadow: 0 8px 28px var(--gold-glow); }
.hero-cta:hover::after { transform: scaleX(1); }
.hero-cta i { transition: transform 0.3s var(--ease-spring); }
.hero-cta:hover i { transform: translateY(4px); }

/* Progress bar */
.progress-wrap {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-16);
  width: 100%;
  max-width: 420px;
  animation: heroReveal 1s 0.5s var(--ease) both;
}
.progress-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.03em;
}
#progressPct { color: var(--gold); font-weight: 600; }
.progress-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}

/* ════════════════════════════════════════════
   FORM SECTION
   ════════════════════════════════════════════ */
main#form-section {
  padding: var(--sp-20) var(--sp-6);
  background: var(--surface-2);
}
.form-container {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface-3);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: formSlideIn 0.8s 0.2s var(--ease) both;
}
@keyframes formSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-header {
  padding: var(--sp-10) var(--sp-10) 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-8);
  background: linear-gradient(135deg, var(--surface-3) 60%, var(--gold-glow));
}
.form-step-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.form-subtitle {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.form-subtitle abbr { text-decoration: none; color: var(--error); }

form {
  padding: var(--sp-8) var(--sp-10) var(--sp-10);
  display: grid;
  gap: var(--sp-6);
}

/* Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

/* Field groups */
.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.field-group.full-width { grid-column: 1 / -1; }

/* Labels */
.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field-label span { color: var(--error); margin-left: 2px; }

/* Input wrap */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 1;
}

/* Base input */
.field-input {
  width: 100%;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
}
.field-input::placeholder { color: var(--ink-muted); opacity: 0.6; }
.field-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--surface-3);
}
.field-input:focus + .input-icon,
.input-wrap:focus-within .input-icon { color: var(--gold); }

/* Valid / Invalid states */
.field-group.is-valid .field-input {
  border-color: var(--success);
  background: var(--success-bg);
}
.field-group.is-invalid .field-input {
  border-color: var(--error);
  background: var(--error-bg);
}
.field-group.is-invalid { animation: shake 0.4s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* Validation icons inside input */
.field-group.is-valid .input-wrap::after,
.field-group.is-invalid .input-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  width: 18px; height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.field-group.is-valid .input-wrap::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d7a4f'%3E%3Cpath d='M9 12l2 2 4-4m5 2a9 9 0 11-18 0 9 9 0 0118 0z' stroke='%232d7a4f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field-group.is-invalid .input-wrap::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23c0392b' stroke-width='2' fill='none'/%3E%3Cpath d='M12 8v4m0 4h.01' stroke='%23c0392b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Select */
.select-wrap { position: relative; }
.field-select { cursor: pointer; }
.select-arrow {
  position: absolute;
  right: 14px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  pointer-events: none;
  transition: transform 0.2s;
}
.input-wrap:focus-within .select-arrow { transform: rotate(180deg); color: var(--gold); }

/* Textarea */
.field-textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: var(--sp-4);
  line-height: 1.6;
}
.textarea-wrap { align-items: flex-start; }
.textarea-wrap .input-icon { top: 16px; }
.textarea-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}
.char-counter {
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.char-counter.warning { color: var(--error); }
.char-counter.ok { color: var(--success); }

/* Error & hint messages */
.field-error {
  font-size: 0.775rem;
  color: var(--error);
  min-height: 1em;
  transition: all 0.2s;
}
.field-error:empty { display: none; }
.field-hint {
  font-size: 0.775rem;
  color: var(--ink-muted);
}

/* ─── Resume Upload ─────────────────────────────────── */
.resume-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-8);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}
.resume-upload-zone:hover,
.resume-upload-zone:focus {
  border-color: var(--gold);
  background: var(--gold-glow);
  outline: none;
}
.resume-upload-zone.has-file {
  border-color: var(--success);
  background: var(--success-bg);
}
.resume-input { display: none; }
.upload-icon { font-size: 2rem; color: var(--ink-muted); }
.resume-upload-zone:hover .upload-icon,
.resume-upload-zone:focus .upload-icon { color: var(--gold); }
.upload-main-text { font-size: 0.9rem; color: var(--ink-muted); font-weight: 500; }
.upload-sub-text { font-size: 0.775rem; color: var(--ink-muted); opacity: 0.7; }

/* ─── Radio Buttons ─────────────────────────────────── */
.radio-group { border: none; }
.radio-group legend { margin-bottom: var(--sp-3); }
.radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.radio-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.radio-option:hover { color: var(--ink); }
.radio-option input[type="radio"] { display: none; }
.radio-custom {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.radio-custom::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.2s var(--ease-spring);
}
.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: var(--gold);
}
.radio-option input[type="radio"]:checked + .radio-custom::after {
  transform: scale(1);
}

/* ─── Checkbox ──────────────────────────────────────── */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}
.checkbox-custom::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s var(--ease-spring);
  margin-top: -2px;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  transform: rotate(-45deg) scale(1);
}
.inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Submit Button ─────────────────────────────────── */
.form-actions { display: flex; justify-content: center; margin-top: var(--sp-4); }
.submit-btn {
  position: relative;
  padding: var(--sp-4) var(--sp-12);
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  min-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}
.submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.submit-btn:not(:disabled):hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 30px var(--gold-glow);
  transform: translateY(-2px);
}
.submit-btn:not(:disabled):active { transform: translateY(0); }
.btn-spinner,
.btn-success-icon { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-spinner { display: inline-flex; }
.submit-btn.done .btn-text { display: none; }
.submit-btn.done .btn-success-icon { display: inline-flex; }

/* Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  pointer-events: none;
}
.btn-ripple.animate {
  animation: ripple 0.6s var(--ease);
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ════════════════════════════════════════════
   SUCCESS MODAL
   ════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,12,16,0.65);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--surface-3);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
}
.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}
.modal-icon { margin-bottom: var(--sp-6); }
.check-circle {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 12px 30px var(--gold-glow);
  animation: popIn 0.5s 0.2s var(--ease-spring) both;
}
@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--sp-4);
  color: var(--ink);
}
.modal-body {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}
.modal-name {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: var(--sp-6);
}
.modal-countdown {
  font-size: 0.775rem;
  color: var(--ink-muted);
  margin-bottom: var(--sp-6);
}
#countdownNum { color: var(--gold); font-weight: 700; }
.modal-close-btn {
  background: var(--ink);
  color: var(--surface);
  padding: var(--sp-3) var(--sp-8);
  border: none;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close-btn:hover { background: var(--gold); color: var(--ink); }

/* ════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--surface);
  padding: var(--sp-3) var(--sp-6);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow-md);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error-toast { background: var(--error); }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  padding: var(--sp-16) var(--sp-6);
  background: var(--ink-soft);
  text-align: center;
}
.footer-inner { max-width: 480px; margin: 0 auto; }
.site-footer .nav-logo {
  justify-content: center;
  color: var(--surface);
  margin-bottom: var(--sp-4);
}
.site-footer .logo-text { color: var(--surface); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-8);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .form-header { padding: var(--sp-6); }
  form { padding: var(--sp-6); gap: var(--sp-5); }
  .form-container { border-radius: var(--r-lg); }
  .modal-card { padding: var(--sp-8) var(--sp-6); }
  .hero-title { font-size: 2.4rem; }
}
@media (max-width: 480px) {
  .hero-cta { padding: var(--sp-3) var(--sp-6); }
  .submit-btn { min-width: unset; width: 100%; }
  .radio-options { gap: var(--sp-3); }
}

/* ─── Focus-visible for keyboard nav ────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Scroll reveal helper ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
