* { box-sizing: border-box; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, .calendar-scroll:focus-visible { outline: 3px solid var(--studio-bronze); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { margin: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo img { display: block; }
nav { display: flex; }
nav a { border: 1px solid transparent; border-radius: 999px; }
.reservation-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 10px; color: var(--studio-bronze); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.reservation-heading h1 { margin: 0; font-size: clamp(40px,6vw,64px); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; color: var(--studio-walnut-dark); }
.intro-text { margin: 14px 0 0; color: var(--studio-muted); font-size: 15px; }
.rate-label { border-left: 1px solid var(--studio-line); padding-left: 28px; }
.rate-label > span, .rate-label small { font-size: 12px; color: var(--studio-muted); }
.rate-label p { margin: 2px 0 0; font-size: 25px; letter-spacing: -.035em; }
.rate-label p span { padding-left: 5px; font-size: 13px; letter-spacing: 0; color: var(--studio-muted); }
.calendar-panel { overflow: hidden; border: 1px solid var(--studio-line); background: var(--studio-surface); border-radius: 22px; box-shadow: var(--studio-shadow); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 28px 18px; }
.calendar-toolbar .eyebrow { margin-bottom: 4px; }
.calendar-toolbar h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; font-weight: 600; }
.week-controls { display: flex; align-items: center; gap: 8px; }
.week-controls button { background: transparent; border: 1px solid var(--studio-line); border-radius: 10px; height: 40px; padding: 0 14px; font-size: 13px; }
.week-controls .icon-button { width: 42px; padding: 0; font-size: 20px; }
.week-controls button:hover { background: var(--studio-paper-deep); }
.calendar-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 0 28px 17px; font-size: 12px; color: var(--studio-muted); }
.calendar-meta p { margin: 0; }
.calendar-meta p span { margin-left: 12px; opacity: .85; }
.legend { display: flex; gap: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--studio-line); }
.legend .free { background: var(--studio-surface); }
.legend .chosen { background: var(--studio-walnut); border-color: var(--studio-walnut); }
.legend .taken { background: #dfd9d2; }
.calendar-status { margin: 0; padding: 10px 28px; background: var(--studio-paper); font-size: 12px; color: var(--studio-muted); }
.grid-help { margin: 0; padding: 12px 28px; font-size: 12px; color: var(--studio-muted); }
.mobile-grid-hint { display: none; }
.calendar-scroll { overflow-x: auto; }
#calendar { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: fixed; }
#calendar th:first-child { width: 74px; }
#calendar tr > th:first-child { position: sticky; left: 0; z-index: 1; background: var(--studio-surface); }
#calendar thead th { height: 74px; font-weight: 400; text-align: center; border-block: 1px solid var(--studio-line); }
#calendar thead small { display: block; color: var(--studio-muted); font-size: 11px; }
#calendar thead span { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; font-size: 18px; }
#calendar thead .is-today span { border-radius: 50%; background: var(--studio-walnut); color: white; }
#calendar tbody th { font-size: 11px; font-weight: 400; color: var(--studio-muted); vertical-align: top; padding-top: 8px; }
#calendar td { height: 40px; padding: 0; border: 1px solid #e7ddd2; }
#calendar td:last-child { border-right: 0; }
#calendar .half-hour td { border-top-style: dashed; }
#calendar .half-hour th { color: #9b8f82; }
.slot { display: block; width: 100%; height: 40px; border: 0; background: transparent; color: var(--studio-muted); font-size: 10px; user-select: none; touch-action: pan-y; border-radius: 0; }
.slot:not(:disabled):hover { background: #e8d8c8; }
.slot:disabled { background: repeating-linear-gradient(135deg,#eee8e0,#eee8e0 5px,#e9e3dc 5px,#e9e3dc 6px); color: #867c71; }
.slot.past { background: #f1ede7; color: #b3a99f; }
.slot.selected, .slot.selected:hover { background: var(--studio-walnut); color: #fffaf3; }
.calendar-foot { display: flex; justify-content: space-between; padding: 14px 28px; font-size: 11px; color: var(--studio-muted); }
.calendar-foot button { border: 0; padding: 0; background: none; text-decoration: underline; }
.booking-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 42px; margin-top: 24px; padding: 30px; background: rgba(255,250,243,.7); border: 1px solid var(--studio-line); border-radius: 22px; }
.booking-details h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.booking-details > p:not(.eyebrow) { margin: 6px 0 20px; color: var(--studio-muted); font-size: 13px; }
.customer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.customer-fields label { font-size: 12px; color: var(--studio-muted); }
.field-heading { display: flex; justify-content: space-between; gap: 8px; }
.field-heading > span { font-size: 11px; }
.email-field { grid-column: 1 / -1; }
.field-help { display: block; margin-top: 6px; font-size: 11px; line-height: 1.6; word-break: keep-all; }
.booking-details > .optional-consent { margin: 6px 0 0; font-size: 11px; }
.customer-fields input { display: block; width: 100%; border: 1px solid var(--studio-line); border-radius: 8px; padding: 9px 11px; margin-top: 6px; color: var(--studio-ink); background: var(--studio-surface); font-size: 14px; }
.consent { display: flex; align-items: start; gap: 8px; margin-top: 14px; font-size: 11px; color: var(--studio-muted); }
.consent input { accent-color: var(--studio-walnut); margin-top: 4px; }
.consent a { text-decoration: underline; }
.booking-total { border-left: 1px solid var(--studio-line); padding-left: 34px; }
.booking-total dl { margin: 0; font-size: 13px; }
.booking-total dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.booking-total dt { color: var(--studio-muted); }
.booking-total dd { margin: 0; font-variant-numeric: tabular-nums; }
.booking-total .deposit-row { border-top: 1px solid var(--studio-line); padding-top: 16px; margin-top: 16px; }
.deposit-row dd { font-size: 25px; color: var(--studio-walnut); letter-spacing: -.035em; }
.deposit-row small { display: block; font-size: 10px; }
#book { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 10px; padding: 13px 17px; background: var(--studio-walnut); color: #fffaf3; margin-top: 18px; font-weight: 600; }
#book:disabled { background: #cfc4b8; color: #faf6f0; }
.booking-total > p { font-size: 11px; color: var(--studio-muted); margin: 10px 0 0; }
.contact-note { text-align: center; color: var(--studio-muted); font-size: 12px; margin-top: 25px; }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }
.notice { border: 1px solid var(--studio-line); padding: 18px 22px; border-radius: 12px; margin: 0 0 22px; background: #eee3d5; white-space: pre-line; }
.notice a { text-decoration: underline; }
footer { text-align: center; margin-top: 64px; font-size: 12px; }
@media (max-width: 1000px) { .booking-panel { gap: 24px; } .booking-total { padding-left: 24px; } }
@media (max-width: 900px) { header { flex-direction: column; } }
@media (max-width: 640px) {
  .mobile-grid-hint { display: block; margin-top: 5px; }
  .reservation-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 24px; }
  .rate-label { padding-left: 15px; }
  .calendar-toolbar { padding: 20px 16px 15px; }
  .calendar-toolbar h2 { font-size: 18px; }
  .calendar-toolbar .eyebrow { font-size: 9px; }
  .week-controls { gap: 4px; } .week-controls button { padding: 0 8px; height: 36px; } .week-controls .icon-button { width: 34px; }
  .calendar-meta, .grid-help, .calendar-status { padding-left: 16px; padding-right: 16px; }
  .calendar-foot { padding: 14px 16px; }
  .booking-panel { grid-template-columns: 1fr; padding: 22px; }
  .booking-total { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--studio-line); }
  .customer-fields { grid-template-columns: 1fr; }
}
