/* Growth pages: free assessment (assess/), treatment quiz (quiz/), nearby-city pages (near/). Builds on style.css + landing.css. */
.gx-hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding: 40px 0 8px; }
.gx-hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.gx-hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.25; margin: 14px 0 12px; text-wrap: balance; }
.gx-lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; max-width: 58ch; }
.gx-hero__media { aspect-ratio: 9 / 16; max-height: 520px; max-width: 100%; justify-self: center; width: 100%; max-inline-size: 300px; box-shadow: var(--sh-lg); }
.gx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gx-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.gx-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; flex: none; }
.gx-sec { padding-top: 24px; }
.gx-narrow { max-width: 760px; }
.gx-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 4vw, 32px); box-shadow: var(--sh); display: grid; gap: 20px; }
.gx-field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.gx-field legend, .gx-label { font-weight: 600; padding: 0; }
.gx-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .gx-field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); }
.gx-field input:focus, .gx-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5, 138, 141, .15); }
.gx-hint { margin: 0; color: var(--muted); font-size: 14px; }
.gx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gx-seg { display: flex; flex-wrap: wrap; gap: 10px; }
.gx-seg label { position: relative; }
.gx-seg input { position: absolute; opacity: 0; inset: 0; }
.gx-seg span { display: inline-block; padding: 11px 20px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.gx-seg input:checked + span { background: var(--mcc-primary); border-color: var(--mcc-primary); color: #fff; }
.gx-seg input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.gx-drop { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.gx-drop.has-files { justify-items: stretch; }
.gx-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gx-drop label.btn { justify-self: center; cursor: pointer; }
.gx-drop input:focus-visible + label { outline: 3px solid var(--mint); outline-offset: 2px; }
.gx-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.gx-thumbs:empty { display: none; }
.gx-thumb { position: relative; }
.gx-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.gx-thumb button { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.gx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.gx-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--mcc-primary); flex: none; }
.gx-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.gx-err { margin: 0; padding: 10px 14px; border-radius: var(--r); background: #fdecea; color: #8a1c13; }
.gx-err a { color: inherit; font-weight: 600; }
.gx-note { margin: 0; color: var(--muted); font-size: 13.5px; text-align: center; }
.gx-done { justify-items: center; text-align: center; }
.gx-done svg { width: 72px; height: 72px; color: var(--mcc-primary); }
.gx-done h2 { margin: 0; }
.gx-done p { margin: 0; color: var(--muted); }

/* Quiz */
.qz-progress { height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.qz-progress i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .35s var(--mcc-ease-out, ease); }
.qz-q h2 { margin: 0 0 4px; font-size: clamp(20px, 3vw, 26px); text-wrap: balance; }
.qz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.qz-opt { text-align: start; font: inherit; font-weight: 500; padding: 14px 16px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.qz-opt:hover { border-color: var(--brand); background: var(--tint); }
.qz-opt:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.qz-nav { display: flex; justify-content: space-between; gap: 10px; }
.qz-res { display: grid; gap: 14px; }
.qz-res__main { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--tint); border-radius: var(--r-lg); padding: 14px; }
.qz-res__main img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.qz-res__main h3 { margin: 0 0 4px; font-size: 22px; }
.qz-res__main p { margin: 0; color: var(--muted); }
.qz-alt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Nearby city pages */
.nr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.nr-facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.nr-facts b { display: block; color: var(--mcc-primary); }
.nr-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.nr-svc { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; color: var(--ink); text-decoration: none; }
.nr-svc:hover { border-color: var(--brand); text-decoration: none; }
.nr-svc img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.nr-svc span { font-weight: 600; }
.nr-svc small { display: block; color: var(--muted); font-weight: 400; }
.nr-map { aspect-ratio: 16 / 7; max-width: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--tint); display: grid; place-items: center; text-align: center; padding: 20px; border: 1px solid var(--line); }

.gx-promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gx-promo a { display: grid; gap: 6px; padding: 20px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--sh-sm); transition: border-color .2s, transform .2s; }
.gx-promo a:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.gx-promo b { font-size: 19px; color: var(--mcc-primary); }
.gx-promo span { color: var(--muted); }

@media (max-width: 860px) {
  .gx-hero__in { grid-template-columns: 1fr; }
  .gx-hero__media { max-inline-size: 220px; }
}
@media (max-width: 560px) {
  .gx-row { grid-template-columns: 1fr; }
  .qz-res__main { grid-template-columns: 1fr; }
  .qz-res__main img { max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .qz-progress i, .qz-opt, .gx-promo a { transition: none; } }

.gx-hero__media--img { border-radius: var(--r-xl, 22px); overflow: hidden; margin: 0; }
.gx-hero__media--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Gift card page: a live card preview and wrapping amount chips */
.gx-seg--wrap label span small { font-weight: 400; opacity: .8; }
#gcOther, #gcAt { margin-top: 10px; width: 100%; max-width: 260px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.gc { position: relative; align-self: center; justify-self: center; width: min(100%, 420px); aspect-ratio: 1.6 / 1; border-radius: 22px; padding: 22px 24px;
      display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 4px; color: #fff; overflow: hidden;
      background: radial-gradient(120% 90% at 100% 0%, rgba(150,181,121,.45), transparent 55%), linear-gradient(135deg, var(--mcc-primary), #047e80);
      box-shadow: 0 30px 60px -28px rgba(0, 60, 60, .7); }
.gc::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.06); }
.gc__logo { height: 28px; width: auto; }
.gc__label { font-size: 13px; letter-spacing: .5px; color: var(--mcc-gold-300); }
.gc__amount { align-self: end; font-size: clamp(34px, 6vw, 46px); line-height: 1; }
.gc__amount small { font-size: 16px; font-weight: 500; opacity: .85; }
.gc__to { font-size: 15px; opacity: .92; }
.gc__code { font: 600 14px/1 ui-monospace, monospace; letter-spacing: 2px; opacity: .8; }

/* Corporate page */
.corp-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.corp-points li { position: relative; padding-inline-start: 30px; }
.corp-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mcc-sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23036f71' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.corp-h { margin: 0 0 6px; font-size: 22px; color: var(--mcc-primary); }


/* ---------- Free assessment page (2026-11-25, client screenshot): an example WhatsApp chat on a phone instead of the
   scanner clip, and the form beside a side panel (why, photo tips, WhatsApp) so the page has no empty half. ---------- */
.as-cta { margin: 22px 0 0; }
.as-phone { margin: 0; justify-self: center; width: min(100%, 320px); display: grid; gap: 10px; justify-items: center; }
.as-phone figcaption { font-size: 12.5px; color: var(--muted); }
.as-phone__frame { width: 100%; border-radius: 34px; padding: 10px; background: #0f2f30; box-shadow: var(--sh-lg), inset 0 0 0 2px rgba(255,255,255,.08); }
.as-phone__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 26px 26px 0 0; background: var(--mcc-primary); color: #fff; }
.as-phone__bar b { display: block; font-size: 14px; line-height: 1.3; }
.as-phone__bar small { display: block; font-size: 12px; opacity: .8; }
.as-phone__av { width: 36px; height: 36px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center; }
.as-phone__av img { width: 100%; height: 100%; object-fit: cover; }
.as-chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 20px; min-height: 330px; border-radius: 0 0 26px 26px;
  background: #ece5dc radial-gradient(circle at 20% 10%, rgba(255,255,255,.55), transparent 55%); }
.as-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; color: #17302f; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.as-msg--me { align-self: flex-start; background: #d8f3e4; border-start-start-radius: 4px; }
.as-msg--them { align-self: flex-end; background: #fff; border-start-end-radius: 4px; }
.as-msg--pic { padding: 5px; display: grid; gap: 4px; }
.as-pic { display: grid; place-items: center; width: 150px; height: 104px; border-radius: 10px; background: linear-gradient(135deg, #7fc3b8, #058a8d); }
.as-pic svg { width: 46px; height: 46px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.as-pic__cap { padding: 0 6px 2px; font-size: 12.5px; }
.as-typing { display: none; }
.as-typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #8aa09d; animation: asDot 1s infinite; }
.as-typing i:nth-child(2) { animation-delay: .15s; } .as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes asDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* The chat plays once: the patient's photo and note, the doctor typing, then the two replies */
  .as-chat .as-msg { animation: asIn .45s cubic-bezier(.22, .61, .36, 1) both; }
  .as-chat .as-msg:nth-child(1) { animation-delay: .5s; }
  .as-chat .as-msg:nth-child(2) { animation-delay: 1.3s; }
  .as-chat .as-typing { display: block; animation: asTyping 1.6s ease both 2.1s; overflow: hidden; }
  .as-chat .as-msg:nth-child(4) { animation-delay: 3.7s; }
  .as-chat .as-msg:nth-child(5) { animation-delay: 4.6s; }
}
@keyframes asIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes asTyping { 0% { opacity: 0; max-height: 0; padding-block: 0; margin-block: -4px; } 12%, 85% { opacity: 1; max-height: 40px; padding-block: 8px; margin-block: 0; }
  100% { opacity: 0; max-height: 0; padding-block: 0; margin-block: -4px; } }

.as-sec { padding-top: 32px; }
.as-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1100px; }
.as-form__head h2 { margin: 0 0 4px; font-size: clamp(21px, 2.4vw, 26px); }
.as-form__head p { margin: 0; color: var(--muted); font-size: 15px; }
.as-sec .gx-drop { padding: 24px 18px; background: var(--tint, #f3f8f7); border-color: color-mix(in srgb, var(--mcc-primary) 28%, var(--line)); transition: border-color .2s, background .2s; }
.as-sec .gx-drop:hover { border-color: var(--mcc-primary); }
.as-drop__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--mcc-primary); box-shadow: var(--sh-sm, 0 2px 8px rgba(0,0,0,.06)); }
.as-drop__ico svg { width: 28px; height: 28px; }
.as-drop__sub { color: var(--muted); font-size: 13px; }
.gx-drop.has-files .as-drop__ico, .gx-drop.has-files .as-drop__sub { display: none; }

.as-aside { display: grid; gap: 16px; position: sticky; top: 96px; }
.as-why, .as-tips { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--sh-sm, 0 2px 8px rgba(0,0,0,.05)); }
.as-why { background: linear-gradient(160deg, #fff 0%, #f1f8f6 100%); }
.as-why h2, .as-tips h3 { margin: 0 0 14px; font-size: 18px; }
.as-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.as-why li { display: flex; gap: 12px; align-items: flex-start; }
.as-why li svg { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 50%; background: var(--mcc-primary); color: #fff; }
.as-why b { display: block; font-size: 15px; }
.as-why small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.as-tips ol { margin: 0; padding: 0; list-style: none; counter-reset: tip; display: grid; gap: 10px; }
.as-tips li { counter-increment: tip; display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.as-tips li::before { content: counter(tip); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--mcc-primary) 12%, #fff); color: var(--mcc-primary); font-weight: 700; font-size: 13px; }
.as-wa { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r-xl); background: #e9f9ef; border: 1px solid #bfe9cf;
  color: #12462a; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.as-wa:hover { transform: translateY(-2px); box-shadow: var(--sh-sm, 0 4px 12px rgba(0,0,0,.08)); text-decoration: none; }
.as-wa svg { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 50%; background: #25d366; color: #fff; }
.as-wa b { display: block; font-size: 15px; }
.as-wa small { font-size: 13.5px; color: #2f6a48; }
@media (max-width: 900px) {
  .as-main { grid-template-columns: 1fr; }
  .as-aside { position: static; }
  .as-phone { width: min(100%, 290px); }
  .as-chat { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .as-wa, .as-sec .gx-drop { transition: none; } }
