/* ============================================================
   Shared instant-form runtime styling.
   Meta design tokens are FIXED; brand tokens (--brand-*) are set
   per-business at runtime via an inline style on :root.
   Used identically by the builder preview and the exported form.
   ============================================================ */
:root{
  --fig-primary-text:#1c2b33;
  --fig-medium-text:rgba(28,43,51,.65);
  --fig-light-text:rgba(28,43,51,.45);
  --divider:#cbd2d9;
  --fds-white:#fff;
  --sheet-bg:#f0f2f5;
  --meta-blue:#0866FF;
  --meta-blue-press:#0556d8;
  --error:#dc3030;
  --success:#31a24c;
  --shadow-card:0 3px 4px 0 rgba(0,0,0,.08);
  --shadow-sheet:0 8px 24px 4px rgba(0,0,0,.1),0 2px 2px rgba(0,0,0,.1);
  /* brand defaults (overridden at runtime) */
  --brand-accent:#FFA100;
  --brand-secondary:#182230;
  --brand-bg:#EBEBEB;
  /* native Google review palette */
  --g-text:#202124;
  --g-text2:#5f6368;
  --g-body:#3c4043;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  background:var(--sheet-bg);
  color:var(--fig-primary-text);
  -webkit-font-smoothing:antialiased;
}
img{display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}
a{color:var(--meta-blue);text-decoration:none}
a:hover{text-decoration:underline}

/* pull the page up into the top safe-area so the hero bleeds behind the iOS
   status bar / notch (needs viewport-fit=cover, which the form sets). 0 on
   devices without a safe-area inset and on desktop. */
.page{max-width:520px;margin:calc(-1 * env(safe-area-inset-top, 0px)) auto 0;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
@media(min-width:700px){.page{margin:24px auto 0}}

/* top bar */
.topbar{
  position:sticky;top:0;z-index:50;background:var(--fds-white);
  border-bottom:1px solid var(--divider);height:44px;
  display:flex;align-items:center;justify-content:center;
}
@media(min-width:700px){.topbar{border-radius:12px 12px 0 0}}
.topbar-title{font-size:15px;font-weight:600;color:var(--fig-primary-text)}

/* form sheet — NB: no overflow:hidden here, or the sticky footer can't pin to
   the screen bottom. Horizontal slide-clipping is handled by .slides instead. */
.sheet{background:var(--sheet-bg);position:relative}
@media(min-width:700px){.sheet{box-shadow:var(--shadow-sheet);border-radius:12px;overflow:hidden}}
/* static clip wrapper for the horizontal carousel */
.slides-clip{overflow:hidden}
.slides{display:flex;transition:transform .25s ease;align-items:flex-start}
/* slides size to their content (with a sensible minimum) so a short step isn't
   padded out with a big empty gap */
.slide{width:100%;flex-shrink:0;min-height:300px;display:flex;flex-direction:column}

/* hero header image / video — taller cover so more of it shows */
.hero{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--brand-secondary)}
.hero .hero-blur{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(18px) brightness(.9);transform:scale(1.15)}
.hero img.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease}
.hero img.hero-img.loaded{opacity:1}
.hero video.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s ease}
.hero video.hero-video.loaded{opacity:1}
.hero .hero-fallback{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--brand-secondary) 0%,#243245 60%,var(--brand-accent) 160%);
}
.hero .hero-fallback img{width:55%;max-width:240px}
.hero .hero-fallback .mono{color:#fff;font-weight:700;font-size:2rem;opacity:.9}

/* logo + intro headline/description overlaid on the cover, with a strong bottom
   scrim for readability over any image or video */
.hero-id{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:22px 16px 16px;background:linear-gradient(to top,rgba(0,0,0,.85) 0%,rgba(0,0,0,.5) 36%,rgba(0,0,0,.12) 68%,transparent)}
.hero-id .idlogo{width:46px;height:46px;border-radius:9px;object-fit:cover;background:#fff;display:block;margin-bottom:10px;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.hero-id .idmono{width:46px;height:46px;border-radius:9px;background:var(--brand-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.3rem;margin-bottom:10px}
.hero-id .hero-headline{color:#fff;font-size:1.4375rem;font-weight:700;line-height:1.22;text-shadow:0 1px 5px rgba(0,0,0,.6)}
.hero-id .hero-desc{color:rgba(255,255,255,.92);font-size:.9375rem;line-height:1.45;margin-top:6px;text-shadow:0 1px 4px rgba(0,0,0,.55)}

/* intro headline block — full-width white, left-aligned, flush under the cover */
.intro-card{background:var(--fds-white);margin:0;position:relative;z-index:5;text-align:left;padding:16px 16px 18px}
.headline{font-size:1.3125rem;font-weight:700;line-height:1.3;color:var(--fig-primary-text);margin:0 0 8px}
.intro-desc{font-size:.9375rem;line-height:1.55;color:var(--fig-medium-text);white-space:pre-line}

/* question / section cards */
.qcard{background:var(--fds-white);border-radius:10px;box-shadow:var(--shadow-card);margin:16px 16px 0;padding:0 16px}
.qcard.first{margin-top:20px}
.qcard:last-of-type{margin-bottom:20px}
.q-title{font-size:1rem;font-weight:600;color:var(--fig-primary-text);padding:18px 0 10px;line-height:1.4}
.q-title .req{color:var(--error)}

/* multiple-choice rows */
.opt{
  display:flex;align-items:center;justify-content:space-between;
  padding:13px 0;border-top:1px solid #e4e6eb;font-size:.9375rem;
  color:var(--fig-primary-text);cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.opt:first-of-type{border-top:none}
.opt .radio{width:22px;height:22px;border-radius:50%;border:2px solid #bcc0c4;flex-shrink:0;margin-left:12px;position:relative;transition:border-color .15s}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt input:checked + .radio{border-color:var(--meta-blue)}
.opt input:checked + .radio::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--meta-blue)}
.opt-list{padding-bottom:6px}

/* contact fields */
.section-head{display:flex;align-items:center;gap:6px;padding:18px 0 4px}
.section-head h2{font-size:1rem;font-weight:600;color:var(--fig-primary-text)}
.section-head svg{color:var(--fig-light-text);flex-shrink:0}
.section-desc{font-size:.75rem;line-height:1.5;color:var(--fig-medium-text);padding-bottom:12px}
.field{padding-bottom:22px}
.field label{display:block;font-size:.75rem;color:var(--fig-light-text);margin-bottom:2px}
.field label .req{color:var(--error)}
.field input,.field select{
  width:100%;border:none;outline:none;border-bottom:1px solid var(--divider);
  font-size:1rem;line-height:2;color:var(--fig-primary-text);border-radius:0;
  background:transparent;font-family:inherit;
}
.field textarea{
  width:100%;border:1px solid var(--divider);border-radius:8px;outline:none;
  font-size:1rem;line-height:1.5;color:var(--fig-primary-text);padding:10px 12px;
  background:transparent;font-family:inherit;resize:vertical;min-height:88px;margin-top:6px;
}
.field textarea:focus{border-color:var(--meta-blue)}
.field.invalid textarea{border-color:var(--error)}
.field select{padding:0;appearance:none;-webkit-appearance:none;color:var(--fig-light-text)}
.field select.filled{color:var(--fig-primary-text)}
.field input::placeholder{color:var(--fig-light-text)}
.field input:focus,.field select:focus{border-bottom-color:var(--meta-blue)}
.field.invalid input,.field.invalid select{border-bottom-color:var(--error)}
.field .err{display:none;font-size:.75rem;color:var(--error);padding-top:4px}
.field.invalid .err{display:block}
.q-err{display:none;font-size:.75rem;color:var(--error);padding:0 0 12px}
.q-err.show{display:block}

/* thank-you slide */
.ty-wrap{text-align:center;padding:8px 16px 24px}
.ty-check{width:56px;height:56px;border-radius:50%;background:var(--success);margin:18px auto 14px;display:flex;align-items:center;justify-content:center}
.ty-check svg{color:#fff}
.ty-title{font-size:1.25rem;font-weight:700;margin-bottom:6px}
.ty-sub{font-size:.9375rem;color:var(--fig-medium-text);line-height:1.5;margin-bottom:4px;white-space:pre-line}
.ty-note{font-size:.8125rem;color:var(--fig-light-text)}

/* footer: progress + button */
/* pinned to the bottom of the screen at all times (not just while the form
   sheet is in view), so the Continue/Submit button is always reachable. */
.form-footer{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--fds-white);border-top:1px solid var(--divider);padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
@media(min-width:700px){.form-footer{max-width:520px;margin:0 auto;border-radius:12px 12px 0 0}}
.meter{height:4px;border-radius:999px;background:#f1f4f7;overflow:hidden;margin:2px 2px 10px}
.meter-fill{height:100%;width:100%;border-radius:999px;background:var(--meta-blue);transform:translateX(-67%);transition:transform .3s cubic-bezier(.75,.25,.3,.7)}
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border-radius:6px;font-size:.9375rem;font-weight:600;background:var(--meta-blue);color:#fff;transition:background .15s;-webkit-tap-highlight-color:transparent}
.btn:active{background:var(--meta-blue-press)}
.footer-row{display:flex;gap:8px}
.btn-back{width:44px;height:44px;flex-shrink:0;border-radius:6px;background:#e4e6eb;display:none;align-items:center;justify-content:center;color:var(--fig-primary-text)}
.btn-back.show{display:flex}
.btn-back:active{background:#d8dadf}

/* ============ social proof ============ */
.social{padding:8px 0 24px}
.sp-header{text-align:center;padding:28px 24px 4px}
.sp-header .sp-kicker{display:inline-flex;align-items:center;gap:8px;font-size:.8125rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-secondary)}
.sp-header .sp-kicker::before,.sp-header .sp-kicker::after{content:"";width:28px;height:2px;background:var(--brand-accent);border-radius:2px}
.sp-header h2{font-size:1.25rem;font-weight:700;color:var(--fig-primary-text);padding:8px 0 2px}
.sp-header p{font-size:.875rem;color:var(--fig-medium-text)}

/* rating summary card */
.summary-card{background:#fff;border-radius:12px;box-shadow:var(--shadow-card);margin:16px 16px 0;padding:18px 16px;text-align:center;font-family:Roboto,Arial,sans-serif}
.summary-card.fb{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif}
.summary-card .g-row{display:flex;align-items:center;justify-content:center;gap:8px}
.summary-card .g-row img{width:22px;height:22px}
.summary-card .g-row span{font-size:.9375rem;font-weight:500;color:var(--g-text)}
.summary-rating{font-size:2.25rem;font-weight:700;color:var(--g-text);line-height:1.2;padding-top:8px}
.summary-stars{display:flex;justify-content:center;gap:3px;padding:6px 0}
.summary-stars img{width:20px;height:20px}
.summary-count{font-size:.8125rem;color:var(--g-text2)}

/* review cards — native Google look */
.reviews{display:flex;flex-direction:column}
.rcard{background:#fff;border-radius:12px;box-shadow:var(--shadow-card);margin:12px 16px 0;padding:16px;font-family:Roboto,Arial,sans-serif;position:relative}
.rcard .r-platform{position:absolute;top:16px;right:16px;width:20px;height:20px}
.rcard .r-head{display:flex;align-items:center;gap:12px;padding-right:30px}
.rcard .r-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#e8eaed;flex-shrink:0}
.rcard .r-avatar-fallback{width:40px;height:40px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:500;font-size:1.05rem}
.rcard .r-name{font-size:.875rem;font-weight:500;color:var(--g-text)}
.rcard .r-meta{display:flex;align-items:center;gap:6px;padding-top:2px}
.rcard .r-stars{display:flex;gap:1px}
.rcard .r-stars img{width:14px;height:14px}
.rcard .r-score{font-size:.75rem;font-weight:500;color:var(--g-text)}
.rcard .r-date{font-size:.75rem;color:var(--g-text2)}
.rcard .r-text{font-size:.875rem;line-height:1.5;color:var(--g-body);padding-top:10px;white-space:pre-line}
.rcard .r-text .more{color:var(--g-text2);font-weight:500;cursor:pointer}
.rcard.fb{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif}
.rcard.fb .r-name{color:#050505}
.rcard.fb .r-text{color:#050505}

.show-more-wrap{text-align:center;padding:16px}
.show-more{font-size:.875rem;font-weight:600;color:var(--fig-primary-text);background:#e4e6eb;border-radius:6px;padding:10px 20px}
.show-more:active{background:#d8dadf}

/* video testimonial (4:5) */
.video-card{background:#fff;border-radius:12px;box-shadow:var(--shadow-card);margin:12px 16px 0;padding:0;overflow:hidden}
.vposter{position:relative;aspect-ratio:4/5;background:var(--brand-secondary)}
.vposter img.poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vposter video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.vposter .vlogo{position:absolute;inset:0;margin:auto;width:55%;opacity:.45}
.vplay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.vplay .ring{width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.3);transition:transform .15s}
.video-card:active .ring{transform:scale(.94)}
/* the play triangle's mass sits left of its bounding box, so flex-centering the
   svg box lands the visual centroid on the ring centre with no nudge needed */
.vplay svg{color:var(--brand-secondary)}

/* photo gallery */
.gallery-head{text-align:center;padding:24px 24px 0}
.gallery-head h3{font-size:1.0625rem;font-weight:700;color:var(--fig-primary-text)}
/* auto-scrolling ticker: photos slide continuously, looping seamlessly */
.gallery{overflow:hidden;padding:12px 0 4px}
.gallery-track{display:flex;width:max-content;animation:gallery-ticker 40s linear infinite;will-change:transform}
.gallery:hover .gallery-track{animation-play-state:paused}
.gallery .g-photo{flex:0 0 auto;width:240px;margin-right:10px;aspect-ratio:4/3;position:relative;border-radius:10px;overflow:hidden;box-shadow:var(--shadow-card);background:var(--brand-secondary);cursor:pointer}
.gallery .g-photo img{width:100%;height:100%;object-fit:cover;display:block}
@keyframes gallery-ticker{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.gallery{overflow-x:auto}.gallery-track{animation:none}}
.gal-lightbox{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:20px;cursor:zoom-out}
.gal-lightbox img{max-width:100%;max-height:100%;border-radius:8px}

/* brand footer */
.brand-footer{text-align:center;padding:30px 24px 26px}
.brand-footer img{height:40px;margin:0 auto 10px}
.brand-footer .mono{display:inline-block;font-weight:700;font-size:1.1rem;color:var(--brand-secondary);margin-bottom:10px}
.brand-footer p{font-size:.75rem;color:var(--fig-light-text);line-height:1.6}

/* ============================================================
   Desktop polish: keep the form a focused centred card, but let the
   social proof breathe across the full width with a review grid.
   ============================================================ */
@media(min-width:900px){
  body{background:
    radial-gradient(1100px 460px at 50% -120px, rgba(24,34,48,.10), rgba(24,34,48,0) 70%),
    linear-gradient(180deg, #e8ecf2 0%, var(--sheet-bg) 420px);
    background-attachment:fixed;
  }
  .page{max-width:1040px;margin:36px auto 0}
  .topbar,.sheet{max-width:540px;margin-left:auto;margin-right:auto}
  .topbar{border-radius:12px 12px 0 0}
  .sheet{box-shadow:0 18px 50px -20px rgba(24,34,48,.4),0 2px 4px rgba(0,0,0,.06)}

  .social{max-width:1040px;margin:0 auto;padding:8px 0 24px}
  .sp-header{padding-top:44px}
  .sp-header h2{font-size:1.7rem}
  .sp-header p{font-size:.95rem}
  .summary-card{max-width:460px;margin-left:auto;margin-right:auto}
  .video-card{max-width:440px;margin-left:auto;margin-right:auto}

  .reviews{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;
    gap:18px;max-width:960px;margin:18px auto 0;padding:0 20px;
  }
  .rcard{margin:0}
  .show-more-wrap{max-width:960px;margin:0 auto}
  .brand-footer{max-width:960px;margin:0 auto}
}
@media(min-width:1240px){
  .page,.social{max-width:1180px}
  .reviews{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1140px}
}
