/* ---------- Date finder (first panel on home) – built on the site's search pill, category strip and listing cards ---------- */
.finder { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.fd-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.fd-head .eyebrow { margin-bottom: 0; }
.fd-lead { font-size: 15px; color: var(--body); }

/* search pill: 5 fields + button */
.search-pill.fd-pill { grid-template-columns: 1.1fr 1.3fr 1fr 1fr 1fr auto; }
.fd-pill .sp-field { padding: 10px 20px; min-width: 0; }
.fd-pill .sp-field input[type="date"] { min-height: 24px; }
.fd-pill .sp-go { height: 56px; }
.fd-opts { display: flex; justify-content: flex-end; padding: 10px 8px 0; }
.fd-flex { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--title); color: var(--navy); cursor: pointer; }
.fd-flex input { width: 17px; height: 17px; accent-color: var(--navy); margin: 0; }

/* category strip reused for treatments + extras */
.fd-cats { padding-top: 14px; gap: 26px; }
.fd-cats .cat { background: none; border-top: 0; border-left: 0; border-right: 0; border-radius: 0; cursor: pointer; }
.fd-cats .fd-xt.on { color: var(--green-d); border-color: var(--green); }
.fd-cats .fd-xt.on .ic { color: var(--green-d); }

/* results */
.fd-results { margin-top: 18px; }
.fd-rhead { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.fd-rhead h3 { font: 600 20px var(--title); color: var(--navy); }
.fd-rhead p { font-size: 13.5px; color: var(--muted); }
.fd-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fd-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.fd-empty { grid-column: 1 / -1; padding: 26px; border-radius: var(--r); background: var(--smoke); text-align: center; }
.fd-muted { color: var(--muted); font-weight: 400; }

/* card – same look as .lcard */
.fd-c { min-width: 0; display: flex; flex-direction: column; }
.fd-media { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: var(--r); overflow: hidden; background: var(--smoke); }
.fd-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.fd-media:hover img { transform: scale(1.04); }
.fd-media .badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--title); box-shadow: var(--shadow-s); }
.fd-c .meta { padding-top: 10px; }
.fd-c .r1 { display: flex; justify-content: space-between; gap: 10px; }
.fd-c h4 { font: 600 16px/1.3 var(--title); color: var(--navy); letter-spacing: -.01em; }
.fd-c .city { font-size: 14px; color: var(--body); display: flex; align-items: center; gap: 4px; flex: none; }
.fd-c .city .ic { width: 14px; height: 14px; }
.fd-c .tags { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.fd-c .price { margin-top: 4px; font-size: 15px; color: var(--navy); }
.fd-c .price b { font-weight: 700; }
.fd-c .price u { text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }

/* actions: View | Compare | Request */
.fd-acts { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; margin-top: 12px; }
.fd-b { height: 40px; padding: 0 14px; border-radius: 999px; font: 600 12.5px/1 var(--title); letter-spacing: .02em; text-transform: uppercase; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: box-shadow .2s, background .2s; }
.fd-b:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.fd-b .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.fd-req { color: #fff; background: var(--action); box-shadow: var(--glow-green); }
.fd-req:hover { box-shadow: var(--glow-green); background: var(--teal-700); }
.fd-req.on { background: var(--smoke2); color: var(--green-d); box-shadow: inset 0 0 0 1.5px var(--green); }

/* quick-compare popover */
.fd-cw { position: relative; display: inline-flex; }
.fd-pop { position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 20; width: 300px; padding: 14px 16px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-l); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none; text-align: left; }
.fd-pop::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.fd-cw:focus-within .fd-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 641px) { .fd-cw:hover .fd-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.fd-pop-h { font: 600 12px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); margin-bottom: 8px; }
.fd-pop dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 13.5px; }
.fd-pop dt { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.fd-pop dt .ic { width: 15px; height: 15px; color: var(--navy); }
.fd-pop dd { margin: 0; color: var(--navy); }
.fd-pop-f { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* compare tray + table */
.fd-tray { position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--navy); color: #fff; font: 500 14px var(--title); box-shadow: var(--shadow-l); transform: translate(-50%, 140%); transition: transform .3s var(--ease); }
.fd-tray.show { transform: translate(-50%, 0); }
.fd-tray:not(.show) { visibility: hidden; }
.fd-tray-c { height: 40px; padding: 0 16px; border-radius: 999px; color: #fff; font: 600 13px var(--title); text-transform: uppercase; letter-spacing: .02em; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.fd-tray-c:disabled { opacity: .4; cursor: default; }
.fd-tray-go { height: 40px; padding: 0 20px; border-radius: 999px; background: var(--action); color: #fff; font: 600 13px var(--title); text-transform: uppercase; letter-spacing: .02em; }
.fd-tray-go:disabled { opacity: .45; cursor: default; }
.fd-tray-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fd-tray-x .ic { width: 18px; height: 18px; }
.fd-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; background: rgba(5, 56, 99, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.fd-modal.open { opacity: 1; pointer-events: auto; }
.fd-sheet { position: relative; width: min(860px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-l); }
.fd-sheet h3 { font-size: 26px; }
.fd-mx { position: absolute; top: 16px; right: 16px; }
.fd-tw { overflow-x: auto; margin-top: 18px; }
.fd-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.fd-table th, .fd-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fd-table tbody th { font: 600 13.5px var(--title); color: var(--navy); white-space: nowrap; }
.fd-table thead th:first-child { width: 150px; }
.fd-table tbody th .ic { width: 16px; height: 16px; color: var(--green-d); margin-right: 4px; vertical-align: -3px; }
.fd-table td { color: var(--navy); }
.fd-table thead th { border-bottom: 0; }
.fd-table thead img { width: 100%; height: 96px; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.fd-table thead b { display: block; font: 600 15px/1.3 var(--title); color: var(--navy); }
.fd-table thead span { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--body); font-weight: 400; }
.fd-table thead span .ic { width: 13px; height: 13px; }
.fd-table tr:last-child td { border-bottom: 0; }
.fd-fine { font-size: 12.5px; margin-top: 12px; }

@media (max-width: 1180px) {
  .search-pill.fd-pill { grid-template-columns: 1fr 1fr 1fr; border-radius: 28px; }
  .fd-pill .sp-field:nth-child(4)::before { display: none; }
  .fd-pill .sp-go { grid-column: auto; justify-content: center; }
  .fd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .finder { padding: 20px 0 26px; }
  .fd-head { gap: 6px; }
  .search-pill.fd-pill { grid-template-columns: 1fr 1fr; }
  .fd-pill .sp-field { padding: 9px 16px; }
  .fd-pill .sp-field::before { display: none; }
  .fd-pill .sp-field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .fd-pill .sp-field input, .fd-pill .sp-field select { font-size: 14.5px; }
  .fd-pill .sp-go { grid-column: 1 / -1; height: 50px; }
  .fd-opts { justify-content: flex-start; }
  .fd-cats { gap: 20px; justify-content: flex-start; }
  .fd-list { grid-template-columns: minmax(0, 1fr); }
  .fd-acts { grid-template-columns: 1fr 1fr; }
  .fd-req { grid-column: 1 / -1; }
  .fd-cw, .fd-cw .fd-b { width: 100%; }
  .fd-pop { left: auto; right: 0; width: min(300px, calc(100vw - 32px)); transform: translateY(6px); }
  .fd-cw:focus-within .fd-pop { transform: none; }
  .fd-pop::after { left: auto; right: 40px; }
  .fd-media { aspect-ratio: 2.2 / 1; }
  .fd-tray { left: 12px; right: 88px; bottom: 26px; transform: translateY(140%); gap: 6px; padding: 6px 6px 6px 14px; font-size: 12.5px; }
  .fd-tray #fd-tray-t { flex: 1; }
  .fd-tray-c, .fd-tray-go { padding: 0 12px; font-size: 12px; }
  .fd-tray-x { display: none; }
  .fd-tray.show { transform: none; }
  .fd-sheet { padding: 22px 16px; }
}

/* ---------- Compact top banner (hero) + search dropped under it ---------- */
.hero.hero-sm { padding: 38px 0 82px; }
.hero-sm .container { grid-template-columns: minmax(0, 1fr) auto; gap: 36px; }
.hero-sm .hero-tag { font-size: 12px; gap: 10px; padding: 5px 14px 5px 5px; }
.hero-sm .hero-tag b { padding: 4px 10px; }
.hero-sm h1 { font-size: clamp(30px, 3.6vw, 48px); margin: 14px 0 10px; }
.hero-sm h1 br { display: none; }
.hero-sm h1 .boxed { margin: 0 .12em 0 .22em; }
.hero-sm h1 .boxed i { width: 9px; height: 9px; }
.hero-sm h1 .boxed i:nth-child(1), .hero-sm h1 .boxed i:nth-child(3) { left: -6px; }
.hero-sm h1 .boxed i:nth-child(2), .hero-sm h1 .boxed i:nth-child(4) { right: -6px; }
.hero-sm p.sub { font-size: 16px; max-width: 640px; }
.hero-sm .ctas { margin-top: 18px; gap: 12px; }
.hero-sm .ctas .btn { height: 46px; padding: 0 22px; font-size: 13px; }
.hero-sm .hero-proof { margin-top: 16px; gap: 18px; font-size: 13px; }
.hero-sm .hero-proof .ic { width: 16px; height: 16px; }
.hero-sm .hero-visual { height: auto; display: flex; flex-direction: column; gap: 12px; }
.hero-sm .hero-photo, .hero-sm .fc-stay { display: none; }
.hero-sm .float-card { position: static; animation: none; padding: 14px 16px; border-radius: 18px; }
.hero-sm .fc-price { width: 240px; }
.hero-sm .float-card .v { font-size: 20px; }

.finder.fd-under { padding-top: 0; }
.fd-under .fd-head { display: none; }
.fd-under .fd-pill { position: relative; z-index: 5; max-width: 1100px; margin: -44px auto 0; }
.fd-under .fd-opts { max-width: 1100px; margin: 0 auto; }

@media (max-width: 980px) {
  .hero.hero-sm { padding: 30px 0 76px; }
  .hero-sm .container { grid-template-columns: 1fr; gap: 18px; }
  .hero-sm .hero-visual { flex-direction: row; flex-wrap: wrap; }
  .hero-sm .fc-price { width: auto; flex: 1 1 220px; }
}
@media (max-width: 640px) {
  .hero.hero-sm { padding: 22px 0 66px; }
  .hero-sm h1 { font-size: 30px; }
  .hero-sm p.sub { font-size: 15px; }
  .hero-sm .hero-visual, .hero-sm .hero-proof { display: none; }
  .hero-sm .ctas .btn { flex: 1; padding: 0 12px; font-size: 12px; white-space: nowrap; }
  .hero-sm .hero-tag { font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; }
  .hero-sm h1 .boxed { margin: 0 .1em 0 .18em; }
  .fd-under .fd-pill { margin-top: -40px; }
}

/* ---------- Request flow (clinics accept, no shared calendars) ---------- */
.fd-how { list-style: none; margin: 18px 0 0; padding: 14px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; border-radius: var(--r); background: var(--smoke2); font: 500 13.5px/1.35 var(--title); color: var(--navy); }
.fd-how li { display: flex; align-items: center; gap: 10px; }
.fd-how b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--action); color: #fff; font: 700 12.5px var(--title); box-shadow: var(--glow-green); }
.fd-c.sel .fd-media { box-shadow: 0 0 0 3px var(--green); }
.fd-c.sel .badge { color: var(--green-d); }
.fd-facts { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; color: var(--body); }
.fd-facts li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fd-facts .ic { width: 15px; height: 15px; color: var(--green-d); flex: none; }
.fd-toast { position: fixed; left: 50%; top: 96px; z-index: 140; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; font: 500 14px var(--title); box-shadow: var(--shadow-l); transition: opacity .2s, transform .2s; }
.fd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fd-sheet-f { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.fd-sheet-f .fd-fine { margin: 0; }
.fd-modal[data-view="request"] .fd-sheet, .fd-modal[data-view="sent"] .fd-sheet { width: min(620px, 100%); }
.fd-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fd-sum span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--smoke); font: 500 13px var(--title); color: var(--navy); }
.fd-sum .ic { width: 15px; height: 15px; color: var(--green-d); }
.fd-picked { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.fd-picked li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; }
.fd-picked img { width: 56px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.fd-picked div { flex: 1; min-width: 0; }
.fd-picked b { display: block; font: 600 14.5px var(--title); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-picked span { font-size: 13px; color: var(--muted); }
.fd-rm { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.fd-rm:hover { background: var(--smoke); color: var(--navy); }
.fd-rm .ic { width: 16px; height: 16px; }
.fd-rq .consent { margin-top: 10px; }
.fd-rq .btn.block { margin-top: 16px; }
.fd-err { color: var(--red-700); font-size: 14px; margin-top: 8px; }
.fd-err:empty { display: none; }
.fd-ok { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: var(--glow-green); }
.fd-ok .ic { width: 30px; height: 30px; stroke-width: 2.5; }
.fd-ref { color: var(--green-d); white-space: nowrap; }
.fd-steps { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.fd-steps li { display: flex; gap: 14px; align-items: flex-start; }
.fd-steps li > b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font: 700 13px var(--title); color: var(--navy); }
.fd-steps li.done > b, .fd-steps li.now > b { background: var(--action); border-color: var(--action); color: #fff; }
.fd-steps li.now > b { box-shadow: 0 0 0 5px rgba(34, 179, 168, .18); }
.fd-steps li > b .ic { width: 15px; height: 15px; stroke-width: 3; }
.fd-steps strong { display: block; font: 600 15px var(--title); color: var(--navy); }
.fd-steps span { font-size: 14px; }

/* request.html (patient) + clinic-reply.html (clinic) */
.rq-wrap { max-width: 860px; margin: -50px auto 0; position: relative; z-index: 3; padding-bottom: 90px; }
.rq-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; }
.rq-card + .rq-card { margin-top: 20px; }
.rq-card h2 { font-size: 24px; }
.rq-card h3 { font-size: 19px; margin-bottom: 10px; }
.rq-kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; margin-top: 14px; font-size: 15px; }
.rq-kv dt { font: 600 13.5px var(--title); color: var(--muted); }
.rq-kv dd { margin: 0; color: var(--navy); }
.rq-offers { display: grid; gap: 14px; margin-top: 16px; }
.rq-offer { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.rq-offer.chosen { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.rq-offer .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rq-offer h4 { font: 600 17px var(--title); color: var(--navy); }
.rq-st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 12.5px var(--title); background: var(--smoke); color: var(--body); }
.rq-st.accepted { background: rgba(34, 179, 168, .14); color: var(--green-d); }
.rq-st.info { background: #fff3dc; color: #96610a; }
.rq-st.declined { background: var(--red-50); color: var(--red-700); }
.rq-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rq-date { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font: 600 14px var(--title); color: var(--navy); cursor: pointer; }
.rq-date input { accent-color: var(--green); margin: 0; }
.rq-date:has(input:checked) { border-color: var(--green); background: rgba(34, 179, 168, .08); }
.rq-offer p { margin-top: 10px; font-size: 14.5px; }
.rq-offer .btn { margin-top: 14px; }
.rq-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.rq-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 16px; border: 1.5px solid var(--line); font: 600 14px var(--title); color: var(--navy); text-align: center; cursor: pointer; }
.rq-opt .ic { width: 26px; height: 26px; stroke-width: 2; color: var(--navy); }
.rq-opt small { font: 400 12.5px var(--text); color: var(--muted); }
.rq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rq-opt:has(input:checked) { border-color: var(--navy); background: var(--smoke); }
.rq-pane { margin-top: 18px; }
.rq-pane[hidden] { display: none; }
.rq-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rq-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) {
  .rq-card { padding: 20px 16px; border-radius: var(--r); }
  .rq-kv { grid-template-columns: 1fr; gap: 2px; }
  .rq-kv dd { margin-bottom: 8px; }
  .rq-opts, .rq-pick { grid-template-columns: 1fr; }
}
.rq-pick input { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; margin-top: 6px; }
@media (max-width: 980px) { .fd-how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fd-how { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; } .fd-how b { width: 24px; height: 24px; } }

/* ---------- v4: slimmer banner, plain 70%, full-width search, dock-style icon bar ---------- */
.hero.hero-sm { padding: 24px 0 64px; }
.hero-sm .container { align-items: center; }
.hero-sm .hero-tag { font-size: 11px; padding: 4px 12px 4px 4px; }
.hero-sm h1 { font-size: clamp(28px, 3vw, 40px); margin: 10px 0 6px; }
.hero-sm h1 .boxed { margin: 0 .08em 0 .18em; padding: 0; color: inherit; }
.hero-sm h1 .boxed::before, .hero-sm h1 .boxed i { display: none; }
.hero-sm p.sub { font-size: 15px; max-width: 600px; line-height: 1.55; }
.hero-sm .ctas { margin-top: 14px; }
.hero-sm .ctas .btn { height: 42px; padding: 0 20px; font-size: 12.5px; }
.hero-sm .hero-proof { margin-top: 12px; }
.hero-sm .hero-visual { gap: 10px; }
.hero-sm .float-card { padding: 10px 14px; border-radius: 16px; }
.hero-sm .fc-price { width: 220px; }
.hero-sm .fc-price .row { margin-top: 4px; }
.hero-sm .fc-price .save { margin-top: 6px; padding: 3px 9px; font-size: 12px; }
.hero-sm .float-card .v { font-size: 18px; }
.hero-sm .fc-flight .ib { width: 38px; height: 38px; border-radius: 12px; }

/* search: same width as the banner content */
.fd-under .fd-pill, .fd-under .fd-opts { max-width: none; }
.fd-under .fd-pill { margin-top: -38px; }

/* dock: treatments + extras, same width as the 4-step process strip */
.fd-cats.fd-dock { display: flex; justify-content: center; align-items: flex-end; gap: 4px; overflow: visible; margin-top: 14px; padding: 12px 18px 8px; border-radius: var(--r); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.fd-dock .cat { --s: 1; flex: 1 1 0; min-width: 0; gap: 4px; padding: 0 0 6px; font-size: 11.5px; border-bottom-width: 2px; }
.fd-dock .cat .ic { width: 22px; height: 22px; transform: translateY(calc((var(--s) - 1) * -14px)) scale(var(--s)); transform-origin: 50% 100%; transition: transform .12s ease-out; will-change: transform; }
.fd-dock .cat span { transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fd-dock.calm .cat .ic { transition: transform .3s var(--ease); }
.fd-dock .cats-sep { margin: 4px 6px 10px; }
.fd-how { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .fd-dock .cat .ic { transform: none !important; } }
@media (max-width: 980px) {
  .fd-cats.fd-dock { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-top: 10px; }
  .fd-dock .cat { flex: 0 0 auto; min-width: 72px; }
}
@media (max-width: 640px) {
  .hero.hero-sm { padding: 18px 0 58px; }
  .hero-sm h1 { font-size: 27px; }
  .fd-under .fd-pill { margin-top: -34px; }
  .fd-dock .cat { min-width: 64px; }
}

/* ---------- v5: flexible switch inside the search bar; search bar + icon dock as one neat unit ---------- */
.search-pill.fd-pill { grid-template-columns: 1.05fr 1.25fr 1fr 1fr 1fr .9fr auto; border-radius: 24px; padding: 8px; }
.fd-pill .sp-field { border-radius: 16px; }
.fd-flexf .fd-sw { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; font: 400 15px var(--text); color: var(--body); letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.fd-flexf .fd-sw { position: relative; }
.fd-sw input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.fd-sw i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #d5dbe5; transition: background .2s; }
.fd-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(5, 56, 99, .25); transition: transform .2s var(--ease); }
.fd-sw input:checked + i { background: var(--green); }
.fd-sw input:checked + i::after { transform: translateX(14px); }
.fd-sw input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.fd-pill .sp-go { height: 58px; border-radius: 18px; padding: 0 26px 0 22px; }
.fd-opts { display: none; }
.fd-cats.fd-dock { margin-top: 12px; border-radius: 24px; background: #fff; }
@media (max-width: 1180px) {
  .fd-pill .sp-go { grid-column: 1 / -1; justify-content: center; height: 52px; }
}
@media (max-width: 640px) {
  .search-pill.fd-pill { border-radius: 22px; }
  .fd-pill .fd-flexf { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .fd-flexf .fd-sw { margin-top: 0; }
  .fd-pill .sp-go { height: 50px; }
}
@media (max-width: 1180px) { .search-pill.fd-pill { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .search-pill.fd-pill { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- v6: "How it works" strip above the search bar ---------- */
.fd-howwrap { display: flex; align-items: center; gap: 18px; padding: 10px 14px 10px 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(5, 56, 99, .14); }
.fd-under .fd-howwrap { position: relative; z-index: 5; margin-top: -38px; }
.fd-how-t { flex: none; display: inline-flex; align-items: center; gap: 8px; padding-right: 18px; border-right: 1px solid var(--line); font: 600 13px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); white-space: nowrap; }
.fd-howwrap .fd-how { flex: 1; margin: 0; padding: 4px 0; background: none; border-radius: 0; }
.fd-under .fd-pill { margin-top: 12px; }
@media (max-width: 980px) {
  .fd-howwrap { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px; }
  .fd-how-t { padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .fd-under .fd-howwrap { margin-top: -34px; border-radius: 22px; }
  .fd-under .fd-pill { margin-top: 10px; }
}

/* ---------- v7: "How it works" inside the banner, with step icons ---------- */
.hero.hero-sm { padding-bottom: 70px; }
.fd-howband { position: relative; z-index: 2; margin-top: 22px; }
.hero .fd-howwrap { margin: 0; padding: 14px 22px; border-radius: 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .fd-how-t { color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .fd-how-t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 179, 168, .3); }
.hero .fd-how { gap: 12px 34px; padding: 0; color: #fff; font: 500 14px/1.35 var(--title); }
.hero .fd-how li { position: relative; gap: 14px; }
.hero .fd-how li:not(:last-child)::after { content: ""; position: absolute; right: -21px; top: 50%; width: 8px; height: 8px; border: solid rgba(255, 255, 255, .55); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.fd-step-ic { position: relative; flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .35); transition: transform .25s var(--ease), background .25s; }
.fd-step-ic .ic { width: 22px; height: 22px; color: #fff; stroke-width: 1.8; }
.hero .fd-how .fd-step-ic b { position: absolute; top: -7px; right: -7px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--action); color: #fff; font: 700 11px var(--title); box-shadow: 0 0 0 3px rgba(5, 64, 111, .45); }
.hero .fd-how li:hover .fd-step-ic { transform: translateY(-3px); background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12)); }
.fd-step-tx { min-width: 0; }
@media (max-width: 980px) {
  .hero .fd-howwrap { padding: 14px 16px; }
  .hero .fd-how { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .hero .fd-how li::after { display: none; }
}
@media (max-width: 640px) {
  .fd-howband { margin-top: 16px; }
  .hero .fd-how { font-size: 12.5px; gap: 12px; }
  .hero .fd-how li { gap: 10px; }
  .fd-step-ic { width: 38px; height: 38px; border-radius: 12px; }
  .fd-step-ic .ic { width: 18px; height: 18px; }
  .hero .fd-how .fd-step-ic b { width: 18px; height: 18px; font-size: 10px; top: -6px; right: -6px; }
}
.hero .container.fd-howband { display: block; }
.fd-under .fd-pill { margin-top: -38px; }
@media (max-width: 640px) { .fd-under .fd-pill { margin-top: -34px; } }
@media (max-width: 1180px) {
  .hero .fd-howwrap { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 18px; }
  .hero .fd-how-t { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .hero .fd-how { grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  .hero .fd-how li::after { display: none; }
}

/* ---------- v8: "How it works" in the banner, drawn like the site's own steps (white bubbles, dashed line, green numbers) ---------- */
.hero .fd-howwrap { display: block; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero .fd-how-t { display: flex; justify-content: center; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; color: #fff; font: 600 13px var(--title); letter-spacing: .12em; }
.hero .fd-how-t::before, .hero .fd-how-t::after { content: ""; width: 28px; height: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .4); border-radius: 0; box-shadow: none; background: none; align-self: center; }
.hero .fd-how { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; text-align: center; color: #fff; font: 500 14px/1.4 var(--title); }
.hero .fd-how::before { content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; border-top: 2px dashed rgba(255, 255, 255, .45); }
.hero .fd-how li { position: relative; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 14px; }
.hero .fd-how li::after, .hero .fd-how li:not(:last-child)::after { display: none; }
.hero .fd-step-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 10px 26px rgba(5, 56, 99, .28); }
.hero .fd-step-ic .ic { width: 24px; height: 24px; color: var(--blue); stroke-width: 1.7; }
.hero .fd-how .fd-step-ic b { top: -4px; right: -6px; width: 22px; height: 22px; font-size: 11px; box-shadow: var(--glow-green); }
.hero .fd-how li:hover .fd-step-ic { transform: translateY(-3px); background: #fff; }
.hero .fd-step-tx { max-width: 210px; }
@media (max-width: 860px) {
  .hero .fd-how { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .hero .fd-how::before { display: none; }
}
@media (max-width: 640px) {
  .hero .fd-how-t { margin-bottom: 12px; font-size: 12px; }
  .hero .fd-how { font-size: 12.5px; row-gap: 14px; }
  .hero .fd-how li { gap: 8px; padding: 0 6px; }
  .hero .fd-step-ic { width: 44px; height: 44px; }
  .hero .fd-step-ic .ic { width: 20px; height: 20px; }
  .hero .fd-how .fd-step-ic b { width: 18px; height: 18px; font-size: 10px; }
}
/* v8b: steps span the full content width (first step on the left edge, last on the right) */
@media (min-width: 861px) {
  .hero .fd-how { display: flex; justify-content: space-between; }
  .hero .fd-how li { flex: 0 0 200px; padding: 0; }
  .hero .fd-how::before { left: 100px; right: 100px; }
  .hero .fd-step-tx { max-width: 200px; }
}

/* multi-clinic compare */
.fd-b.fd-cmpon { background: var(--smoke2); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.fd-uncmp { display: block; margin: 8px auto 0; padding: 0; background: none; border: 0; color: var(--muted); font: 500 12.5px var(--text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lcard .r1 { align-items: center; }
.tc-cmp { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 600 12px var(--title); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.tc-cmp:hover { border-color: var(--blue); }
.tc-cmp .ic { width: 13px; height: 13px; }
.tc-cmp:not(.on) .ic { display: none; }
.tc-cmp.on { border-color: var(--blue); background: var(--smoke2); color: var(--blue); }
/* request page, step 5: book flights & hotel once a clinic is chosen */
.rq-trip { border: 2px solid var(--green, #22b3a8); }
.rq-trip h3 { margin-top: 10px; }
.rq-trip-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rq-trip-go .btn { flex: 1 1 220px; justify-content: center; }
/* journey: the 4 steps in the banner are links */
.fd-how li > a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.fd-how li > a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.fd-step { display: inline-block; margin-bottom: 6px; font: 700 12px var(--title); letter-spacing: .07em; text-transform: uppercase; color: var(--green-d); }
/* treatment / extras bar: icons fill the bar edge to edge, the same width as the search box above */
.fd-cats.fd-dock { overflow: visible; }
.fd-cats.fd-dock > .cat { flex: 1 1 0; min-width: 0; }
.fd-dock .cat span { white-space: normal; text-align: center; line-height: 1.15; overflow: visible; }
@media (max-width: 980px) {
  .fd-cats.fd-dock { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); row-gap: 10px; column-gap: 0; overflow: visible; padding: 12px 8px 8px; }
  .fd-cats.fd-dock > .cat { grid-column: span 5; flex: none; min-width: 0; }
  .fd-cats.fd-dock > .fd-xt { grid-column: span 6; }
  .fd-dock .cats-sep { grid-column: 1 / -1; width: auto; height: 1px; margin: 0 10px; }
}
@media (max-width: 420px) { .fd-dock .cat { font-size: 10.5px; } .fd-dock .cat .ic { width: 20px; height: 20px; } }
.hero .fd-how li > a { flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; text-align: center; color: #fff; }
.hero .fd-how li:hover .fd-step-tx { text-decoration: underline; text-underline-offset: 3px; }
.hero .fd-how li > a:hover span { text-decoration: none; }
@media (max-width: 640px) { .hero .fd-how li > a { gap: 8px; } }
