:root {
	--ink: #172033;
	--muted: #667085;
	--line: #dfe5ee;
	--surface: #ffffff;
	--surface-soft: #f7f9fc;
	--brand: #007e8b;
	--brand-deep: #00616c;
	--brand-soft: #edf7f7;
	--success: #087a5b;
	--success-soft: #e8f8f2;
	--warning: #9a5b09;
	--warning-soft: #fff7e6;
	--danger: #b42318;
	--shadow: 0 18px 50px rgba(21, 33, 53, .10);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: #f3f6fa;
	font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #f3f6fa; }
body { min-height: 100vh; margin: 0; color: var(--ink); background:
	radial-gradient(circle at 85% 5%, rgba(180,35,62,.08), transparent 24rem),
	linear-gradient(180deg, #fbfcfe 0, #f3f6fa 28rem); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-deep); }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; border-radius: .6rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.public-header { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(140deg, var(--brand), var(--brand-deep)); box-shadow: 0 9px 20px rgba(180,35,62,.22); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .93rem; letter-spacing: .025em; }
.brand small { margin-top: .08rem; color: var(--muted); font-size: .72rem; }
.secure-label { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .75rem; font-weight: 650; }
.secure-label span { color: var(--success); font-size: .55rem; }
.public-shell { width: min(1050px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; display: grid; grid-template-columns: minmax(250px, .72fr) minmax(520px, 1.35fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.booking-intro { position: sticky; top: 2rem; padding-top: 2rem; }
.eyebrow, .step-kicker { margin: 0 0 .65rem; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.booking-intro h1 { max-width: 12ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: .98; letter-spacing: -.045em; }
.booking-intro > p:not(.eyebrow) { max-width: 35rem; margin: 1.35rem 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.emergency-note { display: grid; gap: .3rem; margin-top: 2rem; padding: 1rem 1.1rem; border: 1px solid #f0d69d; border-radius: 14px; color: #6d480c; background: var(--warning-soft); font-size: .78rem; line-height: 1.5; }
.booking-card, .state-card, .privacy-document { border: 1px solid rgba(31,45,68,.09); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.booking-card { min-height: 590px; padding: clamp(1rem, 3vw, 2rem); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.stepper li { position: relative; display: grid; justify-items: center; gap: .45rem; color: #98a2b3; font-size: .67rem; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); transform: translateX(-50%); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper span { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); font-weight: 800; }
.stepper li.is-active, .stepper li.is-complete { color: var(--ink); }
.stepper li.is-active span { color: white; border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.stepper li.is-complete span { color: white; border-color: var(--success); background: var(--success); }
.stepper li.is-complete::before, .stepper li.is-active::before { background: var(--success); }
.booking-step { animation: fade-up .24s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.step-heading { margin-bottom: 1.5rem; }
.step-heading h2, .success-state h2, .status-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; }
.step-heading > p:last-child, .success-state > p, .status-heading > p:last-child { margin: .65rem 0 0; color: var(--muted); line-height: 1.55; }
.centered { text-align: center; }
.field { display: grid; gap: .45rem; margin-bottom: 1rem; }
.field > span, .channel-fieldset legend { color: #344054; font-size: .78rem; font-weight: 750; }
.field input, .field select { width: 100%; min-height: 48px; border: 1px solid #cfd7e4; border-radius: 12px; outline: 0; padding: .72rem .85rem; color: var(--ink); background: white; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(180,35,62,.10); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.service-summary { margin: .5rem 0 1.25rem; padding: 1rem; border-radius: 14px; background: var(--surface-soft); }
.service-summary strong { display: block; margin-bottom: .25rem; }
.service-summary span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-top: .45rem; }
.slot-button { min-height: 42px; border: 1px solid #cfd7e4; border-radius: 10px; color: var(--ink); background: white; cursor: pointer; font-size: .82rem; font-weight: 750; }
.slot-button:hover { border-color: var(--brand); color: var(--brand-deep); }
.slot-button[aria-checked="true"] { color: white; border-color: var(--brand); background: var(--brand); box-shadow: 0 5px 15px rgba(180,35,62,.2); }
.field-help, .privacy-note { margin: .65rem 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; margin: .5rem 0 1rem; color: #475467; font-size: .8rem; line-height: 1.5; cursor: pointer; }
.check-row input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .12rem; accent-color: var(--brand); }
.privacy-check { padding: .85rem; border-radius: 12px; background: var(--surface-soft); }
.channel-fieldset { margin: 1rem 0; padding: 0; border: 0; }
.channel-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin-top: .55rem; }
.channel-option { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .7rem .85rem; border: 1px solid #cfd7e4; border-radius: 12px; cursor: pointer; }
.channel-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(180,35,62,.08); }
.channel-option input { accent-color: var(--brand); }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.step-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }
.step-actions.split { justify-content: space-between; }
.step-actions.stacked { display: grid; max-width: 360px; margin-left: auto; margin-right: auto; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 12px; padding: .72rem 1.15rem; text-decoration: none; cursor: pointer; font-size: .82rem; font-weight: 800; transition: transform .12s, box-shadow .12s, background .12s; }
.button:not(:disabled):active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid rgba(180,35,62,.24); outline-offset: 2px; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.primary { color: white; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 8px 18px rgba(180,35,62,.18); }
.button.secondary { color: #344054; border-color: #cfd7e4; background: white; }
.button.text-button { min-height: 38px; color: var(--brand-deep); background: transparent; }
.button.danger { color: white; background: var(--danger); }
.button.danger-secondary { color: var(--danger); border-color: #f3b5ae; background: #fff7f6; }
.message { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; color: #7a271a; border: 1px solid #f6c7c2; background: #fff3f2; font-size: .8rem; line-height: 1.5; }
.message.success { color: #05603f; border-color: #a8e2cb; background: var(--success-soft); }
.loading-state { min-height: 250px; display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.verification-icon, .success-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; color: var(--success); background: var(--success-soft); font-size: 1.25rem; font-weight: 900; }
.code-field { max-width: 320px; margin-left: auto; margin-right: auto; }
.code-field input { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: .35em; }
.success-state { max-width: 480px; margin: 1.5rem auto; text-align: center; animation: fade-up .3s ease both; }
.success-mark { width: 70px; height: 70px; font-size: 1.6rem; }
.folio-card { display: inline-grid; gap: .25rem; margin: 1.25rem 0; padding: .8rem 1.4rem; border-radius: 12px; background: var(--surface-soft); }
.folio-card span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.folio-card strong { font-size: 1.15rem; letter-spacing: .08em; }
.success-state .button { display: flex; max-width: 320px; margin: 0 auto; }
.turnstile-box { display: flex; justify-content: center; margin: 1rem 0; }
.public-footer { width: min(1050px, calc(100% - 2rem)); min-height: 64px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.state-card { grid-column: 2; padding: 3rem; text-align: center; }
.state-icon { display: block; font-size: 2.5rem; color: var(--brand); }
.state-card h2 { font-family: Georgia, serif; font-size: 2rem; }
.state-card p { color: var(--muted); }
.manage-shell { display: block; max-width: 720px; margin-top: 3rem; }
.manage-card { min-height: 440px; }
.status-heading { text-align: center; }
.status-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; color: var(--warning); background: var(--warning-soft); font-size: 1.5rem; }
.status-mark.is-confirmed { color: var(--success); background: var(--success-soft); }
.status-mark.is-closed { color: var(--danger); background: #fff3f2; }
.appointment-details { margin: 2rem 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.appointment-details div { padding: 1rem; border-bottom: 1px solid var(--line); }
.appointment-details div:nth-child(odd) { border-right: 1px solid var(--line); }
.appointment-details div:nth-last-child(-n+2) { border-bottom: 0; }
.appointment-details dt { color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.appointment-details dd { margin: .35rem 0 0; font-size: .9rem; font-weight: 750; }
.manage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.cancel-panel { margin-top: 1.5rem; padding: 1rem; border: 1px solid #f3b5ae; border-radius: 14px; background: #fff8f7; }
.cancel-panel h2 { margin: 0; font-size: 1rem; }
.cancel-panel p { color: var(--muted); font-size: .8rem; }
.cancel-panel .code-field { margin: 1rem 0; }
.review-message { padding: .8rem 1rem; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: .8rem; }
.privacy-shell { width: min(780px, calc(100% - 2rem)); margin: 2rem auto 4rem; }
.privacy-document { padding: clamp(1.35rem, 5vw, 3.5rem); }
.privacy-document h1 { margin: 0 0 1.5rem; font-family: Georgia, serif; font-size: clamp(2rem,5vw,3.2rem); line-height: 1.05; }
.privacy-document h2 { margin-top: 2rem; font-size: 1.05rem; }
.privacy-document p, .privacy-document li { color: #475467; line-height: 1.75; }
.inline-button { margin-top: 1.5rem; }
@media (max-width: 820px) {
	.public-shell { grid-template-columns: 1fr; margin-top: .5rem; }
	.booking-intro { position: static; padding-top: .5rem; }
	.booking-intro h1 { max-width: 15ch; font-size: clamp(2.3rem,11vw,3.3rem); }
	.booking-intro > p:not(.eyebrow) { margin: 1rem 0; }
	.emergency-note { margin-top: 1rem; }
	.state-card { grid-column: 1; }
}
@media (max-width: 560px) {
	.public-header { min-height: 66px; }
	.secure-label { display: none; }
	.public-shell { width: min(100% - 1rem, 1050px); gap: 1rem; }
	.booking-card { min-height: 0; padding: 1rem; border-radius: 18px; }
	.stepper strong { display: none; }
	.form-grid, .channel-options { grid-template-columns: 1fr; }
	.slot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.step-actions.split { display: grid; grid-template-columns: 1fr 1.5fr; }
	.step-actions .button { width: 100%; }
	.appointment-details { grid-template-columns: 1fr; }
	.appointment-details div:nth-child(odd) { border-right: 0; }
	.appointment-details div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
	.public-footer { min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* San Francisco identity */
.brand-mark{object-fit:contain;border-radius:10px;background:#fff;padding:3px}.public-header{border-bottom:1px solid #dce7e9}.button.primary{background:#007e8b}.eyebrow{color:#007e8b}
