.appointment-page [hidden] { display: none !important; }
.appointment-page button, .appointment-page input, .appointment-page select { font: inherit; }
.appointment-page button { cursor: pointer; }
.appointment-page button:disabled { cursor: not-allowed; }
.appointment-page :is(button, input, select):focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }
.appointment-page button:disabled { opacity: .5; }
.appointment-page h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
.appointment-page h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.appointment-page h3 { font-size: 1.15rem; }
.appointment-page .eyebrow { margin-bottom: .6rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.concept-banner { background: var(--berry-dark); color: var(--white); padding: .7rem 1.25rem; display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: .15rem .85rem; font-size: .875rem; text-align: center; }
.concept-banner strong { font-weight: 700; }
.appointment-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.back-to-salon { justify-self: start; display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .875rem; }
.back-to-salon:hover { color: var(--berry); }
.header-location { justify-self: end; color: var(--muted); font-size: .875rem; line-height: 1.6; text-align: right; }
.appointment-wrap { max-width: 1160px; padding-block: 2.5rem 4rem; }
.appointment-intro { margin-bottom: 2rem; }
.appointment-intro > p:last-child { color: var(--muted); margin-top: .75rem; }
.booking-fallback { background: var(--blush); border: 1px solid var(--rose); padding: 1.5rem; border-radius: 1rem; }
.booking-progress { border-block: 1px solid var(--line); margin-bottom: 2rem; padding-block: .7rem; }
.booking-progress ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.booking-progress button { display: flex; align-items: center; gap: .7rem; text-align: left; min-height: 48px; background: none; color: var(--muted); border: 0; font-size: .875rem; padding: .4rem .5rem; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border: 1px solid var(--rose); border-radius: 50%; line-height: 1; }
.booking-progress button[aria-current="step"] { color: var(--berry); font-weight: 700; }
.booking-progress button[aria-current="step"] .step-number { background: var(--berry); color: var(--white); border-color: var(--berry); }
.booking-progress button[data-completed="true"] .step-number { background: var(--blush); border-color: var(--berry); color: var(--berry); }
.appointment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.booking-workspace { min-width: 0; }
.step-heading { margin-bottom: 1.6rem; }
.step-heading > p { color: var(--muted); margin-top: .7rem; }
.step-heading h2:focus, .preview-complete h2:focus { outline: none; }
.category-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.category-list button { border: 1px solid var(--rose); background: transparent; color: var(--muted); padding: .55rem .95rem; min-height: 44px; border-radius: 99px; font-size: .875rem; }
.category-list button:hover { background: var(--blush); color: var(--berry); }
.category-list button[aria-pressed="true"] { color: var(--white); background: var(--berry); border-color: var(--berry); }
.preview-note { font-size: .875rem; color: var(--muted); border-left: 2px solid var(--rose); padding: .25rem 0 .25rem .9rem; margin-block: 1.1rem; }
.choice-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.service-list { border-top: 1px solid var(--line); }
.service-choice { display: block; position: relative; cursor: pointer; border-bottom: 1px solid var(--line); }
.service-choice input, .time-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.service-choice-content { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1rem; border-radius: .65rem; border: 1px solid transparent; margin-block: .3rem; }
.service-description { flex: 1; min-width: 0; }
.service-name { display: block; font: 400 1.18rem/1.4 var(--serif); color: var(--ink); }
.service-description-text { display: block; font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.service-duration { display: block; margin-top: .55rem; font-size: .875rem; color: var(--berry); }
.choice-indicator { flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid var(--rose); border-radius: 50%; display: grid; place-items: center; color: var(--berry); }
.choice-indicator::after { content: ""; height: 10px; width: 10px; border-radius: 50%; background: transparent; }
.service-choice:hover .service-choice-content { background: #f8e5eb70; }
.service-choice input:checked + .service-choice-content { background: var(--blush); border-color: var(--rose); }
.service-choice input:checked + .service-choice-content .choice-indicator { border-color: var(--berry); }
.service-choice input:checked + .service-choice-content .choice-indicator::after { background: var(--berry); }
.service-choice input:focus-visible + .service-choice-content, .time-choice input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 3px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding-top: 1.7rem; margin-top: 1.3rem; border-top: 1px solid var(--line); }
.action-hint { font-size: .875rem; color: var(--muted); max-width: 235px; }
.step-actions .button { flex-shrink: 0; }
.back-button, .edit-button { padding: .5rem 0; border: 0; color: var(--berry); background: none; min-height: 44px; font-size: .875rem !important; text-decoration: underline; text-underline-offset: .3em; }
.back-button:hover, .edit-button:hover { color: var(--berry-dark); }
.field-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.field-label > span { color: var(--muted); font-weight: 400; }
.appointment-page :is(input:not([type="radio"]):not([type="checkbox"]), select) { width: 100%; max-width: 100%; min-height: 52px; color: var(--ink); background: var(--white); border: 1px solid #bfa2af; border-radius: .6rem; padding: .75rem .8rem; }
.field-help { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.calendar-header { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.calendar-controls { display: flex; gap: .3rem; }
.calendar-controls button { width: 44px; height: 44px; border: 1px solid var(--rose); background: var(--white); border-radius: 50%; color: var(--berry); display: grid; place-items: center; }
.calendar-controls button:hover:not(:disabled) { background: var(--blush); }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.calendar-weekdays { padding-block: 1rem .6rem; font-size: .875rem; text-align: center; color: var(--muted); }
.calendar-days button { min-width: 0; min-height: 46px; border: 1px solid transparent; border-radius: .6rem; background: var(--white); color: var(--ink); }
.calendar-days button:disabled { background: transparent; opacity: 1; color: #947782; }
.calendar-days button:hover:not(:disabled) { border-color: var(--berry); background: var(--blush); }
.calendar-days button[aria-pressed="true"] { border-color: var(--berry); background: var(--berry); color: var(--white); }
.calendar-days button[data-today="true"] { text-decoration: underline; text-underline-offset: .3em; }
.time-heading { margin-block: 1.7rem 1rem; }
.time-heading > p { color: var(--muted); margin-top: .35rem; font-size: .875rem; }
.time-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.time-slots .empty-times { grid-column: 1 / -1; font-size: .875rem; color: var(--muted); padding: 1rem; background: var(--blush); border-radius: .6rem; }
.time-choice { position: relative; cursor: pointer; }
.time-choice > span { display: grid; place-items: center; min-height: 46px; padding: .5rem .2rem; border: 1px solid var(--rose); border-radius: .6rem; color: var(--berry); background: var(--white); }
.time-choice:hover > span { background: var(--blush); }
.time-choice input:checked + span { background: var(--berry); border-color: var(--berry); color: var(--white); }
.details-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.field { min-width: 0; }
.field-error { margin-top: 1rem; border-left: 3px solid #a42626; padding: .6rem .8rem; color: #862424; background: #fff0ee; border-radius: .2rem; }
.appointment-page [aria-invalid="true"] { border-color: #a42626 !important; }
.patch-reminder { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: .7rem; border: 1px solid var(--rose); font-size: .875rem; }
.review-section { padding-block: 1.2rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.review-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.review-section .field-help { margin-top: .25rem; }
.preview-consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; padding-block: .7rem; cursor: pointer; }
.preview-consent input { margin-top: .2rem; flex: 0 0 20px; width: 20px; height: 20px; accent-color: var(--berry); }
.appointment-summary { position: sticky; top: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 9rem 9rem 1rem 1rem; overflow: hidden; }
.appointment-summary > img { height: 190px; object-fit: cover; object-position: center 55%; }
.summary-content { padding: 1.5rem; }
.summary-content h2 { font-size: 1.6rem; }
.summary-content address { font-size: .875rem; font-style: normal; color: var(--muted); margin-top: .8rem; }
.summary-content dl { margin: 1.3rem 0 0; }
.summary-content dl > div { border-top: 1px solid var(--line); padding-block: .8rem; }
.summary-content dt { color: var(--muted); font-size: .875rem; }
.summary-content dd { margin: .2rem 0 0; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.summary-preview { font-size: .875rem; color: var(--berry); padding-top: .8rem; border-top: 1px solid var(--line); }
.preview-complete { padding-block: 1rem; }
.preview-complete > p:not(.eyebrow) { margin-top: 1.2rem; }
.complete-note { background: var(--blush); padding: 1.4rem; border: 1px solid var(--rose); border-radius: 1rem; margin-top: 1.8rem; }
.complete-note > p { margin-top: .5rem; color: var(--muted); }
.complete-appointment { font-size: .875rem; color: var(--muted); }
.complete-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.appointment-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--muted); }
.step-enter { animation: booking-step-in 240ms ease-out; }
@keyframes booking-step-in { from { opacity: .4; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (max-width: 950px) {
  .appointment-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 1.8rem; }
  .summary-content { padding: 1.2rem; }
  .step-actions { flex-wrap: wrap; }
  .details-fields { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .appointment-header { padding-block: 1.3rem; }
  .header-location { font-size: .8125rem; }
  .appointment-wrap { padding-top: 1.8rem; }
  .appointment-intro { margin-bottom: 1.5rem; }
  .appointment-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .appointment-summary { position: static; border-radius: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); }
  .appointment-summary > img { height: 160px; }
  .summary-content { padding: 1.4rem; }
  .summary-content dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .booking-progress button { flex-direction: column; gap: .45rem; align-items: center; width: 100%; text-align: center; padding-inline: .1rem; font-size: .875rem; }
  .booking-progress ol { gap: .2rem; }
  .step-actions .button { margin-left: auto; }
  .step-actions .action-hint { width: 100%; max-width: none; }
  .service-choice-content { padding-inline: .7rem; }
  .details-fields { grid-template-columns: 1fr 1fr; }
  .review-section-heading { flex-wrap: wrap; gap: .25rem; }
}
@media (max-width: 430px) {
  .appointment-header { gap: .6rem; }
  .back-to-salon { gap: .35rem; }
  .back-to-salon svg { display: none; }
  .header-location { max-width: 78px; }
  .calendar-weekdays, .calendar-days { gap: .2rem; }
  .calendar-days button { min-height: 44px; }
  .details-fields { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-complete h2 br { display: none; }
  .step-actions { gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .step-enter { animation: none; } }
