/* "Free quotes" wizard (assets/js/quote.js) + the 5-step strip in the home banner */
.qz-wrap { max-width: 980px; margin: 0 auto; }
.qz-card { position: relative; z-index: 5; max-width: 980px; margin: 0 auto; padding: 28px 32px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(5, 56, 99, .14); }
.qz-home .qz-card { margin-top: -38px; }
.qz-head { text-align: center; margin-bottom: 18px; }
.qz-title { margin: 10px 0 6px; font: 600 clamp(24px, 3vw, 32px)/1.2 var(--title); color: var(--navy); }
.qz-title em { font-style: normal; color: var(--green-d); }
.qz-lead { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 15px; }

.qz-prog { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; padding: 0; counter-reset: q; }
.qz-prog li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--smoke2, #f2f6fa); font: 500 13px/1.25 var(--title); color: var(--muted); cursor: pointer; min-width: 0; }
.qz-prog li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-prog b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font: 700 12px var(--title); color: var(--navy); }
.qz-prog li.on { background: rgba(34, 179, 168, .12); color: var(--navy); }
.qz-prog li.on b, .qz-prog li.done b { background: var(--action); border-color: var(--action); color: #fff; }

.qz-pane { border: 0; margin: 0; padding: 0; min-width: 0; }
.qz-pane[hidden] { display: none; }
.qz-pane legend { display: block; width: 100%; margin: 0 0 14px; padding: 0; font: 600 18px/1.3 var(--title); color: var(--navy); }
.qz-pane legend small { display: block; margin-top: 2px; font: 400 13.5px var(--body, inherit); color: var(--muted); }
.qz-lbl { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13.5px; color: var(--navy); }
.qz-lbl small { font-weight: 400; color: var(--muted); }

.qz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.qz-x { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; line-height: 1.25; color: var(--navy); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.qz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.qz-chip:hover { border-color: var(--green); }
.qz-chip:has(input:checked) { border-color: var(--green); background: rgba(34, 179, 168, .1); box-shadow: 0 0 0 1px var(--green) inset; }
.qz-chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.qz-tile { flex-direction: column; justify-content: center; gap: 8px; padding: 16px 10px 14px; border-radius: 16px; text-align: center; font: 500 14px/1.25 var(--title); }
.qz-ti { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--smoke2, #f2f6fa); transition: background .2s, transform .2s; }
.qz-ti .ic { width: 22px; height: 22px; color: var(--blue); }
.qz-tile:hover .qz-ti { transform: translateY(-2px); }
.qz-tile:has(input:checked) .qz-ti { background: var(--green); }
.qz-tile:has(input:checked) .qz-ti .ic { color: #fff; }
.qz-tile:has(input:checked)::after { content: ""; position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--green, #22b3a8) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23fff%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center / 13px no-repeat; }

.qz-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); cursor: pointer; }
.qz-check input { width: 18px; height: 18px; accent-color: var(--green); }
.qz-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.qz-form select:disabled { opacity: .5; }
.qz-form .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.qz-form .consent input { flex: none; margin-top: 2px; width: 17px; height: 17px; accent-color: var(--green); }
.qz-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--smoke2, #f2f6fa); font-size: 13px; color: var(--muted); }
.qz-note .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--green-d); }
.qz-err { display: none; margin: 10px 0 0; font-size: 13.5px; color: #c0392b; }
.qz-err.on { display: block; }

.qz-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.qz-count { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.qz-back[hidden] + .qz-count { text-align: left; }
.qz-nav [hidden] { display: none; }
.qz-fine { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.qz-fine span { display: inline-block; margin: 0 6px; white-space: nowrap; }
.qz-done .qz-ref { font-size: 22px; color: var(--navy); }
.qz-fine .ic { width: 13px; height: 13px; color: var(--green-d); vertical-align: -2px; }

.qz-done { text-align: center; padding: 10px 0 4px; }
.qz-done .big { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--green); box-shadow: var(--glow-green); }
.qz-done .big .ic { width: 30px; height: 30px; color: #fff; }
.qz-done h3 { font: 600 22px var(--title); color: var(--navy); margin: 0 0 8px; }
.qz-done p { max-width: 560px; margin: 8px auto 0; }
.qz-ref { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }

/* home "How it works": 5 steps */
.steps.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.steps.n5::before { left: 10%; right: 10%; }
.steps.n5 .step h4 { font-size: 19px; }
@media (max-width: 1100px) { .steps.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } .steps.n5::before { display: none; } }
@media (max-width: 760px) { .steps.n5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps.n5 { grid-template-columns: 1fr; } }

/* home banner: 5 steps instead of 4 */
.hero .fd-how.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero .fd-how.n5::before { left: 10%; right: 10%; }
@media (max-width: 860px) {
  .hero .fd-how.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .qz-card { padding: 22px 18px 18px; border-radius: 20px; }
  .qz-home .qz-card { margin-top: -34px; }
  .qz-prog { gap: 6px; }
  .qz-prog li { justify-content: center; padding: 8px 4px; }
  .qz-prog li span { display: none; }
  .qz-prog li.on span { display: inline; }
  .qz-prog li.on { grid-column: span 1; }
  .qz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-tile { padding: 12px 8px; font-size: 13px; }
  .qz-count { display: none; }
  .qz-nav .btn { flex: 1; justify-content: center; }
}
@media (max-width: 560px) {
  .hero .fd-how.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-prog li.on span { display: none; }
}

/* ---------- quote page (request.html, assets/js/requests.js → quotePage) ---------- */
body[data-page="request"] .rq-wrap { max-width: 1080px; }
.qt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.qt-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: var(--r, 20px); border: 1px solid var(--line); background: #fff; }
.qt-card.best { border-color: var(--green); }
.qt-card.chosen { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.qt-badge { position: absolute; top: -12px; left: 18px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: var(--green); color: #fff; font: 700 11.5px var(--title); letter-spacing: .04em; text-transform: uppercase; }
.qt-badge .ic { width: 12px; height: 12px; }
.qt-n { font: 700 11px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); }
.qt-card h4 { margin: -4px 0 0; font: 600 19px/1.25 var(--title); color: var(--navy); }
.qt-city { margin: -4px 0 0; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.qt-city .ic { width: 14px; height: 14px; }
.qt-about { padding: 0; border: 0; background: none; font: inherit; color: var(--green-d); text-decoration: underline; cursor: pointer; }
.qt-price { padding: 12px 14px; border-radius: 14px; background: var(--smoke2, #f2f6fa); }
.qt-price b { display: block; font: 700 26px/1.1 var(--title); color: var(--navy); }
.qt-price small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.qt-items, .qt-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.qt-items li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); color: var(--navy); }
.qt-items b { white-space: nowrap; font-weight: 600; }
.qt-inc li { display: flex; gap: 6px; align-items: flex-start; color: var(--navy); }
.qt-inc .ic { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--green-d); }
.qt-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13.5px; }
.qt-kv:empty { display: none; }
.qt-kv dt { color: var(--muted); }
.qt-kv dd { margin: 0; color: var(--navy); }
.qt-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.qt-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.qt-dates > span { flex-basis: 100%; font: 600 12px var(--title); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.qt-card .btn.block { width: 100%; justify-content: center; margin-top: 4px; }
.qt-wait { display: flex; gap: 18px; align-items: flex-start; }
.qt-wait-ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--smoke2, #f2f6fa); }
.qt-wait-ic .ic { width: 24px; height: 24px; color: var(--blue); }
.qt-wait p { margin: 6px 0 0; }
.qt-booked { border: 2px solid var(--green); }
.rq-trip-go { flex-wrap: wrap; }
@media (max-width: 560px) { .qt-wait { flex-direction: column; } .qt-price b { font-size: 23px; } }

/* treatment pictures on the quote tiles (assets/img/treatments/<id>.webp) */
.qz-tile .qz-ti.qz-pic { width: 76px; height: 76px; background: radial-gradient(circle at 50% 55%, #fff 0, #eaf3f6 72%); overflow: visible; }
.qz-ti.qz-pic img { display: block; width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(5, 56, 99, .16)); transition: transform .2s; }
.qz-tile:hover .qz-ti.qz-pic img { transform: scale(1.07); }
.qz-tile:has(input:checked) .qz-ti.qz-pic { background: radial-gradient(circle at 50% 55%, #fff 0, #d3f0ec 72%); }
@media (max-width: 760px) { .qz-tile .qz-ti.qz-pic { width: 60px; height: 60px; } .qz-ti.qz-pic img { width: 56px; height: 56px; } }

/* home: the quote card sits below the hero video (never over its caption); heading with the tooth badge */
section.qz-home .qz-card { margin-top: 28px; }
section.qz-home .qz-head { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; align-items: center; text-align: left; }
section.qz-home .qz-head::before { content: ""; grid-row: 1 / span 3; width: 76px; height: 76px; border-radius: 50%; background: #e9f6f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b3a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3C4.5 3 3 5 3 7.5c0 2 .8 3.5 1.5 5 .7 1.6 1 3.5 1.5 6 .3 1.6 1 2.5 2 2.5s1.5-1 1.8-2.5c.3-1.5.7-3.5 2.2-3.5s1.9 2 2.2 3.5c.3 1.5.8 2.5 1.8 2.5s1.7-.9 2-2.5c.5-2.5.8-4.4 1.5-6 .7-1.5 1.5-3 1.5-5C21 5 19.5 3 17 3c-2 0-3 1-5 1S9 3 7 3z'/%3E%3C/svg%3E") center / 38px no-repeat; }
section.qz-home .qz-head > * { grid-column: 2; }
section.qz-home .qz-head .qz-title { margin: 6px 0 4px; }
section.qz-home .qz-head .qz-lead { margin: 0; max-width: 640px; }
@media (max-width: 760px) {
  section.qz-home .qz-card { margin-top: 20px; }
  section.qz-home .qz-head { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
  section.qz-home .qz-head::before { width: 52px; height: 52px; background-size: 26px; }
}
