.booking-shell {
    padding: 32px 20px 80px;
    max-width: 680px;
}

.booking-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.booking-progress .step {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-border);
    text-align: center;
}

.booking-progress .step-num {
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--color-border);
    color: var(--color-text);
}

.booking-progress .step-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-progress .step.active {
    color: var(--color-heading);
    font-weight: 600;
    border-bottom-color: var(--color-gold);
}

.booking-progress .step.done {
    border-bottom-color: var(--color-gold-light);
}

.booking-progress .step.active .step-num,
.booking-progress .step.done .step-num {
    background: var(--color-gold);
    color: #0e1815;
}

/* Phones: numbered dots for every step, label only for the current one. */
@media (max-width: 640px) {
    .booking-progress { gap: 6px; }
    .booking-progress .step-num { display: flex; }
    .booking-progress .step { flex: 0 0 auto; width: 30px; padding-bottom: 6px; }
    .booking-progress .step.active { flex: 1 1 auto; width: auto; }
    .booking-progress .step:not(.active) .step-label { display: none; }
    .booking-progress .step.active { flex-direction: row; justify-content: center; }
}

.booking-step h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0 0 6px;
}

.booking-step .step-intro {
    color: var(--color-text-muted);
    margin: 0 0 22px;
    font-size: 14px;
}

.selectable-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.selectable-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    background: var(--color-surface);
}

.selectable-item:hover { border-color: var(--color-gold); }

.selectable-item.selected {
    border-color: var(--color-gold);
    background: var(--color-selected-tint);
}

.selectable-item .item-main { flex: 1; min-width: 0; }
.selectable-item .item-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 8px; object-fit: cover; background: #1a1a1a; }
.selectable-item .item-name { font-weight: 600; font-size: 15px; }
.selectable-item .item-desc { color: var(--color-text-muted); font-size: 13px; margin-top: 2px; }
.selectable-item .item-meta { color: var(--color-text-muted); font-size: 13px; white-space: nowrap; }
.selectable-item .item-price { font-weight: 600; color: var(--color-gold); white-space: nowrap; margin-left: 8px; }

.barber-option {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: pointer;
    background: var(--color-surface);
    margin-bottom: 10px;
}

.barber-option.selected { border-color: var(--color-gold); background: var(--color-selected-tint); }

.barber-option img, .barber-option .barber-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-border);
    flex-shrink: 0;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.time-slot {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 6px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    background: var(--color-surface);
}

.time-slot:hover { border-color: var(--color-gold); }
.time-slot.selected { background: var(--color-gold); border-color: var(--color-gold); color: #1b1b1b; font-weight: 600; }

.booking-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

.review-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.review-line.total { font-weight: 700; font-size: 16px; border-bottom: none; padding-top: 16px; }

.confirmation-box {
    text-align: center;
    padding: 20px 0;
}

.confirmation-box .ref {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-gold);
    margin: 8px 0 24px;
}

/* Action buttons on an appointment card: spaced, wrap neatly */
.appt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.appt-actions form { margin: 0; }
@media (max-width: 480px) {
    .appt-actions { flex-direction: column; }
    .appt-actions form, .appt-actions .btn { width: 100%; }
}

/* ---------- Service / style picker: image card grid ---------- */
.choice-section-title {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--color-heading);
    margin: 22px 0 12px;
}
.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.choice-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease, box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}
.choice-card.enter {
    opacity: 0;
    animation: choiceRise 0.6s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes choiceRise {
    from { opacity: 0; transform: translateY(26px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.choice-card:hover { border-color: var(--color-gold); transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28); }
.choice-card:active { transform: scale(0.97); }
.choice-card:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.choice-card.selected {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px var(--color-gold), 0 10px 26px rgba(182, 144, 47, 0.28);
}
.choice-card.just-picked { animation: choicePop 0.45s cubic-bezier(.3,1.5,.5,1); }
@keyframes choicePop { 0% { transform: scale(0.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
/* gold light sweep across the card when it is picked */
.choice-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 224, 150, 0.35) 50%, transparent 65%);
    transform: translateX(-120%);
    pointer-events: none;
}
.choice-card.just-picked::after { animation: choiceSweep 0.9s ease-out; }
@keyframes choiceSweep { to { transform: translateX(120%); } }

.choice-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(110deg, #16211c 30%, #223229 50%, #16211c 70%);
    background-size: 200% 100%;
    animation: choiceShimmer 1.4s linear infinite;
    overflow: hidden;
}
@keyframes choiceShimmer { to { background-position: -200% 0; } }
.choice-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 0.6s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.choice-media img.loaded { opacity: 1; transform: scale(1); }
.choice-card:hover .choice-media img.loaded,
.choice-card.selected .choice-media img.loaded { transform: scale(1.08); }
.choice-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 24, 21, 0.55), transparent 55%);
    pointer-events: none;
}
.choice-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #0e1815;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.3,1.6,.5,1), opacity 0.2s ease;
}
.choice-card.selected .choice-check { transform: scale(1); opacity: 1; }
.choice-body { padding: 10px 12px 12px; }
.choice-name { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--color-heading); }
.choice-meta { color: var(--color-text-muted); font-size: 12.5px; margin-top: 3px; }
.choice-price { font-weight: 700; font-size: 14px; color: var(--color-heading); margin-top: 6px; transition: color 0.25s ease; }
.choice-card.selected .choice-price,
.choice-card:hover .choice-price { color: var(--color-gold-light); }

@media (prefers-reduced-motion: reduce) {
    .choice-card, .choice-card.enter, .choice-card.just-picked, .choice-media, .choice-media img, .choice-check {
        animation: none !important;
        transition: none !important;
    }
    .choice-card.enter { opacity: 1; }
    .choice-media img { opacity: 1; transform: none; }
    .choice-card::after { display: none; }
}
