:root {
  --ink: #14213d;
  --ink-soft: #42506b;
  --berry: #b12b40;
  --berry-dark: #8f1f32;
  --rose: #e6a3ad;
  --cream: #f7f1e8;
  --cream-deep: #eee2d1;
  --white: #fffdfa;
  --gold: #c99d5e;
  --green: #2f7257;
  --line: rgba(20, 33, 61, .14);
  --shadow: 0 24px 70px rgba(20, 33, 61, .13);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 0%, rgba(230, 163, 173, .24), transparent 31rem),
    linear-gradient(180deg, #fbf7f0 0%, var(--cream) 100%);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { color: inherit; font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; letter-spacing: -.025em; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: .7rem 1rem; color: #fff; background: var(--ink); border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 86px; padding: 12px clamp(18px, 4vw, 64px);
  color: #fff; background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand img { width: min(303px, 45vw); height: auto; background: #fff; border-radius: 4px; }
.topbar nav { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; font-weight: 600; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.account-link { padding: .62rem .85rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }

main { padding: clamp(34px, 6vw, 78px) clamp(16px, 4vw, 64px) 80px; }
.intro { max-width: 1180px; margin: 0 auto 30px; }
.eyebrow, .step-kicker {
  margin-bottom: .6rem; color: var(--berry); font-size: .76rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.intro h1 { max-width: 760px; margin-bottom: .75rem; font-size: clamp(2.4rem, 5.5vw, 4.7rem); }
.intro > p:last-child { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.18rem); }

.booking-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 355px); gap: 24px;
  max-width: 1180px; margin: 0 auto; align-items: start;
}
.booking-card, .appointment-summary {
  background: rgba(255,253,250,.95); border: 1px solid rgba(20,33,61,.1);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.booking-card { min-width: 0; overflow: hidden; }
.appointment-summary { position: sticky; top: 20px; padding: 26px; }

.stepper { padding: 24px 28px 0; background: rgba(247,241,232,.55); }
.stepper ol {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.stepper li { display: flex; align-items: center; gap: 8px; color: #778095; font-size: .82rem; }
.stepper li span {
  display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 50%; font-weight: 700;
}
.stepper li.is-current, .stepper li.is-complete { color: var(--ink); }
.stepper li.is-current span { color: #fff; background: var(--berry); border-color: var(--berry); }
.stepper li.is-complete span { color: #fff; background: var(--green); border-color: var(--green); }
.progress-track { height: 3px; margin-top: 20px; overflow: hidden; background: var(--cream-deep); }
.progress-track span { display: block; width: 25%; height: 100%; background: var(--berry); transition: width .25s ease; }

.step-panel { padding: clamp(26px, 4vw, 42px); animation: panel-in .24s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.panel-heading h2, .success-state h2 { margin-bottom: .6rem; font-size: clamp(2rem, 4vw, 3rem); }
.panel-heading p:last-child { max-width: 620px; margin: 0; color: var(--ink-soft); }
.text-button { padding: 0; color: var(--berry); background: transparent; border: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.alert { display: flex; gap: 9px; margin: 24px 28px 0; padding: 13px 15px; border-radius: 12px; }
.alert--error { color: #782036; background: #fae7eb; border: 1px solid #e6a3ad; }
.alert--info { align-items: baseline; color: var(--ink); background: #edf4f6; border: 1px solid #bdd3d9; }
.catalog-state, .availability-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 180px; color: var(--ink-soft); }
.catalog-state--empty { flex-direction: column; padding: 28px; text-align: center; background: #fff8f7; border: 1px solid rgba(177,43,64,.2); border-radius: 15px; }
.catalog-state--empty strong { color: var(--ink); font: 700 1.2rem "Playfair Display",serif; }
.catalog-state--empty span { max-width: 520px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(20,33,61,.18); border-top-color: var(--berry); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.category-list button {
  min-height: 40px; padding: .52rem .85rem; color: var(--ink-soft); background: var(--cream);
  border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 700; cursor: pointer;
}
.category-list button:hover, .category-list button.is-active { color: #fff; background: var(--ink); }
.service-section { scroll-margin-top: 18px; }
.service-section + .service-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.service-section h3 { margin-bottom: 14px; font-size: 1.1rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.service-option { position: relative; display: block; min-width: 0; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; min-height: 122px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; transition: .18s ease;
}
.service-card:hover { border-color: rgba(177,43,64,.42); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20,33,61,.08); }
.service-option input:focus-visible + .service-card { outline: 3px solid var(--gold); outline-offset: 3px; }
.service-option input:checked + .service-card { background: #fff8f7; border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry); }
.service-option input:disabled + .service-card { opacity: .64; cursor: default; transform: none; }
.service-name { font-weight: 700; }
.service-description { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.4; }
.service-meta { white-space: nowrap; color: var(--berry); font-size: .83rem; font-weight: 700; }
.service-mode { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; }

.option-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 0; padding: 0; border: 0; }
.professional-option { position: relative; display: block; }
.professional-option input { position: absolute; opacity: 0; }
.professional-card { display: flex; align-items: center; gap: 15px; min-height: 112px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.professional-option input:checked + .professional-card { background: #fff8f7; border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry); }
.professional-option input:focus-visible + .professional-card { outline: 3px solid var(--gold); outline-offset: 3px; }
.professional-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 58px; height: 58px; overflow: hidden; color: #fff; background: var(--ink); border-radius: 50%; font: 700 1.15rem "Playfair Display",serif; }
.professional-avatar img { width: 100%; height: 100%; object-fit: cover; }
.professional-copy strong { display: block; margin-bottom: 3px; }
.professional-copy span { display: block; color: var(--ink-soft); font-size: .84rem; }

.date-toolbar { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 12px; margin-bottom: 18px; text-align: center; }
.icon-button { width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; cursor: pointer; }
.icon-button:disabled { opacity: .35; cursor: default; }
.availability-days { display: grid; gap: 14px; }
.date-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(82px, 1fr); gap: 8px; padding: 2px 2px 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.date-option { min-height: 64px; padding: .55rem .65rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.date-option span, .date-option strong { display: block; }
.date-option span { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.date-option strong { color: var(--ink); font-size: .88rem; }
.date-option:hover, .date-option.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.date-option.is-active strong, .date-option:hover strong { color: #fff; }
.day-row { display: grid; grid-template-columns: minmax(110px,150px) 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.day-heading strong, .day-heading span { display: block; }
.day-heading span { color: var(--ink-soft); font-size: .85rem; }
.time-list { display: flex; flex-wrap: wrap; gap: 8px; }
.time-option { position: relative; }
.time-option input { position: absolute; opacity: 0; }
.time-option span { display: block; min-width: 96px; padding: .62rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: .86rem; font-weight: 700; cursor: pointer; }
.time-option input:checked + span { color: #fff; background: var(--berry); border-color: var(--berry); }
.time-option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.time-option small { display: block; margin-top: 2px; font-size: .69rem; font-weight: 500; }
.empty-state { padding: 34px 20px; text-align: center; background: var(--cream); border-radius: 16px; }
.empty-state__icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; color: var(--berry); background: #fff; border-radius: 50%; font-size: 1.5rem; }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--ink-soft); }
.empty-state__actions, .success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.field-grid label > span { display: block; margin-bottom: 6px; font-size: .87rem; font-weight: 700; }
.field-grid small, .periods small { color: var(--ink-soft); font-weight: 500; }
.field-wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: .78rem .85rem; background: #fff; border: 1px solid rgba(20,33,61,.25); border-radius: 10px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--berry); outline: 3px solid rgba(201,157,94,.5); outline-offset: 1px; }
.consents { display: grid; gap: 12px; margin-top: 22px; padding: 18px; background: var(--cream); border-radius: 13px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .87rem; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--berry); }
.field-error { margin: 16px 0 0; color: #8f1f32; font-weight: 700; }

.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel-actions--end { justify-content: flex-end; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.1rem;
  color: #fff; background: var(--berry); border: 1px solid var(--berry); border-radius: 10px;
  font-weight: 700; text-decoration: none; cursor: pointer; transition: .16s ease;
}
.button:hover { background: var(--berry-dark); border-color: var(--berry-dark); transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button--secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button--secondary:hover { background: var(--cream); border-color: var(--ink); }
.button--quiet { color: var(--berry); background: transparent; }

.summary-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.appointment-summary h2 { margin-bottom: 20px; font-size: 1.65rem; }
.summary-empty { padding: 23px 16px; color: var(--ink-soft); background: var(--cream); border-radius: 12px; text-align: center; font-size: .9rem; }
.appointment-summary dl { margin: 0; }
.appointment-summary dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.appointment-summary dt { color: var(--ink-soft); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.appointment-summary dd { margin: 3px 0 0; font-weight: 700; }
.summary-note { margin: 14px 0 18px; color: var(--ink-soft); font-size: .79rem; }
.location-card { display: flex; gap: 12px; padding: 16px; color: #fff; background: var(--ink); border-radius: 14px; }
.location-card > span { color: var(--rose); font-size: 1.35rem; }
.location-card address { margin-top: 3px; color: rgba(255,255,255,.75); font-size: .82rem; font-style: normal; }

.success-state { padding: clamp(36px,6vw,70px); text-align: center; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; color: #fff; background: var(--green); border-radius: 50%; font-size: 2rem; }
.success-state > p:not(.eyebrow) { max-width: 550px; margin: 0 auto 24px; color: var(--ink-soft); }
.success-details { max-width: 520px; margin: 0 auto 26px; padding: 17px; background: var(--cream); border-radius: 14px; text-align: left; }
.success-details div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.success-details dt { color: var(--ink-soft); }
.success-details dd { margin: 0; font-weight: 700; text-align: right; }

dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; color: var(--ink); background: var(--white); border: 0; border-radius: 20px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8,16,33,.65); backdrop-filter: blur(3px); }
dialog form { position: relative; padding: clamp(24px,5vw,40px); }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; background: var(--cream); border: 0; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.periods { display: flex; flex-wrap: wrap; gap: 15px; margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.periods legend { padding: 0 5px; font-weight: 700; }
.periods label { display: flex; align-items: center; gap: 6px; }
.periods input { width: 18px; height: 18px; accent-color: var(--berry); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }

footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 27px 20px; color: rgba(255,255,255,.78); background: var(--ink); font-size: .82rem; }

@media (max-width: 920px) {
  .booking-shell { grid-template-columns: 1fr; }
  .appointment-summary { position: static; grid-row: 1; }
  .appointment-summary .location-card, .summary-note { display: none; }
}
@media (max-width: 680px) {
  .topbar { min-height: 72px; padding: 10px 16px; }
  .brand img { width: 205px; }
  .topbar nav > a:first-child { display: none; }
  .account-link { padding: .52rem .7rem; font-size: .78rem; }
  main { padding: 28px 12px 56px; }
  .intro { padding: 0 5px; }
  .intro h1 { font-size: 2.55rem; }
  .booking-card, .appointment-summary { border-radius: 17px; }
  .appointment-summary { padding: 20px; }
  .appointment-summary h2 { margin-bottom: 10px; font-size: 1.35rem; }
  .appointment-summary dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .appointment-summary dl > div { min-width: 0; }
  .stepper { padding: 18px 16px 0; }
  .stepper li { justify-content: center; }
  .stepper li b { display: none; }
  .step-panel { padding: 25px 18px; }
  .panel-heading { margin-bottom: 20px; }
  .panel-heading h2 { font-size: 2rem; }
  .service-grid, .option-grid, .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .service-card { min-height: 0; }
  .day-row { grid-template-columns: 1fr; }
  .panel-actions .button { flex: 1; }
  .time-option span { min-width: 92px; }
  .alert { margin: 18px 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
