/* =================================================================
   Forever Aloe Vera Gel — Sales Funnel
   Design: premium wellness/beauty aesthetic (not medicine-ad).
   Palette: fresh aloe greens + warm gold/amber accents + white space.
   Mobile-first (designed at 375px, scaled up).
   ================================================================= */

:root {
  --green-900: #003819;
  --green-700: #038F05;
  --green-500: #10B981;
  --green-100: #E6F4EA;
  --green-050: #F2F9F4;
  --gold-500:  #FFC600;
  --gold-600:  #E5A800;
  --gold-100:  #FFF9E5;
  --ink:       #111827;
  --ink-soft:  #4B5563;
  --line:      #E5E7EB;
  --white:     #ffffff;
  --bg:        #F9FAFB;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 8px 30px rgba(3, 143, 5, 0.12);
  --shadow-lg: 0 16px 44px rgba(3, 143, 5, 0.18);
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The `hidden` attribute must always win, even over explicit display rules
   (e.g. .modal-overlay/.sticky-bar use display:flex). Without this, elements
   marked [hidden] in the HTML would still show on load. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* -------------------- Top bar -------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px 0;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--green-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-sub {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--gold-600);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.skip-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.skip-btn:hover { color: var(--green-700); background: var(--green-050); }

.progress-wrap {
  height: 5px;
  background: var(--green-100);
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 12px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  border-radius: 99px;
  transition: width 0.45s var(--ease);
}

/* -------------------- Screens -------------------- */
.screen { display: none; padding: 22px 18px 40px; max-width: 720px; margin: 0 auto; }
.screen.active { display: block; }
.screen-faq { display: none; padding: 10px 18px 0; max-width: 720px; margin: 0 auto; }
.screen-faq.active { display: block; }

/* -------------------- Quiz -------------------- */
.quiz-framing {
  text-align: center;
  color: var(--green-700);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.quiz-viewport { overflow: hidden; }
.quiz-track {
  display: flex;
  width: 300%;
  transition: transform 0.4s var(--ease);
}
.quiz-slide {
  width: 33.3333%;
  flex: 0 0 33.3333%;
  padding: 4px 2px;
}

.q-count {
  color: var(--gold-500);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.q-title {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--green-900);
  margin-bottom: 22px;
}

.options { display: flex; flex-direction: column; gap: 12px; }
.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
}
.option-card:hover { border-color: var(--green-500); box-shadow: var(--shadow); }
.option-card:active { transform: scale(0.98); }
.option-card.selected {
  border-color: var(--green-700);
  background: var(--green-050);
  box-shadow: var(--shadow);
}
.opt-emoji {
  font-size: 22px;
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--green-100);
  border-radius: 12px;
}
.opt-label { flex: 1; }

.back-btn {
  margin-top: 22px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
}
.back-btn:hover { color: var(--green-700); }

/* -------------------- Result page -------------------- */
.result-head { text-align: center; margin-bottom: 22px; }
.result-badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.result-headline {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--green-900);
  margin-bottom: 10px;
}
.result-sub { color: var(--ink-soft); font-size: 15.5px; max-width: 520px; margin: 0 auto; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 22px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-item span { font-size: 15px; display: inline-flex; align-items: center; }
.trust-icon-wrap { display: inline-flex; align-items: center; justify-content: center; }
.aloe-leaf-svg { display: block; flex-shrink: 0; }

.section-title {
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--green-900);
  margin-bottom: 14px;
}
.section-title.center { text-align: center; }

.benefits-block { margin: 30px 0; }
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.benefits-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.benefits-list li.highlight {
  border-color: var(--green-500);
  background: var(--green-050);
  box-shadow: var(--shadow);
}
.b-icon {
  font-size: 20px;
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-100);
  border-radius: 10px;
}
.benefits-list li div { display: flex; flex-direction: column; }
.benefits-list strong { font-size: 15.5px; color: var(--ink); }
.benefits-list span { font-size: 13.5px; color: var(--ink-soft); }

/* Testimonial Showcase Grid */
.testimonials-block { margin: 32px 0; }
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 680px) {
  .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.t-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-900);
  background: var(--gold-100);
  border: 1px solid var(--gold-500);
  padding: 4px 10px;
  border-radius: 99px;
  align-self: flex-start;
}
.stars { color: var(--gold-500); font-size: 18px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  margin: 0;
  flex-grow: 1;
}
.testimonial-card figcaption {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Packages */
.packages-block { margin: 30px 0; }
.packages-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.packages { display: grid; grid-template-columns: 1fr; gap: 14px; }

.pkg-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
  text-align: center;
}
.pkg-card:hover { border-color: var(--green-500); }
.pkg-card.selected {
  border-color: var(--green-700);
  box-shadow: var(--shadow-lg);
  transform: scale(1.015);
}
/* Recommended (selected) card is the fullest; non-selected shrink slightly */
.pkg-card:not(.selected) { opacity: 0.94; }
.pkg-card:not(.selected) .pkg-image { height: 90px; }
.pkg-card:not(.selected) .pkg-headline { font-size: 15px; }

.pkg-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: #3a2a06;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(217, 164, 65, 0.4);
}
.pkg-card.selected .pkg-badge { background: var(--green-700); color: #fff; }

/* Product image frame — placeholder gradient block until real photos land */
.pkg-image {
  height: 130px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 6px auto 14px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(160deg, var(--green-100), var(--green-500));
  display: grid;
  place-items: center;
  color: var(--green-900);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  /* TODO: replace background with real product photo:
     background-image: url('assets/product-photos/aloe-3bottles.jpg');
     background-size: cover; background-position: center; */
}
.pkg-image .bottle { font-size: 40px; }

.pkg-headline {
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}
.pkg-tag {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--green-700);
  margin-bottom: 12px;
}
.pkg-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--green-050);
  border-radius: 99px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.pkg-pricing { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 4px; }
.pkg-old-price { font-size: 15px; color: #95a5a6; text-decoration: line-through; font-weight: 600; }
.pkg-price { font-size: 24px; font-weight: 900; color: var(--green-900); letter-spacing: -0.02em; }
.pkg-save-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--green-700);
  background: var(--green-050);
  border: 1px solid var(--green-100);
  padding: 4px 10px;
  border-radius: 99px;
  margin: 6px auto;
  display: inline-block;
}
.pkg-image.single {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--white);
  padding: 4px;
}
.pkg-image.single .product-photo-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}
.product-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
}
/* 3-Bottle Bundle Stack */
.pkg-image.multi-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--white);
  padding: 4px;
}
.bottle-stack {
  height: 95%;
  width: auto;
  max-width: 36%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.18));
}
.bottle-stack.b1 { transform: translateX(14px) scale(0.92); z-index: 1; opacity: 0.9; }
.bottle-stack.b2 { z-index: 3; transform: scale(1.06); }
.bottle-stack.b3 { transform: translateX(-14px) scale(0.92); z-index: 2; opacity: 0.9; }

/* 6-Bottle Bundle Grid */
.pkg-image.multi-6 {
  position: relative;
  background: var(--white);
  padding: 4px;
}
.multi-6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px 2px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
}
.bottle-grid-img {
  height: 90%;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.14));
}
.bottle-count-tag {
  position: absolute;
  bottom: 6px; right: 6px;
  z-index: 5;
  background: rgba(22, 33, 27, 0.88);
  color: #fff;
  font-weight: 800;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}
.pkg-perbottle { font-size: 12.5px; color: var(--ink-soft); }
.pkg-select-hint { font-size: 12.5px; font-weight: 700; color: var(--gold-500); margin-top: 8px; }

/* -------------------- Mentor Trust Card -------------------- */
.mentor-trust-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
@media (min-width: 600px) {
  .mentor-trust-card {
    flex-direction: row;
    align-items: center;
  }
}
.mentor-img-wrap {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-500);
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.25);
}
.mentor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.mentor-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mentor-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: 0.04em;
}
.mentor-content blockquote {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}
.mentor-author {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.pkg-card.selected .pkg-select-hint { color: var(--green-700); }
.pkg-select-hint::before { content: "○ Tap to select"; }
.pkg-card.selected .pkg-select-hint::before { content: "✓ Selected"; }

/* Assurance */
.assurance-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 30px 0; }
.assurance-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.assurance-card .a-icon { font-size: 24px; }
.assurance-card strong { font-size: 15px; color: var(--ink); }
.assurance-card span { font-size: 13.5px; color: var(--ink-soft); }
.assurance-card em { color: var(--gold-500); font-style: italic; }

.genuine-note {
  text-align: center;
  background: var(--green-100);
  color: var(--green-900);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

/* -------------------- FAQ -------------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-700); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-soft); font-size: 14px; padding: 0 0 16px; }
.faq-item em { color: var(--gold-500); font-style: italic; }

/* -------------------- FBO Site Footer -------------------- */
.site-footer {
  background: var(--white);
  border-top: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 24px 20px 100px;
  margin-top: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}
.fbo-badge-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fbo-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.fbo-eagle { font-size: 24px; }
.fbo-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--green-900);
  letter-spacing: 0.05em;
}
.fbo-sub {
  font-size: 12.5px;
  color: var(--gold-500);
  font-weight: 700;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.footer-wa-link {
  color: var(--green-700);
  font-weight: 800;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.footer-wa-link:hover { color: var(--green-900); text-decoration: underline; }
.footer-disclaimer {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.footer-disclaimer p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.footer-seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-900);
}
.footer-copy {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* -------------------- Thank you -------------------- */
.ty-inner { text-align: center; padding: 30px 0; max-width: 500px; margin: 0 auto; }
.ty-check { font-size: 60px; margin-bottom: 10px; }
.ty-inner h1 { font-size: 30px; color: var(--green-900); letter-spacing: -0.02em; margin-bottom: 12px; }
.ty-ref { font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; }
.ty-ref strong { color: var(--green-700); }
.ty-next { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.ty-next h2 { font-size: 17px; color: var(--green-900); margin-bottom: 12px; }
.ty-next ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ty-next li { font-size: 14.5px; color: var(--ink-soft); }
.ty-next em { color: var(--gold-500); font-style: italic; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 99px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

/* -------------------- Sticky bar -------------------- */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 45;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(31,77,51,0.10);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
}
.sticky-bar.show { transform: translateY(0); }
.sticky-info { display: flex; flex-direction: column; }
.sticky-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.sticky-price { font-size: 20px; font-weight: 900; color: var(--green-900); letter-spacing: -0.02em; }

/* -------------------- Buttons -------------------- */
.cta-btn {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  border: none;
  border-radius: 99px;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 26px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(47,122,77,0.35);
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.cta-btn:hover { box-shadow: 0 10px 28px rgba(47,122,77,0.45); }
.cta-btn:active { transform: scale(0.97); }
.cta-btn.full { width: 100%; margin-top: 8px; }
.cta-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* -------------------- Modal -------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(22,33,27,0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.3s var(--ease);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--green-050); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; color: var(--ink-soft); cursor: pointer;
}
.modal h2 { font-size: 21px; color: var(--green-900); margin-bottom: 6px; letter-spacing: -0.02em; }
.modal-instruction { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 16px; font-style: italic; }
.modal-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.modal-summary strong { font-size: 18px; color: var(--green-900); }

#checkoutForm { display: flex; flex-direction: column; gap: 14px; }
#checkoutForm label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
#checkoutForm input,
#checkoutForm select,
#checkoutForm textarea {
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  font-weight: 500;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
  width: 100%;
}
#checkoutForm input:focus,
#checkoutForm select:focus,
#checkoutForm textarea:focus {
  outline: none;
  border-color: var(--green-500);
}
#checkoutForm textarea { resize: vertical; }
.field-error { color: #c0392b; font-size: 12px; font-weight: 600; min-height: 0; }
.field-error:not(:empty) { min-height: 14px; }
input.invalid, select.invalid, textarea.invalid { border-color: #c0392b !important; }
.secured-line { text-align: center; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }

/* -------------------- Desktop scale-up -------------------- */
@media (min-width: 720px) {
  .q-title { font-size: 30px; }
  .result-headline { font-size: 34px; }
  .packages { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .assurance-grid { grid-template-columns: repeat(3, 1fr); }
  /* On desktop the recommended card sits inline but stays emphasized */
  .pkg-card.selected { transform: scale(1.04); z-index: 2; }
  /* Sticky bar less necessary on desktop but harmless; keep it */
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
