/* Reserved Hour — booking.php surface layer (see tokens.css for the shared system) */

.top {
    border-bottom: 1px solid var(--line);
}
.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-4);
}
.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1875rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.step-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.step-dots li {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}
.step-dots li.is-done { background: var(--ink); }
.step-dots li.is-current { background: var(--accent); }
.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

@media (max-width: 560px) {
    .step-dots { display: none; }
}

.step { display: none; padding: var(--sp-7) 0 var(--sp-9); }
.step.active { display: block; }

.back {
    background: none;
    border: none;
    padding: 0.4em 0;
    margin-bottom: var(--sp-6);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
}
.back:hover { color: var(--ink); }

.step-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    margin-bottom: var(--sp-5);
}

/* -- category wings: the first-viewport thesis -- */
.wings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.wing {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    padding: var(--sp-8) var(--sp-7);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s var(--ease);
}
.wing:hover, .wing:focus-visible { background: var(--paper-alt); }
.wing-num {
    font-size: clamp(3.25rem, 2.25rem + 3.5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--line-strong);
    transition: color 0.18s var(--ease);
}
.wing:hover .wing-num, .wing:focus-visible .wing-num { color: var(--accent); }
.wing-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    font-weight: 700;
    margin-top: var(--sp-5);
}
.wing-cta {
    margin-top: var(--sp-6);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    transition: color 0.18s var(--ease);
}
.wing:hover .wing-cta, .wing:focus-visible .wing-cta { color: var(--accent); }

@media (max-width: 700px) {
    .wings { grid-template-columns: 1fr; }
    .wing { min-height: 280px; padding: var(--sp-7) var(--sp-6); }
}

/* -- master rows: a monogram seal stands in for the missing photograph -- */
.seal {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.0625rem;
}

/* -- date + slots -- */
#step-date .field { max-width: 260px; }
.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-6);
}
.btn-slot {
    min-width: 4.75em;
    padding: 0.7em 1em;
}
.slot-empty {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

/* -- ticket-stub summary on the contact step -- */
.ticket-preview {
    position: relative;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    margin-bottom: var(--sp-6);
    overflow: visible;
}
.tp-row {
    padding: var(--sp-4) var(--sp-5);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sp-3);
}
.tp-row .tp-label { color: var(--ink-soft); font-size: 0.9375rem; }
.tp-row .tp-value { font-weight: 700; text-align: right; }
.tp-divider {
    position: relative;
    border-top: 1px dashed var(--line-strong);
    margin: 0 var(--sp-5);
}
.tp-divider::before, .tp-divider::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 16px;
    height: 16px;
    background: var(--paper);
    border-radius: 50%;
}
.tp-divider::before { left: calc(-1 * var(--sp-5) - 8px); }
.tp-divider::after { right: calc(-1 * var(--sp-5) - 8px); }

/* -- promo code check on the contact step -- */
.promo-row {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-3);
    margin-bottom: var(--sp-2);
}
.promo-field { flex: 1; margin-bottom: 0; }

/* -- graceful conflict / notice states -- */
.notice { margin-top: var(--sp-4); }
.notice-title { font-weight: 700; margin-bottom: 2px; }

/* -- confirmation: the one authored motion moment -- */
.stamp-card {
    position: relative;
    border: 1px solid var(--ink);
    background: var(--surface);
    padding: var(--sp-8) var(--sp-6);
    animation: stamp-settle 0.5s var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
    .stamp-card { animation: none; }
}
@keyframes stamp-settle {
    from { opacity: 0; transform: scale(0.96) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.stamp-mark {
    position: absolute;
    top: var(--sp-6);
    right: var(--sp-6);
    width: 56px;
    height: 56px;
    color: var(--accent);
}
.stamp-id {
    font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
    font-weight: 800;
    margin: var(--sp-3) 0 var(--sp-6);
}
.stamp-recap p { margin-bottom: var(--sp-2); font-size: 1rem; }
.stamp-recap .tp-value, .stamp-recap strong { font-weight: 700; }
.stamp-actions { margin-top: var(--sp-6); }

@media (max-width: 480px) {
    .stamp-mark { position: static; margin-bottom: var(--sp-4); }
}

/* -- consent checkbox (раздел 13.1): не помечен по умолчанию, кнопка "Подтвердить" неактивна,
   пока не отмечен — см. submitBtn's disabled attribute + onConsentChange() -- */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: 0.9375rem;
    color: var(--ink-soft);
    margin-bottom: var(--sp-5);
    cursor: pointer;
}
.consent-label input[type=checkbox] {
    margin-top: 0.2em;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
