/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-primary: #1d62a9;
  --blue-dark:    #003c79;
  --white:        #ffffff;
  --text-light:   #f0f3f7;
  --text-muted:   #e2e2e2;

  --card-radius:  24px;   /* Figma: cornerRadius 24 */
  --card-pad:     28px;
  --card-shadow:  0 25px 50px rgba(0, 0, 0, 0.25); /* Figma: DROP_SHADOW y=25 r=50 */

  /* Liquid glass shared values */
  --glass-fill:   linear-gradient(135deg, rgba(255,255,255,0.18) 3%, rgba(255,255,255,0.06) 96%);
  --glass-blur:   blur(14px);
  --glass-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);

  --mobile-w: 402px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--blue-primary);
  color: var(--white);
  max-width: var(--mobile-w);
  margin: 0 auto;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: #ffffff;
  color: #003c79;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

img { display: block; max-width: 100%; }

/* ── Background texture ────────────────────────────────────────────
   Top-left positioned, second visible layer behind all components  */
.bg-texture {
  position: absolute;
  left:    0;
  top:     0;
  width:   100%;
  height:  auto;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 20px 28px;
  background: transparent;
  z-index: 1;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.logo {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ── Liquid glass mixin (reused on slogan band + contact form) ──── */
.slogan-band,
.contact-section {
  position: relative;
  isolation: isolate;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* Gradient border shared by slogan band and contact section */
.slogan-band::before,
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  background: radial-gradient(
    ellipse at 0% 0%,
    rgba(255, 255, 255, 0.81) 0%,
    rgba(255, 255, 255, 0.19) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* ── Slogan band ─────────────────────────────────────────────────── */
.slogan-band {
  margin: 0 -20px;
  padding: 20px;
  text-align: center;
}

.slogan {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-light);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 30, 80, 0.25);
}

/* Metrics row */
.metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding: 0 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.metric {
  display: flex;
  align-items: center;
  gap: 14px;
}

.check-icon { flex-shrink: 0; display: flex; }

.metric-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}

/* ── CARD SECTIONS ─────────────────────────────────────────────────
   Figma: cornerRadius=24, fill=#003c79,
          DROP_SHADOW y=25 radius=50 rgba(0,0,0,0.25)              */
.card-section {
  background: linear-gradient(to bottom, #003c79 50%, #3885d4 100%);
  border-radius: var(--card-radius);
  margin: 10px 10px;
  padding: 40px var(--card-pad) 36px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--card-shadow);
}

/* Gradient border stroke removed per design revision */

/* Figma icon images replacing hand-drawn SVGs */
.card-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.25;
}

.card-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
  text-align: center;
}

/* Trustd ID card: text centred, no image */
.card-desc--center {
  text-align: center;
}

/* ── MOBILE SCREEN (Secure Load) — single Figma-rendered image ── */
.mobile-screen-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.mobile-screen-full-img {
  width: 220px;
  height: auto;
  display: block;
}

/* ── UNLOCK MORE ───────────────────────────────────────────────────── */
.unlock-section {
  background: linear-gradient(to bottom, #003c79 50%, #3885d4 100%);
  border-radius: var(--card-radius);
  margin: 10px 10px;
  padding: 40px 0 32px;
  position: relative;
  z-index: 1;
  box-shadow: var(--card-shadow);
}

/* Unlock section gradient border removed per design revision */

.unlock-section .card-icon-wrap,
.unlock-section .card-title {
  padding: 0 var(--card-pad);
}

/* Horizontal scroll track */
.feature-scroll-container {
  margin-top: 24px;
  /* overflow: visible (default) — allows card box-shadows to render outside
     the track's own box without being clipped. Horizontal scroll is handled
     entirely by overflow-x: auto on the track itself.                        */
}

.feature-scroll-track {
  display: flex;
  gap: 14px;
  padding: 0 32px 36px;   /* 32px sides ≥ shadow blur; 36px bottom = 8px offset + 28px blur */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feature-scroll-track::-webkit-scrollbar { display: none; }

.feature-card {
  flex: 0 0 calc(100% - 64px); /* always 32px inset each side from outer card */
  max-width: calc(100% - 64px);
  background: var(--white);
  border-radius: 14px;
  padding: 24px 24px 0;
  scroll-snap-align: start;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  /* Column flex so NFC image stays pinned to bottom as white frame expands */
  display: flex;
  flex-direction: column;
}

/* ── PRECHECK CARD (new structured design) ───────────────────────────
   Outer shell reuses .feature-card — same dimensions, bg, radius,
   padding, and flex layout as the Driver Check-in card.              */

/* Image frame: full-width bleed, pushed to bottom, light gradient bg */
.precheck-img-frame {
  margin: 0 -24px;
  margin-top: auto;
  padding: 16px;
  background: linear-gradient(135deg, #f9f7f8 0%, #f8f7f8 100%);
  border-top: 1px solid #edf2f8;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 48px);
  cursor: pointer;
  text-align: inherit;
}

/* Container sized by image — no fixed height needed now that the
   QR code is baked into precheck-card.png (3905×5509 px, AR 0.709) */
.precheck-inner-card {
  width: 153px;
  height: auto;
  position: relative;
  flex-shrink: 0;
}

.precheck-card-visual {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
}

.feature-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.feature-card-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--blue-dark);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-card-img-wrap {
  display: flex;
  justify-content: center;
  margin: 0 -24px;
  margin-top: auto; /* push NFC image to bottom as white frame expands */
  background: linear-gradient(135deg, #f9f7f8 0%, #f8f7f8 100%);
  border-top: 1px solid #edf2f8;
  border-radius: 0;
  padding: 16px;
}

.feature-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
}

/* Scroll dots */
.scroll-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: -12px; /* compensates for 36px track bottom padding (was 8px) → net ~16px gap */
  padding-bottom: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.2s;
}

.dot.active { background: var(--white); }

/* ── CONTACT FORM — liquid glass ─────────────────────────────────
   Full-bleed: no side margins, no corner radius                  */
.contact-section {
  margin: 10px 0 0;
  padding: 40px var(--card-pad) 48px;
  border-radius: 0;
}

.contact-title {
  font-family: 'Arimo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-field {
  flex: 1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'Arimo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  padding: 8px 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  resize: none;
}

.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus { border-color: rgba(255,255,255,0.8); }


.form-textarea { resize: none; height: 80px; }

.submit-btn {
  margin-top: 8px;
  background: var(--white);
  color: var(--blue-dark);
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  cursor: pointer;
  transition: opacity 0.22s ease, background 0.3s ease, color 0.3s ease, transform 0.1s;
  width: 100%;
  letter-spacing: 0.01em;
}

.submit-btn:hover { opacity: 0.92; }
.submit-btn:active { transform: scale(0.98); }

/* ── Card CTA — scroll-to-contact link on Trustd ID + Secure Load ── */
.card-cta {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  background: var(--white);
  color: var(--blue-dark);
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 32px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.22s ease, transform 0.1s;
}
.card-cta:hover  { opacity: 0.88; }
.card-cta:active { transform: scale(0.98); }

.submit-btn.sent {
  background: #17ba66;
  color: white;
  pointer-events: none;
}

/* Momentary invisible state used during the sent→default crossfade */
.submit-btn.fading {
  opacity: 0;
  pointer-events: none;
}

/* Error state */
.submit-btn.error {
  background: #e53e3e;
  color: white;
  pointer-events: none;
}

/* ── CUSTOM SELECT / DROPDOWN ─────────────────────────────────────────
   Trigger matches existing form-input style; dropdown is liquid glass
   matching .slogan-band / .contact-section treatment.                 */

.custom-select { position: relative; }

/* Trigger — styled like form inputs but as a flex button */
.custom-select-trigger {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

/* Hover state — web pointer devices only */
@media (hover: hover) {
  .custom-select-trigger:hover { border-color: rgba(255, 255, 255, 0.8); }
}

.custom-select-trigger:focus,
.custom-select.open .custom-select-trigger {
  border-color: rgba(255, 255, 255, 0.8);
}

.custom-select-value { flex: 1; }
.custom-select-value.placeholder { color: rgba(255, 255, 255, 0.4); }

/* Animated chevron */
.custom-select-chevron {
  flex-shrink: 0;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.22s ease;
}
.custom-select.open .custom-select-chevron { transform: rotate(180deg); }

/* ── Dropdown panel — liquid glass ── */
.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left:  -8px;   /* 20px inset from contact-section edge (28px pad − 8px) */
  right: -8px;
  z-index: 200;
  list-style: none;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  /* Glass fill — high opacity + extreme blur to fully obscure background text */
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 3%, rgba(255,255,255,0.82) 96%);
  backdrop-filter: blur(120px) saturate(1.4);
  -webkit-backdrop-filter: blur(120px) saturate(1.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.custom-select.open .custom-select-dropdown { display: block; }

/* Gradient border — same mask trick as .slogan-band::before */
.custom-select-dropdown::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 14px;
  background: radial-gradient(
    ellipse at 0% 0%,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Option rows */
.custom-select-option {
  padding: 14px 20px;
  color: #003c79;
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.14s;
  border-bottom: 1px solid rgba(0, 60, 121, 0.10);
  user-select: none;
  -webkit-user-select: none;
}
.custom-select-option:last-child { border-bottom: none; }

/* Hover state — web pointer devices only */
@media (hover: hover) {
  .custom-select-option:hover { background: rgba(0, 60, 121, 0.07); }
}

/* Active / tap state — web + mobile */
.custom-select-option:active { background: rgba(0, 60, 121, 0.14); }

/* Persisted selected state */
.custom-select-option.selected {
  background: rgba(0, 60, 121, 0.08);
  font-weight: 700;
}

/* "Other" free-text input — animated reveal below the select */
.occupation-other-input {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}
.occupation-other-input.visible {
  max-height: 60px;
  opacity: 1;
  margin-top: 14px;
  pointer-events: auto;
}

/* ── RESPONSIVE GUARD ─────────────────────────────────────────────── */
@media (min-width: 420px) {
  body {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 8px 48px rgba(0,0,0,0.2);
    border-radius: 4px;
  }
}

/* ================================================================
   DESKTOP LAYOUT  ≥ 768px
   Mobile layout (< 768px) is unchanged.
   Scale factors: fonts ~1.35×, spacing ~1.4×, images ~1.35×
   ================================================================ */
@media (min-width: 768px) {

  /* ── Body: expand from 402px phone shell ──
     Nullifies the 420px guard's box-shadow + border-radius         */
  body {
    max-width: 900px;
    box-shadow: none;
    border-radius: 0;
  }

  /* ── Hero ──────────────────────────────────────────────────────
     48px side padding is the anchor value — slogan-band bleed
     must exactly cancel it (margin: 0 -48px below).               */
  .hero {
    padding: 100px 48px 40px;
  }

  .logo-wrap { margin-bottom: 67px; }
  .logo      { width: 220px; }

  .slogan-band {
    margin: 0 -28px;        /* hero padding (48) − 28 = 20px from body edge → aligns with cards */
    padding: 28px 48px;
    border-radius: var(--card-radius);
  }
  /* ::before gradient stroke must follow the new border-radius, same fix as contact section */
  .slogan-band::before {
    border-radius: var(--card-radius);
  }
  .slogan { font-size: 27px; }

  /* Replace the brittle 51px left-pad centering hack with auto margins */
  .metrics {
    margin-top: 40px;
    padding: 0;
    gap: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .metric         { gap: 18px; }
  .metric-text    { font-size: 24px; }
  .check-icon svg { width: 46px; height: 46px; }

  /* ── Card sections (shared) ──────────────────────────────────── */
  .card-section {
    margin: 14px 20px;
    padding: 56px 40px 50px;
  }
  .card-icon-wrap { margin-bottom: 34px; }
  .card-icon-img  { width: 80px; height: 80px; }
  .card-title     { font-size: 32px; margin-bottom: 25px; }
  .card-desc      { font-size: 20px; }

  /* ── Trustd ID — single column, centred; 2× bottom padding on desktop ── */
  #trustd-id { padding-bottom: 100px; }
  #trustd-id .card-desc--center {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Secure Load — 2-column grid: text centred left col, phone right ────
     Children in DOM order:
       1  .card-icon-wrap   2  h2.card-title
       3  p.card-desc       4  .mobile-screen-wrap                          */
  #secure-load {
    display: grid;
    grid-template-columns: 1fr 240px;
    grid-template-rows: auto auto 1fr auto; /* added row 4 for CTA */
    column-gap: 40px;
    align-items: center;
  }
  #secure-load .card-icon-wrap {
    grid-column: 1; grid-row: 1;
    justify-content: center;
    margin-bottom: 20px;
  }
  #secure-load .card-title {
    grid-column: 1; grid-row: 2;
    text-align: center;
  }
  #secure-load .card-desc {
    grid-column: 1; grid-row: 3;
    align-self: start;
    text-align: center;
  }
  #secure-load .card-cta {
    grid-column: 1; grid-row: 4;
    align-self: start;
  }
  #secure-load .mobile-screen-wrap {
    grid-column: 2; grid-row: 1 / 5; /* span all 4 rows so phone stays centred */
    margin-top: 0;
    align-self: center;
  }
  #secure-load .mobile-screen-full-img { width: 300px; }

  /* ── Unlock More — both cards side by side, scroll disabled ──── */
  .unlock-section {
    margin: 14px 20px;
    padding: 56px 0 45px;
  }
  .unlock-section .card-icon-wrap,
  .unlock-section .card-title { padding: 0 40px; }

  .feature-scroll-container {
    margin-top: 34px;
    overflow: visible;
  }
  .feature-scroll-track {
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0 40px 36px; /* 36px bottom gives shadow room to render within unlock-section */
    gap: 20px;
  }
  .feature-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    scroll-snap-align: none;
  }
  .scroll-dots        { display: none; }
  .feature-card-title { font-size: 24px; }
  .feature-card-desc  { font-size: 19px; }

  /* ── Contact section — sided + rounded like other cards ─────────
     Not adding overflow:hidden — would clip the absolute-positioned
     dropdown panel.                                                 */
  .contact-section {
    margin: 14px 20px 0;
    padding: 56px 40px 67px;
    border-radius: var(--card-radius);
  }
  /* ::before gradient stroke must follow the new border-radius;
     without this the mask-composite border stays square at corners  */
  .contact-section::before {
    border-radius: var(--card-radius);
  }

  .contact-title { font-size: 27px; margin-bottom: 39px; }
  .contact-form  {
    gap: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .submit-btn { font-size: 17px; padding: 20px 32px; }

  /* ── Pre-check card: scale up to match Driver Check-in frame ─────
     New image AR: 3905×5509 px → base size 153×216px.
     Scale: 346/216 ≈ 1.6  →  inner card 153→245px × 216→346px,
     keeping the grey frame height close to the driver check-in frame. */
  .precheck-inner-card {
    zoom: 1.6;
  }

} /* end @media (min-width: 768px) */

/* ══════════════════════════════════════════════════════════════════
   PRECHECK CARD MODAL
   ══════════════════════════════════════════════════════════════════ */

/* Clickable frame hint */
.precheck-img-frame {
  cursor: pointer;
  transition: filter 0.18s ease;
}
.precheck-img-frame:hover,
.precheck-img-frame:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

/* Full-screen overlay */
.precheck-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.precheck-modal[hidden] { display: none; }

/* Blurred dark backdrop */
.precheck-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 40, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Small aesthetic container — just enough background to frame the card */
.precheck-modal-container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 52px 20px 20px; /* top padding makes room for the X */
  width: min(310px, 90vw);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50);
}

/* Card wrapper — centres the zoomed precheck-inner-card */
.precheck-modal-card-wrap {
  display: flex;
  justify-content: center;
}

/* Scale the card up inside the modal (mobile baseline) */
.precheck-modal-card-wrap .precheck-inner-card {
  zoom: 1.8; /* 153 → 275px wide; QR panel scales automatically */
}

/* X button — sits in the top-right of the container background, above the card */
.precheck-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.precheck-modal-close:hover  { background: rgba(255, 255, 255, 0.35); }
.precheck-modal-close:active { transform: scale(0.94); }

/* ── Modal responsive scaling ─────────────────────────────────────────
   Container widens and card zooms up at each breakpoint so the
   pre-check card makes full use of available screen real-estate.
   Vertical scroll is preserved via max-height: 92vh on the container. */

@media (min-width: 768px) {
  .precheck-modal-container {
    width: min(460px, 84vw);
    padding: 56px 28px 28px;
  }
  .precheck-modal-card-wrap .precheck-inner-card {
    zoom: 2.5; /* 153 → 383px wide, 246 → 615px tall */
  }
}

@media (min-width: 1024px) {
  .precheck-modal-container {
    width: min(540px, 75vw);
    padding: 60px 32px 32px;
  }
  .precheck-modal-card-wrap .precheck-inner-card {
    zoom: 2.9; /* 153 → 444px wide, 246 → 713px tall */
  }
}
