/* PsihoTime - stiluri principale. Fara framework. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #FAFBFE;
  --surface: #FFFFFF;
  --ink: #16263A;
  --ink-soft: #3F5163;
  --muted: #607285;
  --dusk: #4A6FA5;
  --dusk-deep: #3A5A8C;
  --mist: #DAE2EF;
  --mist-soft: #EEF2F9;
  --sage: #4A6FA5;
  --sage-soft: #E2EFE8;
  --apricot: #E8B86B;
  --apricot-soft: #FBEFD9;
  --danger: #A8322B;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.2vw, 4.4rem);

  --measure: 64ch;
  --radius: 16px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section: clamp(3rem, 2rem + 3.5vw, 5rem);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--dusk); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--dusk-deep); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { font-family: var(--serif); font-weight: 420; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.015em; margin-bottom: 0.5em; }
h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.band-white { background: var(--surface); }
.band-tint { background: var(--mist-soft); }
.band-dark { background: var(--dusk); color: #EAF1F6; }
.band-dark h2, .band-dark h3 { color: #fff; }
.section-head { max-width: none; margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.section-head p { max-width: none; }
.section-head h2, .section-head .lede, .cta-band h2, .cta-band .lede, .mirror-close { text-wrap: balance; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.band-dark .lede { color: #F1F5FB; }
.small { font-size: var(--step--1); color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.6rem;
  border: 1.5px solid transparent; border-radius: 12px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--dusk); color: #fff; }
.btn-primary:hover { background: var(--dusk-deep); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-accent { background: var(--apricot); color: var(--ink); }
.btn-accent:hover { background: #EEC57F; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--dusk); border-color: var(--mist); }
.btn-ghost:hover { border-color: var(--dusk); color: var(--dusk-deep); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { border-color: #fff; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--mist); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: .975rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.nav .btn { min-height: 44px; padding: .6rem 1.15rem; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--mist); padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--mist-soft); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero { background: #E8EEF8; color: var(--ink); padding-block: clamp(3rem, 2rem + 5vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -18vw; top: -22vw;
  border-radius: 50%; border: 1px solid rgba(74, 111, 165, .3); box-shadow: 0 0 0 90px rgba(255, 255, 255, .35), 0 0 0 180px rgba(255, 255, 255, .22);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 1rem + 5vw, 5.5rem); align-items: center; }
.hero-kicker { color: var(--dusk-deep); font-weight: 600; font-size: 1rem; margin-bottom: 1.4rem; }
.hero h1 { color: var(--ink); max-width: 13ch; margin-bottom: .5em; }
.hero .lede { color: var(--ink-soft); max-width: 52ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.4rem; }
.hero .btn-ghost { background: rgba(255, 255, 255, .6); border-color: #C3D0E6; color: var(--dusk-deep); }
.hero .btn-ghost:hover { background: #fff; border-color: var(--dusk); }
.hero-trust { display: grid; gap: .55rem; color: var(--ink-soft); font-size: .975rem; }
.hero-trust li { display: flex; align-items: flex-start; gap: .6rem; }
.hero-trust svg { width: 20px; height: 20px; color: var(--dusk); flex: none; margin-top: .2rem; }

.avail { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 1.6rem; box-shadow: 0 30px 60px -35px rgba(22, 38, 58, .35); }
.avail h2 { font-size: var(--step-1); font-weight: 500; margin-bottom: .2rem; }
.avail > p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.avail-list { display: grid; gap: 0; }
.avail-day { display: grid; gap: .5rem; padding: .85rem 0; border-top: 1px solid var(--mist); }
.avail-day:first-child { border-top: 0; padding-top: .25rem; }
.avail-day-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.avail-day-h strong { font-weight: 600; }
.avail-day-h span { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.avail-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.avail-slot {
  display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px;
  border: 1.5px solid var(--mist); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  font-variant-numeric: tabular-nums; transition: border-color .15s ease, background-color .15s ease;
}
.avail-slot:hover { border-color: var(--dusk); background: var(--mist-soft); color: var(--ink); }
.avail-slot.more { color: var(--dusk); background: var(--mist-soft); border-color: transparent; }
.avail-more { display: inline-block; margin-top: 1rem; font-weight: 600; }
.avail .loading { padding: .5rem 0; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
}

.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; max-width: 480px; margin-left: auto; border-radius: 32px; box-shadow: 0 30px 60px -35px rgba(22, 38, 58, .35); }
@media (max-width: 920px) { .hero-art img { max-width: 420px; margin: 0 auto; } }

/* ---------- Te regasesti ---------- */
.mirror { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.mirror li {
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.4; color: var(--ink);
  padding: 1.6rem 1.5rem 1.6rem 1.75rem; background: var(--surface); border-radius: var(--radius); border-left: 3px solid var(--apricot);
}
.mirror-close { margin-top: 2.5rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 52rem; }
@media (max-width: 920px) { .mirror { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mirror { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cu ce te pot ajuta ---------- */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 1rem + 4vw, 5rem); border-top: 1px solid var(--ink); }
.areas li { padding: 1.8rem 0; border-bottom: 1px solid var(--mist); }
.areas h3 { margin-bottom: .5rem; }
.areas p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Despre ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.about-photo {
  position: sticky; top: 104px; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(165deg, #6688BA, var(--dusk-deep)); display: grid; place-items: center; text-align: center; color: #BFD3CB; padding: 2rem;
}
.about-photo.has-photo { padding: 0; display: block; background: #E3E6EA; }
.about-photo picture { display: block; width: 100%; height: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-photo .mono { font-family: var(--serif); font-size: clamp(4rem, 3rem + 5vw, 7rem); color: var(--apricot); line-height: 1; display: block; margin-bottom: 1rem; }
.about .lede { margin-bottom: 1.2rem; }
.creds { margin-top: 2rem; display: grid; gap: 0; }
.creds li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--mist); }
.creds .k { color: var(--muted); font-size: .95rem; font-weight: 600; }
@media (max-width: 820px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-photo { position: static; max-width: 360px; }
  .creds li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- Principii ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 1rem + 4vw, 5rem); }
.principles li { padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .28); }
.principles h3 { margin-bottom: .5rem; color: #fff; }
.principles p { color: #F1F5FB; margin: 0; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Servicii si tarife ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.pricing-many { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pricing-many .plan { padding: 1.75rem 1.4rem; }
.plan { background: var(--surface); border: 1px solid var(--mist); border-radius: 20px; padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.plan h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.plan .who { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.plan .price { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.plan .meta { color: var(--ink-soft); font-size: .95rem; margin: .5rem 0 1.4rem; }
.plan ul { display: grid; gap: .6rem; margin-bottom: 1.8rem; }
.plan li { position: relative; padding-left: 1.7rem; font-size: .975rem; color: var(--ink-soft); }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan-main { background: var(--dusk); border-color: var(--dusk); color: #E6EEF4; }
.plan-main h3, .plan-main .price { color: #fff; }
.plan-main .who, .plan-main .meta, .plan-main li { color: #F1F5FB; }
.plan-main li::before { border-color: var(--apricot); }
.pay-note { margin-top: 1.75rem; max-width: 60rem; }
@media (max-width: 920px) { .pricing, .pricing-many { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* ---------- Pasi ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.2rem; border-top: 2px solid var(--dusk); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: var(--step-3); color: var(--dusk); line-height: 1; margin-bottom: .7rem; }
.steps h3 { margin-bottom: .45rem; }
.steps p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Online ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.checklist li { position: relative; padding: 1rem 0 1rem 2.1rem; border-bottom: 1px solid var(--mist); }
.checklist li::before { content: ""; position: absolute; left: .1rem; top: 1.45rem; width: 14px; height: 8px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.checklist strong { display: block; }
.checklist span { color: var(--ink-soft); font-size: .975rem; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Testimoniale ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.quote { margin: 0; padding: 2rem; background: var(--surface); border-radius: var(--radius); display: flex; flex-direction: column; }
.quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.quote footer { color: var(--muted); font-size: .95rem; margin-top: auto; }
.placeholder-note { display: inline-block; background: var(--apricot-soft); color: #6B4A12; border-radius: 6px; padding: .25rem .6rem; font-size: .875rem; margin-bottom: 1.25rem; }
@media (max-width: 920px) { .quotes { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.faq { border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--serif); font-size: var(--step-1); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--dusk); border-bottom: 1.5px solid var(--dusk); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 0 1.5rem; color: var(--ink-soft); }
@media (max-width: 820px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.location { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: stretch; }
.contact-list { display: grid; gap: 1.1rem; margin: 1.5rem 0 2rem; }
.contact-list .k { display: block; color: var(--muted); font-size: .9rem; font-weight: 600; }
.contact-list a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list a.small-link { font-size: .95rem; font-weight: 500; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--mist); font-variant-numeric: tabular-nums; }
.map-static { margin: 0; position: relative; }
.map-static a { display: block; position: relative; height: 100%; min-height: 360px; border-radius: 20px; overflow: hidden; background: var(--mist-soft); }
.map-static picture, .map-static img { display: block; width: 100%; height: 100%; }
.map-static img { position: absolute; inset: 0; object-fit: cover; object-position: 47% 43%; transition: transform .4s ease; }
.map-static a:hover img { transform: scale(1.02); }
.map-cta {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--surface); color: var(--dusk); font-weight: 600; font-size: .95rem;
  padding: .6rem 1rem; border-radius: 10px; box-shadow: 0 10px 24px -12px rgba(22, 38, 58, .45);
}
.map-static a:hover .map-cta { background: var(--dusk); color: #fff; }
.map-static figcaption { position: absolute; right: .75rem; bottom: .6rem; font-size: .75rem; color: #3F5163; background: rgba(255, 255, 255, .8); padding: .1rem .4rem; border-radius: 4px; pointer-events: none; }
@media (max-width: 820px) { .location { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Banda CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin: 0 auto 2rem; max-width: 46ch; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dusk-deep); color: #C3D2DD; padding-block: 3.5rem 2.5rem; font-size: .95rem; }
.site-footer a { color: #E6EEF4; }
.site-footer .small { color: #C9D8E2; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gap); padding-bottom: 2rem; }
.footer-grid h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .7rem; }
.footer-grid li { margin-bottom: .4rem; }
.urgent { padding: 1rem 1.25rem; background: rgba(255, 255, 255, .07); border-radius: 12px; max-width: none; color: #E6EEF4; }
.site-footer .urgent.small { color: #E6EEF4; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- CTA fix pe mobil ---------- */
.sticky-cta { display: none; }
@media (max-width: 920px) {
  .sticky-cta {
    display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 40;
    box-shadow: 0 14px 30px -10px rgba(20, 40, 60, .5);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .sticky-cta.show { transform: none; }
  .has-sticky .site-footer { padding-bottom: 6rem; }
}

/* ---------- Pagini simple (legal, anulare) ---------- */
.page { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section); }
.page h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; max-width: var(--measure); }
.prose li { margin-bottom: .35rem; }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.notice { border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; }
.notice-ok { background: var(--sage-soft); color: #1D4A3A; }
.notice-warn { background: var(--apricot-soft); color: #6B4A12; }
.notice-err { background: #F8E1DF; color: var(--danger); }

/* ---------- Programare (o singura pagina) ---------- */
.book { max-width: 1040px; }
.book-title { font-size: var(--step-4); margin-bottom: .3em; }
.book-block { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.book-block h2 { font-size: var(--step-2); margin-bottom: .9rem; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.choice {
  display: grid; gap: .35rem; align-content: start; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--mist); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: var(--dusk); }
.choice[aria-pressed="true"] { border-color: var(--dusk); box-shadow: inset 0 0 0 1px var(--dusk); background: var(--mist-soft); }
.choice .t { font-family: var(--serif); font-size: var(--step-1); }
.choice .p { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; font-size: .95rem; }
.choice .d { color: var(--ink-soft); font-size: .925rem; line-height: 1.45; }

.mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.1rem; }
.mode-q { font-weight: 600; }
.segmented { display: inline-flex; background: var(--mist); border-radius: 12px; padding: 4px; }
.seg { min-height: 42px; padding: .5rem 1.15rem; border: 0; border-radius: 9px; background: transparent; font: 500 .975rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.seg[aria-checked="true"] { background: var(--dusk); color: #fff; }
.seg:disabled { opacity: .4; cursor: not-allowed; }

.week-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.week-head h2 { margin: 0; }
.week-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn-nav { min-height: 42px; padding: .5rem 1rem; font-size: .925rem; }
.week-range { color: var(--ink-soft); font-size: .95rem; min-width: 10ch; text-align: center; font-variant-numeric: tabular-nums; }

.week { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 150px)); gap: .75rem; align-items: start; }
.week > .notice { grid-column: 1 / -1; margin: 0; }
.week[aria-busy="true"] { opacity: .45; pointer-events: none; }
.wday { background: var(--surface); border: 1px solid var(--mist); border-radius: 16px; overflow: hidden; display: grid; align-content: start; }
.wday-h {
  display: grid; justify-items: center; gap: .05rem; padding: .85rem .5rem .8rem;
  background: #E8EEF8; border-bottom: 1px solid var(--mist);
}
.wday-h .dw { font-size: .85rem; font-weight: 600; color: var(--dusk-deep); }
.wday-h .dn { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.wday-h .mo { font-size: .8rem; color: var(--muted); }
.wday-slots { padding: .7rem .6rem .75rem; }
.slot {
  min-height: 42px; border-radius: 10px; border: 1.5px solid var(--mist); background: var(--surface);
  font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; padding: 0 .25rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.slot:hover { border-color: #A9BCDD; background: #EEF2F9; color: var(--dusk-deep); }
.slot[aria-pressed="true"] { background: var(--dusk); border-color: var(--dusk); color: #fff; box-shadow: 0 6px 14px -8px rgba(58, 90, 140, .7); }
.week-empty { margin-top: 1rem; }

@media (max-width: 860px) {
  .week { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .wday { grid-template-columns: 5.25rem minmax(0, 1fr); align-items: stretch; }
  .wday-h { border-bottom: 0; border-right: 1px solid var(--mist); align-content: center; padding: .7rem .4rem; }
  .wday-h .dn { font-size: 1.6rem; }
  .wday-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr)); gap: .4rem; padding: .65rem; align-content: center; }
  .wday .slot { min-height: 44px; }
  .week-nav { width: 100%; justify-content: space-between; }
  .week-range { order: -1; width: 100%; text-align: left; }
}
@media (min-width: 861px) { .wday-slots { display: grid; gap: .45rem; } }

.chosen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: #E8EEF8; border: 1px solid #C9D3E6; border-left: 4px solid var(--dusk); border-radius: 10px; padding: .85rem 1.1rem; max-width: 720px; }
.chosen p { margin: 0; font-weight: 500; color: var(--ink); }
.link-btn { background: none; border: 0; color: var(--dusk); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; padding: .2rem 0; }

.form { display: grid; gap: 1.1rem; max-width: 720px; margin-top: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .hint { font-size: .875rem; color: var(--muted); margin: .3rem 0 0; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid var(--mist);
  background: var(--surface); font: inherit; color: var(--ink);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--dusk); outline: none; box-shadow: 0 0 0 3px rgba(74, 111, 165, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .9rem; margin: .3rem 0 0; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .95rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.done-mark { width: 64px; height: 64px; color: var(--sage); margin-bottom: 1rem; }
.loading { color: var(--muted); padding: 1rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.field .consent { display: grid; font-weight: 400; font-size: .95rem; margin: 0; }
.field .consent input { width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; box-shadow: none; }
#cancel-actions .btn, #cancel-call .btn, #cancel-rebook .btn { margin: .3rem .5rem .3rem 0; }
