
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --booking-blue: #0758b8;
    --booking-blue-light: #1685f8;
    --booking-red: #e71935;
    --booking-dark: #071426;
    --booking-card: #101f34;
    --booking-border: rgba(255,255,255,.12);
    --booking-white: #ffffff;
    --booking-muted: #a9b6c9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(0,75,170,.24), transparent 40%),
        radial-gradient(ellipse at 90% 85%, rgba(220,20,50,.12), transparent 35%),
        #050d19;
    color: var(--booking-white);
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.booking-page {
    min-height: 100vh;
    padding: 45px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-card {
    width: 100%;
    max-width: 780px;
    padding: 38px 48px;
    background: rgba(13,28,48,.96);
    border: 1px solid var(--booking-border);
    border-radius: 20px;
    box-shadow: 0 25px 90px rgba(0,0,0,.45);
    overflow: hidden;
}

.booking-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.booking-logo img {
    max-width: 155px;
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s ease;
}

.booking-logo:hover img {
    transform: scale(1.04);
}

.booking-heading {
    text-align: center;
    margin-bottom: 32px;
}

.booking-eyebrow {
    color: #4c9cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.booking-heading h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(27px, 4vw, 37px);
    line-height: 1.25;
    margin: 12px auto;
    max-width: 600px;
}

.booking-description,
.step-description {
    color: var(--booking-muted);
    font-size: 14px;
    line-height: 1.7;
}

.booking-progress {
    margin-bottom: 35px;
}

.progress-track {
    height: 5px;
    background: rgba(255,255,255,.10);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: white;
   /* background: linear-gradient(90deg, #0758b8, #2696ff, #e71935); */
    border-radius: 10px;
    transition: width .45s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.progress-labels span {
    font-size: 10px;
    color: #8494aa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.progress-labels span.active {
    color: #60aaff;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: bookingEnter .45s ease both;
}

@keyframes bookingEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-step h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 7px;
}

.booking-step .step-description {
    margin-bottom: 25px;
}

.barber-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.barber-option {
    min-height: 155px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: white;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--booking-border);
    border-radius: 13px;
    transition: .3s ease;
}

.barber-option:hover,
.service-option:hover {
    border-color: var(--booking-blue-light);
    background: rgba(0,105,220,.10);
    transform: translateY(-3px);
}

.barber-option.selected,
.service-option.selected,
.time-slot.selected {
    border-color: var(--booking-blue-light);
    background: rgba(0,105,220,.20);
    box-shadow: 0 0 0 2px rgba(22,133,248,.15);
}

.barber-icon {
    color: #5daaff;
    font-size: 30px;
}

.barber-option strong {
    font-size: 19px;
}

.barber-option small {
    color: var(--booking-muted);
    font-size: 12px;
}

.service-category {
    margin-bottom: 28px;
}

.service-category h3 {
    font-size: 15px;
    color: #63aaff;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--booking-border);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 16px 13px;
    color: white;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--booking-border);
    border-radius: 9px;
    text-align: left;
    transition: .25s ease;
}

.service-option span {
    font-size: 13px;
    font-weight: 600;
}

.service-option strong {
    color: #67adff;
    font-size: 13px;
    white-space: nowrap;
}

.calendar-wrapper {
    margin-bottom: 25px;
}

.calendar-wrapper label,
.customer-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.calendar-wrapper input,
.customer-form input {
    width: 100%;
    height: 51px;
    padding: 0 15px;
    color: white;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--booking-border);
    border-radius: 9px;
    outline: none;
    color-scheme: dark;
    transition: .25s ease;
}

.calendar-wrapper input:focus,
.customer-form input:focus {
    border-color: var(--booking-blue-light);
    box-shadow: 0 0 0 3px rgba(22,133,248,.12);
}

.selected-date-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    min-height: 60px;
}

.time-slot {
    min-height: 45px;
    color: white;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.time-slot:hover:not(:disabled) {
    border-color: var(--booking-blue-light);
    background: rgba(0,105,220,.13);
}

.time-slot:disabled {
    opacity: .3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.loading-slots,
.no-slots {
    grid-column: 1 / -1;
    color: var(--booking-muted);
    font-size: 13px;
    padding: 20px 0;
}

.customer-form {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.customer-form input {
    margin-bottom: 12px;
}

.booking-summary {
    padding: 20px;
    background: rgba(0,0,0,.19);
    border: 1px solid var(--booking-border);
    border-radius: 12px;
    margin-bottom: 25px;
}

.booking-summary h3 {
    font-size: 15px;
    margin-bottom: 15px;
}

.booking-summary > div,
.confirmation-details > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 13px;
}

.booking-summary > div:last-child,
.confirmation-details > div:last-child {
    border-bottom: none;
}

.booking-summary span,
.confirmation-details span {
    color: var(--booking-muted);
}

.booking-summary strong,
.confirmation-details strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.booking-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.next-button,
.back-button {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: .25s ease;
}

.next-button {
    color: white;
    background: linear-gradient(120deg, #0758b8, #0879e9);
    border: 1px solid #1685f8;
    margin-left: auto;
}

.next-button:hover:not(:disabled) {
    background: linear-gradient(120deg, #0879e9, #e71935);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,100,220,.25);
}

.next-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.back-button {
    color: #c5d2e3;
    background: transparent;
    border: 1px solid var(--booking-border);
}

.back-button:hover {
    color: white;
    border-color: white;
}

.booking-error {
    display: none;
    color: #ffb4bd;
    background: rgba(231,25,53,.12);
    border: 1px solid rgba(231,25,53,.3);
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
}

.booking-error.show {
    display: block;
    animation: bookingEnter .3s ease;
}

/* Confirmation modal */

.confirmation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(9px);
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.confirmation-overlay.show {
    display: flex;
    animation: bookingEnter .3s ease;
}

.confirmation-modal {
    width: 100%;
    max-width: 470px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    text-align: center;
    background: #10223a;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 17px;
    box-shadow: 0 25px 80px rgba(0,0,0,.55);
    animation: modalEnter .4s ease;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirmation-check {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(30,190,120,.15);
    border: 2px solid #24cb87;
    color: #24cb87;
    font-size: 34px;
}

.confirmation-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 10px;
}

.confirmation-modal > p {
    color: var(--booking-muted);
    font-size: 13px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.confirmation-details {
    padding: 15px;
    text-align: left;
    background: rgba(0,0,0,.2);
    border-radius: 10px;
    margin-bottom: 24px;
}

.modal-home-button {
    display: block;
    padding: 14px;
    color: white;
    background: linear-gradient(120deg, #0758b8, #0879e9);
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .25s ease;
}

.modal-home-button:hover {
    background: var(--booking-red);
}

@media (max-width: 600px) {

    .booking-page {
        padding: 15px 10px;
        align-items: flex-start;
    }

    .booking-card {
        padding: 25px 18px;
        border-radius: 13px;
    }

    .booking-logo img {
        max-width: 125px;
        max-height: 100px;
    }

    .booking-heading {
        margin-bottom: 25px;
    }

    .booking-heading h1 {
        font-size: 27px;
    }

    .booking-description {
        font-size: 12px;
    }

    .progress-labels span {
        font-size: 8px;
        letter-spacing: 0;
    }

    .booking-step h2 {
        font-size: 21px;
    }

    .barber-options {
        gap: 10px;
    }

    .barber-option {
        min-height: 135px;
        padding: 12px;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .service-option {
        padding: 15px 12px;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .time-slot {
        font-size: 12px;
    }

    .next-button,
    .back-button {
        padding: 0 15px;
        font-size: 12px;
    }

    .confirmation-modal {
        padding: 25px 18px;
    }

}

@media (min-width: 601px) and (max-width: 900px) {

    .booking-card {
        max-width: 720px;
        padding: 35px;
    }

    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }

}
