/* ============================================
   HERO FORM CARD — conversion-first mobile
   Form embedded directly in hero on mobile (above the fold).
   Photo stays on desktop where there's room.
   ============================================ */

/* By default (desktop): hide the form card, photo is the visual */
.hero-form-card {
  display: none;
}

/* Mobile + tablet: form replaces the photo */
@media (max-width: 759px) {
  .hero .hero-portrait { display: none !important; }

  .hero-form-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    box-shadow:
      0 40px 100px rgba(0,0,0,0.55),
      0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    color: #0A0A0A;
  }

  /* Header strip */
  .hfc-head {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #F2F2F2;
    background: linear-gradient(180deg, #FAFAFA 0%, #fff 100%);
  }
  .hfc-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #E50914;
    margin-bottom: 4px;
  }
  .hfc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
    flex-shrink: 0;
    animation: hfc-live 2s ease-in-out infinite;
  }
  @keyframes hfc-live {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
  }
  .hfc-sub {
    font-size: 12px;
    color: #666;
    font-weight: 500;
  }

  /* Form body — populated by renderFormInto, override its defaults */
  .hero-form-card .form-host.hero-form {
    background: #fff !important;
    color: #0A0A0A !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    padding: 18px 18px 16px !important;
    display: block !important;
  }

  /* Hide the numeric progress bar from the original form
     (we have our own header) */
  .hero-form-card .f-top {
    display: none !important;
  }

  /* Tighten typography inside the card for mobile */
  .hero-form-card .f-q {
    font-size: 19px !important;
    line-height: 1.15 !important;
    margin: 0 0 6px !important;
  }
  .hero-form-card .f-q-sub {
    font-size: 12.5px !important;
    margin-bottom: 14px !important;
    color: #666 !important;
  }
  .hero-form-card .f-lab {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  .hero-form-card .f-grp {
    margin-bottom: 16px !important;
  }
  .hero-form-card .f-grp:last-child {
    margin-bottom: 0 !important;
  }

  /* Step 1 — car type cards */
  .hero-form-card .f-typecards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .hero-form-card .f-typecard {
    padding: 14px 10px !important;
    min-height: 84px !important;
    background: #FAFAFA !important;
    border: 2px solid #EEE !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
    transition: all 0.18s var(--ease) !important;
  }
  .hero-form-card .f-typecard:hover { border-color: #D4D4D4; background: #F4F4F4; }
  .hero-form-card .f-typecard.on {
    background: #FFF5F5 !important;
    border-color: #E50914 !important;
    box-shadow: 0 0 0 3px rgba(229,9,20,0.08) !important;
  }
  .hero-form-card .f-typecard .tc-ic {
    width: 36px !important;
    height: 18px !important;
    color: #0A0A0A !important;
  }
  .hero-form-card .f-typecard.on .tc-ic { color: #E50914 !important; }
  .hero-form-card .f-typecard .tc-t {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0A0A0A !important;
    line-height: 1.2 !important;
    margin-top: auto !important;
  }

  /* Step 2 — option buttons */
  .hero-form-card .f-opts {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .hero-form-card .f-opt {
    padding: 11px 8px !important;
    background: #FAFAFA !important;
    border: 2px solid #EEE !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0A0A0A !important;
    cursor: pointer;
    transition: all 0.18s var(--ease) !important;
    text-align: center;
  }
  .hero-form-card .f-opt:hover { border-color: #D4D4D4; background: #F4F4F4; }
  .hero-form-card .f-opt.on {
    background: #0A0A0A !important;
    border-color: #0A0A0A !important;
    color: #fff !important;
  }

  /* Step 3 — inputs */
  .hero-form-card .f-input,
  .hero-form-card input.f-input,
  .hero-form-card input[type="text"],
  .hero-form-card input[type="tel"],
  .hero-form-card input[type="email"] {
    width: 100% !important;
    padding: 13px 14px !important;
    background: #FAFAFA !important;
    border: 2px solid #EEE !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #0A0A0A !important;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s var(--ease) !important;
  }
  .hero-form-card input:focus {
    outline: none !important;
    border-color: #E50914 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(229,9,20,0.08) !important;
  }
  .hero-form-card .f-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .hero-form-card .f-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px !important;
    background: #FAFAFA !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
    color: #666 !important;
    line-height: 1.4 !important;
    margin-top: 12px !important;
    cursor: pointer;
  }
  .hero-form-card .f-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #E50914;
    width: 16px;
    height: 16px;
  }

  /* Nav buttons */
  .hero-form-card .f-nav {
    margin-top: 18px !important;
    display: flex !important;
    gap: 10px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
  .hero-form-card .f-back {
    padding: 12px 14px !important;
    background: #F4F4F4 !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666 !important;
  }
  /* If back is hidden in step 1, collapse it so Next takes full width */
  .hero-form-card .f-back[style*="visibility:hidden"],
  .hero-form-card .f-back[style*="visibility: hidden"] {
    display: none !important;
  }
  .hero-form-card .f-next,
  .hero-form-card .f-submit {
    flex: 1 !important;
    padding: 13px 16px !important;
    background: var(--accent-grad) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(229,9,20,0.28) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer;
    transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease) !important;
  }
  .hero-form-card .f-next:hover,
  .hero-form-card .f-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(229,9,20,0.36) !important;
  }

  /* Success screen */
  .hero-form-card .f-success,
  .hero-form-card .f-ok {
    padding: 18px 12px !important;
    text-align: center !important;
  }
  .hero-form-card .f-check,
  .hero-form-card .f-ok-badge {
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto 14px !important;
  }
  .hero-form-card .f-succ-t,
  .hero-form-card .f-ok-t {
    font-size: 22px !important;
    margin: 6px 0 8px !important;
  }
  .hero-form-card .f-succ-d,
  .hero-form-card .f-ok-d {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 16px !important;
  }

  /* Footer trust strip */
  .hfc-foot {
    padding: 12px 18px 14px;
    background: #FAFAFA;
    border-top: 1px solid #F2F2F2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
  }
  .hfc-foot svg {
    width: 14px;
    height: 14px;
    color: #0A0A0A;
    flex-shrink: 0;
  }

  /* Hero spacing reshuffle for mobile so form sits prominently */
  .hero .hero-visual {
    max-height: none !important;
    aspect-ratio: auto !important;
    order: 2 !important;
    margin-top: 16px !important;
  }
  .hero .hero-grid { gap: 16px !important; }

  /* On mobile, hide everything except eyebrow + title.
     The hero-form-card IS the CTA — no need for buttons or sub-text. */
  .hero .hero-sub,
  .hero .hero-ctas,
  .hero .trust-row {
    display: none !important;
  }
  .hero .hero-eyebrow {
    margin-bottom: 12px !important;
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
  }
  .hero .hero-title {
    font-size: clamp(34px, 9vw, 46px) !important;
    line-height: 1.02 !important;
    margin-bottom: 0 !important;
  }
  .hero {
    padding-top: 88px !important;
    padding-bottom: 36px !important;
    min-height: auto !important;
  }
  /* Tighten the apply-sec further down since the hero already has the form */
  .apply-sec { padding: 56px 0 !important; }
}
