/* ============================================================
   Low Price Auto Glass — Responsive overrides (mobile-first)
   Inline styles from landing-a.jsx are desktop defaults.
   These rules override them below specific breakpoints.
   ============================================================ */

/* Anchor smooth scrolling for the sticky CTA "Get quote" link */
html { scroll-behavior: smooth; }

/* Reserve space so the sticky mobile bottom bar doesn't cover content */
@media (max-width: 820px) {
  body { padding-bottom: 72px !important; }
}

/* ---------- NAV ---------- */
@media (max-width: 820px) {
  .lp-nav-inner        { padding: 14px 20px !important; }
  .lp-nav-brand-text   { font-size: 14px !important; }
  .lp-nav-brand-sub    { font-size: 10px !important; }
  .lp-nav-phone span   { display: none; }           /* hide long phone text, icon only */
  .lp-nav-phone        { gap: 0 !important; padding: 8px; border-radius: 999px; background: rgba(11,37,69,0.06); }
  .lp-nav-address      { display: none !important; }          /* hide address on mobile */
  .lp-nav-slogan       { display: none !important; }          /* hide slogan on mobile */
}

/* ---------- HERO ---------- */
@media (max-width: 980px) {
  .lp-hero-wrap        { padding: 32px 20px 0 !important; }
  .lp-hero-grid        { grid-template-columns: 1fr !important; gap: 36px !important; }
  .lp-hero-h1          { font-size: 40px !important; letter-spacing: -0.8px !important; line-height: 1.08 !important; }
  .lp-hero-h1 em       { letter-spacing: -1px !important; }
  .lp-hero-sub         { font-size: 15px !important; margin-top: 18px !important; max-width: 100% !important; }
  .lp-trust-grid       { grid-template-columns: 1fr 1fr !important; gap: 18px !important; max-width: 100% !important; margin-top: 32px !important; }
  .lp-trust-k          { font-size: 22px !important; }
  .lp-insurers         { margin-top: 36px !important; flex-wrap: wrap !important; gap: 12px !important; font-size: 12px !important; }
  .lp-insurers span    { font-size: 14px !important; }

  /* Big prominent Call-now CTA on mobile — shown above the form on small screens */
  .lp-mobile-call-cta  { display: flex !important; }
  .lp-mobile-call-cta a{
    flex: 1;
    background: #0B2545; color: #F5F0E6; text-decoration: none;
    padding: 18px 20px; border-radius: 4px;
    font-family: "Inter", sans-serif; font-size: 17px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    letter-spacing: -0.1px;
    box-shadow: 0 8px 24px -8px rgba(11,37,69,0.35);
  }
  .lp-mobile-call-cta .lp-mobile-call-sub {
    font-size: 12px; color: #6B7280; text-align: center; margin-top: 10px;
    font-family: "Inter", sans-serif;
  }
}
.lp-mobile-call-cta     { display: none; flex-direction: column; margin-top: 28px; }

/* ---------- FORM CARD ---------- */
@media (max-width: 820px) {
  .lp-form-card        { box-shadow: 0 1px 2px rgba(11,37,69,0.04), 0 12px 30px -16px rgba(11,37,69,0.18) !important; }
  .lp-form-card-body   { padding: 20px !important; }
  .lp-form-tabs button { font-size: 12px !important; padding: 12px 6px 14px !important; gap: 4px !important; }
  .lp-form-tabs svg    { width: 18px !important; height: 18px !important; }

  /* Collapse 2+-column field rows to single column */
  .lp-field-row        { flex-direction: column !important; gap: 12px !important; }
  .lp-field-row > *    { width: 100% !important; }

  /* Larger tap targets on inputs */
  .lp-form-card input, .lp-form-card select, .lp-form-card textarea {
    font-size: 16px !important;              /* prevents iOS zoom-on-focus */
    padding: 14px 14px !important;
    min-height: 48px;
  }
  .lp-form-card textarea { min-height: 88px !important; }
  .lp-form-card button[type], .lp-submit-btn { min-height: 52px; font-size: 15px !important; }
}

/* ---------- HOW IT WORKS ---------- */
@media (max-width: 820px) {
  .lp-how-wrap         { padding: 64px 20px !important; }
  .lp-how-header       { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: 32px !important; }
  .lp-how-h2           { font-size: 30px !important; letter-spacing: -0.6px !important; }
  .lp-how-steps        { grid-template-columns: 1fr !important; gap: 24px !important; }
  .lp-how-step-t       { font-size: 20px !important; }
  .lp-how-step-d       { font-size: 14px !important; }
}

/* ---------- REVIEWS (mobile = swipeable carousel) ---------- */
@media (max-width: 820px) {
  .lp-reviews-wrap     { padding: 64px 0 !important; }
  .lp-reviews-inner    { padding: 0 20px; }
  .lp-reviews-h2       { font-size: 30px !important; letter-spacing: -0.6px !important; }
  .lp-reviews-header   { margin-bottom: 32px !important; }

  /* Horizontal scroll-snap carousel */
  .lp-reviews-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px !important;
    padding: 0 20px 8px !important;
    grid-template-columns: none !important;
    margin: 0 -20px;
  }
  .lp-reviews-grid::-webkit-scrollbar { display: none; }
  .lp-reviews-grid > div {
    flex: 0 0 85% !important;
    grid-column: auto !important;
    scroll-snap-align: start;
    border-top: none !important;
    background: rgba(245,240,230,0.06);
    border: 1px solid rgba(245,240,230,0.15);
    border-radius: 6px;
    padding: 22px !important;
    margin-bottom: 0 !important;
  }
  .lp-reviews-grid > div > div:nth-child(2) {
    font-size: 16px !important;
    max-width: none !important;
  }

  /* Carousel dots */
  .lp-reviews-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  .lp-reviews-dots span {
    width: 7px; height: 7px; border-radius: 99px;
    background: rgba(245,240,230,0.3);
    transition: background .2s, width .2s;
  }
  .lp-reviews-dots span.active { background: #F5F0E6; width: 22px; }
}
.lp-reviews-dots { display: none; }

/* ---------- FOOTER ---------- */
@media (max-width: 820px) {
  .lp-footer-wrap      { padding: 40px 20px 24px !important; }
  .lp-footer-grid      { grid-template-columns: 1fr 1fr !important; gap: 28px !important; padding-bottom: 28px !important; }
  .lp-footer-copy      { flex-direction: column; gap: 6px; font-size: 11px !important; text-align: left !important; }
}

/* ---------- STICKY MOBILE BOTTOM BAR ---------- */
.lp-sticky-bar {
  display: none;
}
@media (max-width: 820px) {
  .lp-sticky-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: #F5F0E6;
    border-top: 1px solid #E5DFD1;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    box-shadow: 0 -4px 24px -8px rgba(11,37,69,0.18);
    font-family: "Inter", sans-serif;
  }
  .lp-sticky-bar a, .lp-sticky-bar button {
    flex: 1;
    min-height: 48px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
  }
  .lp-sticky-bar .lp-sticky-call  { background: #0B2545; color: #F5F0E6; }
  .lp-sticky-bar .lp-sticky-quote { background: transparent; color: #0B2545; border: 1px solid #0B2545; }
}
