/* =================================================================
   CANDIDATER.CSS — Candidature page specific styles
   Extends /style.css (VibesMoney design system).
   Uses the same tokens (--accent, --paper, --ink, --card-bg, --border).
================================================================= */

/* Layout wrapper */
.apply-body { min-height: 100vh; }
.apply-main { padding-top: 90px; position: relative; z-index: 1; }

/* ---- HERO ------------------------------------------------------ */
.apply-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
}
.apply-hero-inner {
  max-width: var(--narrow);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.apply-hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin: .4rem auto 1rem;
  line-height: 1.02;
}
.apply-hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 800;
}
.apply-hero-sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}
.apply-hero-kicker {
  display: block;
  margin-top: .4rem;
  font-weight: 700;
  color: var(--text);
  font-size: .92rem;
  letter-spacing: .01em;
}
.apply-hero-meta {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.apply-hero-meta .final-pill { background: var(--card-bg); border: 1px solid var(--border); box-shadow: 0 2px 0 var(--border); }

/* ---- FORM SECTION --------------------------------------------- */
.apply-form-section { padding: 1.5rem 0 5rem; }

/* Reassurance strip horizontale au-dessus du form */
.apply-reassurance {
  max-width: 920px;
  margin: 0 auto 1.8rem;
}
.reassurance-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.reassurance-steps li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--border), 0 4px 14px rgba(0, 0, 0, .08);
}
[data-theme="light"] .reassurance-steps li {
  box-shadow: 0 3px 0 var(--border), 0 4px 14px rgba(90, 60, 20, .08);
}
.reassurance-n {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800; font-size: .92rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.reassurance-steps strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .92rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .15rem;
}
.reassurance-steps em {
  font-style: normal;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Container — single column, centered. Élargit en mode succès pour Cal.com */
.apply-grid {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  transition: max-width .35s ease;
}
.apply-grid.is-success {
  max-width: 1080px;
}

/* Stats strip sous le form */
.apply-stats-strip {
  max-width: 760px;
  margin: 1.6rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.apply-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .9rem .6rem;
  border-right: 1px dashed var(--border);
}
.apply-stat:last-child { border-right: 0; }
.apply-stat-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.apply-stat-pct { font-size: 1rem; font-weight: 800; margin-left: 1px; }
.apply-stat-l {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .01em;
  line-height: 1.3;
}

/* ---- FORM PAPER ------------------------------------------------ */
.apply-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.8rem 3rem 2.4rem;
  box-shadow: 0 4px 0 var(--border), 0 12px 36px rgba(0, 0, 0, .18);
  position: relative;
  min-height: 500px;
}
/* Sur succès: enlever le padding intérieur étouffant pour le cal embed */
.apply-grid.is-success .apply-form-wrap {
  padding: 2.4rem 2.2rem 2rem;
}
[data-theme="light"] .apply-form-wrap {
  box-shadow:
    0 4px 0 var(--border),
    0 12px 32px rgba(90, 60, 20, .12);
}

/* ---- PROGRESS RAIL -------------------------------------------- */
.apply-progress { margin-bottom: 2rem; }
.apply-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .6rem;
}
.apply-progress-step {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums lining-nums;
}
.apply-progress-step .mono:nth-of-type(2) { color: var(--accent); }
.apply-progress-sep { opacity: .4; margin: 0 .2em; }
.apply-progress-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}
.apply-progress-rail {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  overflow: visible;
}
.apply-progress-fill {
  height: 100%;
  width: 33.3%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 0 14px var(--accent-glow);
}
.apply-progress-tick {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  transform: translate(-50%, -50%);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.apply-progress-tick[data-step="1"] { left: 0%; }
.apply-progress-tick[data-step="2"] { left: 50%; }
.apply-progress-tick[data-step="3"] { left: 100%; }
.apply-progress-tick.is-done {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.apply-progress-tick.is-current {
  border-color: var(--accent);
  background: var(--bg-alt);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 12px var(--accent-glow);
}

/* ---- FORM PANES ----------------------------------------------- */
.apply-step-pane {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
  animation: paneIn .5s cubic-bezier(.2, .8, .2, 1);
}
.apply-step-pane.is-active { display: block; }
@keyframes paneIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.pane-head { margin-bottom: 1.6rem; }
.pane-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: .25rem .55rem;
  border-radius: 4px;
  margin-bottom: .7rem;
  text-transform: uppercase;
}
.pane-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: .4rem;
}
.pane-sub {
  font-size: .96rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 540px;
}

/* ---- FIELDS ---------------------------------------------------- */
.field { margin-bottom: 1.3rem; position: relative; }
.field-grid { display: grid; gap: 1.3rem; margin-bottom: 1.3rem; }
.field-grid--2 { grid-template-columns: 1fr 1fr; }
.field-grid .field { margin-bottom: 0; }

.field label {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: .5rem;
}
.field .req { color: var(--accent); margin-left: .15em; }
.field .opt {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .74rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .95rem 1rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}
[data-theme="light"] .field input[type="text"],
[data-theme="light"] .field input[type="email"],
[data-theme="light"] .field input[type="url"],
[data-theme="light"] .field input[type="tel"],
[data-theme="light"] .field textarea,
[data-theme="light"] .field select {
  background: #FAF5E9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.field input[type="text"]:hover,
.field input[type="email"]:hover,
.field input[type="url"]:hover,
.field input[type="tel"]:hover,
.field textarea:hover,
.field select:hover { border-color: var(--text-muted); }
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="url"]:focus,
.field input[type="tel"]:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-alt);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: .5;
}
.field.is-error input,
.field.is-error textarea,
.field.is-error select {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .18);
}
.field-hint {
  display: block;
  margin-top: .4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--text-muted);
  opacity: .7;
  letter-spacing: .06em;
}

/* Select custom chevron */
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
  cursor: pointer;
}

/* ---- RADIO CARDS (stage) ------------------------------------- */
.radio-cards {
  display: grid;
  gap: .7rem;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  box-shadow: 0 2px 0 var(--border);
  position: relative;
}
.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.radio-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
  box-shadow: 0 4px 0 var(--border);
}
.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 3px 0 var(--accent-active), 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.rc-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.radio-card:has(input:checked) .rc-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.rc-body { display: flex; flex-direction: column; gap: .15rem; }
.rc-body strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  letter-spacing: -.005em;
}
.rc-body em {
  font-size: .82rem;
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.4;
}

.radio-cards--compact { grid-template-columns: repeat(3, 1fr); }
.radio-cards--compact .radio-card { flex-direction: column; text-align: center; gap: .5rem; padding: 1.1rem .8rem; }
.radio-cards--compact .rc-num { width: 32px; height: 32px; font-size: .95rem; }
.radio-cards--compact .rc-body { align-items: center; }

/* Simple checkmark icon inside compact radio cards */
.rc-check svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  display: block;
  transition: color .18s ease;
}
.radio-card:has(input:checked) .rc-check svg { color: #fff; }

/* ---- RADIO CHIPS (hours) ------------------------------------ */
.radio-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.radio-chip {
  position: relative;
  cursor: pointer;
}
.radio-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.radio-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem .7rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  transition: all .18s ease;
  box-shadow: 0 2px 0 var(--border);
}
.radio-chip:hover span { border-color: var(--text-muted); transform: translateY(-1px); }
.radio-chip:has(input:checked) span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 0 var(--accent-active);
  transform: translateY(-1px);
}

/* ---- CHECKBOX LINE ----------------------------------------- */
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 1.3rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: border-color .2s ease, background .2s ease;
}
.checkbox-line:hover { border-color: var(--accent); }
.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-line:has(input:checked) {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--text);
}

/* ---- PANE NAV (buttons) ------------------------------------ */
.pane-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.pane-nav .btn--accent { margin-left: auto; }
.pane-nav-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--text-muted);
  opacity: .6;
  letter-spacing: .04em;
}

/* ---- SUBMIT BUTTON (with spinner) ------------------------- */
#submitBtn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  position: relative;
}
#submitBtn .sb-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: sbSpin .7s linear infinite;
}
#submitBtn.is-loading .sb-spinner { display: inline-block; }
#submitBtn.is-loading .sb-arrow { display: none; }
#submitBtn.is-loading .sb-label::after { content: '…'; }
#submitBtn[disabled] { opacity: .65; cursor: not-allowed; }
@keyframes sbSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* ---- SUCCESS VIEW ------------------------------------------ */
.apply-success {
  animation: succIn .6s cubic-bezier(.2, .8, .2, 1);
}
@keyframes succIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-top {
  text-align: center;
  padding: 1rem 0 2rem;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 2rem;
}
.success-badge {
  display: inline-flex;
  width: 76px;
  height: 76px;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.success-badge svg { width: 100%; height: 100%; }
.sb-circle {
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  animation: sbDrawCircle .7s cubic-bezier(.2, .8, .2, 1) .1s forwards;
}
.sb-check {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: sbDrawCheck .4s cubic-bezier(.2, .8, .2, 1) .75s forwards;
}
@keyframes sbDrawCircle { to { stroke-dashoffset: 0; } }
@keyframes sbDrawCheck  { to { stroke-dashoffset: 0; } }
.success-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: .25rem .55rem;
  border-radius: 4px;
  margin-bottom: .8rem;
}
.success-top .body-text { margin-left: auto; margin-right: auto; }

/* Cal.com embed frame */
.cal-wrap { margin-top: 1.4rem; }
.cal-head { margin-bottom: 1.4rem; text-align: center; }
.cal-head .label { display: inline-block; margin-bottom: .6rem; }
.cal-h {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: .5rem;
}
.cal-sub { font-size: .95rem; color: var(--text-muted); line-height: 1.5; max-width: 520px; margin: 0 auto; }
.cal-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .4rem;
  background: var(--card-bg);
  min-height: 760px;
  position: relative;
  box-shadow: 0 4px 0 var(--border), 0 8px 22px rgba(0, 0, 0, .12);
  /* overflow visible: laisse Cal.com gérer son propre scroll interne sans
     conflit, et ne coupe pas les modales/popovers internes */
  overflow: visible;
}
.cal-frame > div,
.cal-frame iframe {
  width: 100%;
  min-height: 750px;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 10px;
}
.cal-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.success-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.success-footer-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.restart-btn {
  letter-spacing: .02em;
}
.success-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  opacity: .7;
}

/* Utility — police des chiffres unifiée (= police hero / .h3d).
   Toutes les valeurs numériques de la page candidater l'utilisent. */
.mono {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Nav active state for apply page */
.nav-links a.is-active {
  color: var(--accent);
  position: relative;
}
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 880px) {
  .reassurance-steps { grid-template-columns: 1fr; gap: .6rem; }
  .reassurance-steps li { padding: .75rem .9rem; }
  .apply-form-wrap { padding: 2.2rem 1.8rem 1.8rem; }
  .apply-stats-strip { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
}

@media (max-width: 640px) {
  .apply-main { padding-top: 80px; }
  .apply-hero { padding: 2rem 0 1.5rem; }
  .apply-hero-title { font-size: 2rem; }
  .apply-hero-sub { font-size: .95rem; }
  .apply-hero-meta { margin-top: 1.2rem; }
  .apply-form-wrap { padding: 1.5rem 1.2rem 1.3rem; }
  .apply-progress-head { flex-direction: column; align-items: flex-start; gap: .2rem; }

  .field-grid--2 { grid-template-columns: 1fr; }
  .radio-cards--compact { grid-template-columns: 1fr; }
  .radio-chips { grid-template-columns: repeat(2, 1fr); }

  .pane-nav { justify-content: space-between; }
  .pane-nav .btn--accent { margin-left: 0; flex: 1; justify-content: center; }
  .pane-nav-hint { display: none; }

  .cal-frame { min-height: 640px; }
  .cal-frame > div, .cal-frame iframe { min-height: 640px; }
}

/* ---- INTL-TEL-INPUT (WhatsApp field) ---------------------- */
.field--phone .iti { width: 100%; display: block; }
.field--phone .iti__tel-input { width: 100%; }

/* Country selector button (left of input) */
.field--phone .iti__country-container { background: transparent; }
.field--phone .iti__selected-country {
  background: transparent;
  border-right: 1px solid var(--border);
  padding: 0 .85rem 0 1rem;
  border-radius: 10px 0 0 10px;
  transition: background .18s ease, border-color .18s ease;
}
.field--phone .iti__selected-country:hover,
.field--phone .iti__selected-country:focus {
  background: var(--accent-subtle);
  outline: none;
}
.field--phone .iti__selected-country-primary { gap: .5rem; }
.field--phone .iti__selected-dial-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text);
  letter-spacing: .01em;
}
.field--phone .iti__arrow {
  border-top-color: var(--text-muted);
  margin-left: .35rem;
}

/* Country list popover — match the paper card aesthetic */
.field--phone .iti__country-list,
.iti__country-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--border), 0 12px 28px rgba(0, 0, 0, .18);
  overflow: hidden;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  max-height: 280px;
}
.iti__search-input {
  background: var(--bg-alt);
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  padding: .75rem 1rem;
  font-size: .92rem;
}
.iti__search-input::placeholder { color: var(--text-muted); opacity: .7; }
.iti__country {
  padding: .55rem .85rem;
  font-size: .88rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.iti__country:last-child { border-bottom: 0; }
.iti__country .iti__country-name { color: var(--text); }
.iti__country .iti__dial-code { color: var(--text-muted); font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums lining-nums; }
.iti__country.iti__highlight,
.iti__country:hover {
  background: var(--accent-subtle);
}
.iti__country.iti__active {
  background: var(--accent-subtle);
  border-left: 2px solid var(--accent);
}

/* Validation states */
.field--phone.is-error .iti__selected-country { border-right-color: var(--red); }
.field--phone.is-valid input[type="tel"] {
  border-color: var(--accent);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .apply-step-pane, .apply-success, .sb-spinner, .sb-circle, .sb-check {
    animation: none !important;
  }
}
