/* Booking and manage pages. Pills and rounded cards here; the marketing site stays square. */
body.flow { min-height: 100vh; }
.flow-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, 34fr) 66fr; }

/* Rose side panel */
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--rose); color: var(--white); padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; }
.side ::selection { background: var(--white); color: var(--rose-deep); }
.side :focus-visible { outline-color: var(--white); }
.side__rings::before, .side__rings::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
.side__rings::before { right: -220px; bottom: -200px; width: 560px; height: 560px; }
.side__rings::after { right: -130px; bottom: -110px; width: 380px; height: 380px; }
.side > * { position: relative; }
.side__brand { display: flex; flex-direction: column; gap: 4px; color: var(--white); width: fit-content; }
.side__brand:hover { color: var(--white); }
.side__brand img { height: 36px; width: auto; }
.side__brand--mini img { height: 26px; }
.side__step { display: flex; flex-direction: column; gap: 18px; }
.side__num { display: flex; align-items: baseline; gap: 12px; }
.side__num b { font: 400 clamp(72px, 9vw, 128px)/0.9 var(--display); }
.side__num span { font-size: 14px; letter-spacing: 0.18em; }
.side__note { font: 400 clamp(22px, 2.2vw, 28px)/1.35 var(--display); max-width: 14em; text-wrap: pretty; }
.side__sig { font-size: 13px; letter-spacing: 0.14em; }

.visit-card { background: rgba(58,37,34,.22); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.visit-card__label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.visit-card .line { display: flex; justify-content: space-between; gap: 12px; }
.visit-card .line span:last-child { white-space: nowrap; }
.visit-card .rule { border-top: 1px dashed rgba(255,255,255,.5); padding-top: 12px; }
.visit-card .muted { color: rgba(255,255,255,.82); }
.visit-card small { font-size: 13px; line-height: 1.5; }

/* Question pane */
.pane { min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pane__top { padding: 20px clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: 20px; }
.progress { flex: 1; display: flex; gap: 6px; }
.progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .4s var(--ease-out); }
.progress i.on { background: var(--rose); }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; height: 44px; padding: 0 18px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); flex-shrink: 0; }
.pill-btn:hover { border-color: var(--ink); color: var(--ink); }
.pill-btn svg { width: 14px; height: 14px; }

.q { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(16px, 4vw, 48px) clamp(20px, 4vw, 40px) 48px; display: flex; flex-direction: column; gap: 32px; }
.q__head { display: flex; flex-direction: column; gap: 12px; }
.q__context { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--rose); }
.q__title { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; outline: none; }
.q__sub { color: var(--body); font-size: 17px; line-height: 1.65; }
.enter { animation: enter .6s var(--ease-out) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } }

.text-link { align-self: flex-start; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rose); padding: 0 0 3px; font-size: 16px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.text-link:hover { color: var(--rose-deep); }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }

/* Category pills */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.cat { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-align: left; color: var(--ink); transition: border-color .2s, background-color .2s; }
.cat:hover { border-color: var(--rose); background: var(--white); }
.cat.is-current { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); background: var(--white); }
.cat img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.cat__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat__name { font: 400 21px/1.2 var(--display); }
.cat__meta { font-size: 13px; color: var(--muted); }

/* Answer cards */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--ink); width: 100%; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choice:hover { border-color: var(--rose-line); background: var(--white); }
.choice[aria-checked="true"] { background: var(--white); border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.choice[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.mark { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rose-line); background: var(--white); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; color: var(--white); transition: background-color .2s, border-color .2s; }
.mark svg { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.mark--box { border-radius: 9px; }
[aria-checked="true"] > .mark { background: var(--rose); border-color: var(--rose); }
[aria-checked="true"] > .mark svg { opacity: 1; transform: none; }
.choice__body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.choice__name { font: 400 22px/1.2 var(--display); }
.choice__desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
[aria-checked="true"] .choice__desc { color: var(--body); }
.choice__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.choice__price b { font-size: 16px; font-weight: 700; }
.choice__price span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.extras { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.extras h3 { font-size: 24px; }
.choice--extra { padding: 16px 20px; border-style: dashed; }
.choice--extra[aria-checked="true"] { border-style: solid; }
.choice--extra .choice__name { font-size: 19px; }

.big-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.big-choices .choice { flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; }
.big-choices .choice__name { font-size: 28px; }
.big-choices .choice__desc { font-size: 15px; line-height: 1.55; color: var(--body); }

/* Dates and times */
.days-wrap { position: relative; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px; margin: -4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 72px; height: 96px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); scroll-snap-align: start; transition: border-color .2s, background-color .2s; }
.day:hover { border-color: var(--rose); }
.day small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.day b { font: 400 28px/1 var(--display); }
.day span { font-size: 11px; color: var(--muted); }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day[aria-checked="true"] small, .day[aria-checked="true"] span { color: var(--bg); }
.days-nav { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.days-nav .label { font-size: 15px; color: var(--body); }
.days-nav .arrows { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.round:hover:not(:disabled) { border-color: var(--rose); color: var(--rose); }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 18px; height: 18px; }
.slot-group { display: flex; flex-direction: column; gap: 12px; }
.slot-group__label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 13px 22px; border-radius: 999px; background: var(--white); color: var(--ink); border: 1px solid var(--line); font-size: 16px; transition: border-color .2s, background-color .2s; }
.slot:hover { border-color: var(--rose); }
.slot[aria-checked="true"] { background: var(--rose); color: var(--white); border-color: var(--rose); font-weight: 600; }

/* Fields */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field__label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input { border: 0; border-bottom: 1px solid var(--rose-line); background: transparent; font-size: 22px; padding: 10px 0; color: var(--ink); border-radius: 0; width: 100%; transition: border-color .2s; }
.field input:focus { outline: none; border-bottom-color: var(--rose); box-shadow: 0 1px 0 var(--rose); }
.field input::placeholder, .notes::placeholder { color: #A08884; opacity: 1; }
.field.has-error input { border-bottom-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); }
.code-input { font: 400 clamp(36px, 6vw, 48px)/1 var(--display) !important; letter-spacing: 0.4em; max-width: 9em; }

.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag { padding: 12px 20px; border-radius: 999px; background: var(--white); color: var(--ink); border: 1px solid var(--line); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, background-color .2s; }
.flag:hover { border-color: var(--rose); }
.flag svg { width: 16px; height: 16px; display: none; }
.flag[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.flag[aria-checked="true"] svg { display: block; }
.notes { padding: 20px; font-size: 18px; line-height: 1.5; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 22px; resize: vertical; width: 100%; min-height: 150px; }
.notes:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.q-extra { display: flex; flex-direction: column; gap: 12px; }
.q-extra h3 { font-size: 22px; }

/* Review */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.summary__when { font: 400 clamp(24px, 3vw, 30px)/1.2 var(--display); }
.summary .line { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.summary .line span:last-child { white-space: nowrap; }
.summary .rule { border-top: 1px dashed var(--rose-line); padding-top: 14px; }
.summary .total { font-weight: 700; }
.summary .muted { color: var(--muted); font-size: 14px; }
.summary__edit { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.summary__edit button { background: none; border: 0; padding: 0; color: var(--rose); border-bottom: 1px solid currentColor; }
.summary__edit button:hover { color: var(--rose-deep); }
.agree { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; text-align: left; color: var(--ink); font-size: 15px; line-height: 1.55; width: 100%; }
.agree .mark { width: 26px; height: 26px; margin-top: 0; }
.agree.has-error { border-color: var(--error); }
.notice { background: var(--tint); border-radius: 20px; padding: 18px 20px; font-size: 15px; line-height: 1.6; color: var(--rose-deep); }
.notice--error { background: #F6E1E3; color: var(--error); }
.notice a { color: inherit; text-decoration: underline; }
.policy { font-size: 14px; color: var(--body); white-space: pre-line; }
#payment-element { min-height: 120px; }

/* Footer bar */
.bar { position: sticky; bottom: 0; background: rgba(247,240,236,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 14px clamp(20px, 4vw, 40px); padding-bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 16px; z-index: 5; }
.bar__back { background: none; border: 0; padding: 12px 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.bar__back svg { width: 16px; height: 16px; }
.bar__back:hover { color: var(--rose); }
.bar__hint { flex: 1; font-size: 14px; color: var(--error); text-align: right; }
.go { background: var(--rose); color: var(--white); border: 0; border-radius: 999px; padding: 18px 32px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; flex-shrink: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: background-color .2s; }
.go:hover { background: var(--rose-hover); }
.go[aria-disabled="true"] { background: #C3A2A7; cursor: default; }
.go .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.loading .spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--rose); animation: spin .8s linear infinite; }
.skeleton { border-radius: 999px; background: linear-gradient(90deg, var(--surface), var(--tint), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Confirmation */
.done { min-height: 100vh; min-height: 100dvh; background: var(--rose); color: var(--white); display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px); position: relative; overflow: hidden; }
.done::before, .done::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
.done::before { width: 980px; height: 980px; }
.done::after { width: 660px; height: 660px; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.04); } }
.done ::selection { background: var(--white); color: var(--rose-deep); }
.done :focus-visible { outline-color: var(--white); }
.done__inner { position: relative; max-width: 560px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.done__brand { height: 42px; width: auto; }
.done h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; outline: none; }
.done p { font-size: 17px; line-height: 1.7; max-width: 28em; }
.ticket { background: var(--bg); color: var(--ink); width: 100%; padding: 28px; border-radius: 24px; display: flex; flex-direction: column; gap: 16px; text-align: left; box-shadow: var(--float-shadow); }
.ticket__ref { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); }
.ticket__when { font: 400 28px/1.2 var(--display); }
.ticket .rule { border-top: 1px dashed var(--rose-line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ticket .line { display: flex; justify-content: space-between; gap: 12px; }
.ticket .addr { font-size: 14px; color: var(--body); }
.ticket .note { font-size: 14px; color: var(--body); white-space: pre-line; }
.done__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.done__actions a, .done__actions button { border-radius: 999px; padding: 16px 28px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.done__actions svg { width: 16px; height: 16px; }
.btn-solid-white { background: var(--white); color: var(--rose-deep); border: 1px solid var(--white); font-weight: 700; }
.btn-solid-white:hover { background: transparent; color: var(--white); }
.btn-ghost-white { border: 1px solid rgba(255,255,255,.8); color: var(--white); background: transparent; }
.btn-ghost-white:hover { background: var(--white); color: var(--rose-deep); }

/* Phones: the side panel becomes a compact bar on top with an expandable summary. */
.mini { display: none; }
@media (max-width: 860px) {
  .flow-shell { display: block; }
  .side { display: none; }
  .mini { display: block; position: sticky; top: 0; z-index: 6; background: var(--rose); color: var(--white); }
  .mini ::selection { background: var(--white); color: var(--rose-deep); }
  .mini__row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
  .mini__num { font: 400 30px/1 var(--display); }
  .mini__num span { font: 400 11px/1 var(--sans); letter-spacing: 0.16em; margin-left: 6px; }
  .mini__toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: rgba(58,37,34,.22); color: var(--white); border: 0; border-radius: 999px; padding: 10px 14px; font-size: 14px; }
  .mini__toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
  .mini__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mini__close { color: var(--white); border-color: rgba(255,255,255,.45); height: 40px; padding: 0 12px; }
  .mini__close:hover { color: var(--white); border-color: var(--white); }
  .mini .visit-card { margin: 0 16px 16px; }
  .mini .visit-card[hidden] { display: none; }
  .pane__top { padding: 14px 16px 0; }
  .pane__top .pill-btn { display: none; }
  .q { padding: 24px 16px 40px; gap: 26px; }
  .q__title { font-size: clamp(34px, 9vw, 44px); }
  .choice { padding: 16px 16px; gap: 12px; }
  .choice__name { font-size: 20px; }
  .bar { padding-inline: 16px; }
  .go { padding: 17px 24px; }
  .bar__hint { font-size: 13px; }
}
