:root {
    --booking-bg: #f6f7fb;
    --booking-surface: #ffffff;
    --booking-text: #15171c;
    --booking-muted: #707681;
    --booking-border: #e8e9ed;
    --booking-primary: #111318;
    --booking-radius: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--booking-bg);
    color: var(--booking-text);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.booking-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

    /*
                    Subtle background decoration
                */

    .booking-page::before {
        content: "";
        position: fixed;
        width: 650px;
        height: 650px;
        top: -300px;
        right: -220px;
        background: radial-gradient( circle, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 70% );
        pointer-events: none;
        z-index: 0;
    }

    .booking-page::after {
        content: "";
        position: fixed;
        width: 550px;
        height: 550px;
        bottom: -300px;
        left: -250px;
        background: radial-gradient( circle, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0) 70% );
        pointer-events: none;
        z-index: 0;
    }

/*
                    Header
                */

.booking-header {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 28px 40px;
}

.booking-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

    .booking-logo img {
        max-height: 42px;
        max-width: 180px;
        object-fit: contain;
    }

.booking-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--booking-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all .2s ease;
}

    .booking-back:hover {
        background: rgba(0, 0, 0, .04);
        color: var(--booking-text);
    }

/*
                    Main
                */

.booking-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 45px 40px 80px;
}

/*
                    Hero
                */

.booking-hero {
    max-width: 760px;
    margin-bottom: 55px;
}

.booking-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #ffffff;
    border: 1px solid var(--booking-border);
    border-radius: 999px;
    color: var(--booking-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.booking-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
}

.booking-title {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -3px;
    font-weight: 700;
}

.booking-description {
    max-width: 600px;
    margin: 22px 0 0;
    color: var(--booking-muted);
    font-size: 18px;
    line-height: 1.65;
}

/*
                    Section header
                */

.booking-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.booking-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.booking-section-subtitle {
    margin: 5px 0 0;
    color: var(--booking-muted);
    font-size: 14px;
}

/*
                    Stores
                */

.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.store-option {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    overflow: hidden;
    background: var(--booking-surface);
    border: 1px solid var(--booking-border);
    border-radius: var(--booking-radius);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .store-option:hover {
        transform: translateY(-5px);
        border-color: #d7d9df;
        box-shadow: 0 20px 50px rgba(20, 23, 30, .08);
    }

    .store-option.selected {
        border-color: #111318;
        box-shadow: 0 0 0 2px #111318, 0 20px 50px rgba(20, 23, 30, .10);
    }

/*
                    Image
                */

.store-image-wrapper {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    background: #eceef2;
}

.store-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.store-option:hover .store-image {
    transform: scale(1.035);
}

.store-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .25) 100% );
}

/*
                    Store content
                */

.store-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 22px;
}

.store-name {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.4px;
}

.store-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--booking-muted);
    font-size: 14px;
    line-height: 1.5;
}

    .store-address svg {
        flex: 0 0 auto;
        margin-top: 2px;
    }

.store-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
}

.store-action-text {
    font-size: 14px;
    font-weight: 700;
}

.store-action-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f2f5;
    transition: background .2s ease, transform .2s ease;
}

.store-option:hover .store-action-icon {
    background: #111318;
    color: white;
    transform: translateX(3px);
}

/*
                    Selected check
                */

.store-selected {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111318;
    color: #fff;
    opacity: 0;
    transform: scale(.8);
    transition: all .2s ease;
    z-index: 3;
}

.store-option.selected .store-selected {
    opacity: 1;
    transform: scale(1);
}

/*
                    Calendar section
                */

.calendar-section {
    display: none;
/*    margin-top: 55px;*/
    animation: bookingFadeIn .4s ease;
}

    .calendar-section.visible {
        display: block;
    }

.selected-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid var(--booking-border);
    border-radius: 18px;
}

.selected-location-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.selected-location-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f2f5;
}

.selected-location-label {
    color: var(--booking-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.selected-location-name {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
}

.change-location {
    border: 0;
    background: transparent;
    color: var(--booking-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all .2s ease;
}

    .change-location:hover {
        background: #f1f2f5;
        color: var(--booking-text);
    }

.calendar-wrapper {
    width: 100%;
    min-height: 650px;
    background: #fff;
    border: 1px solid var(--booking-border);
    border-radius: var(--booking-radius);
    overflow: hidden;
}

/*
                    Loading
                */

.calendar-loading {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--booking-muted);
}

.calendar-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e8e9ed;
    border-top-color: #111318;
    border-radius: 50%;
    animation: bookingSpin .8s linear infinite;
    margin-bottom: 16px;
}

/*
                    Footer
                */

.booking-footer {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 30px;
    color: #9a9da5;
    font-size: 12px;
}

/*
                    Animations
                */

@keyframes bookingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bookingFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
                    Responsive
                */

@media (max-width: 900px) {
    .booking-header {
        padding: 22px 24px;
    }

    .booking-main {
        padding: 35px 24px 60px;
    }

    .booking-footer {
        padding: 0 24px 25px;
    }

    .booking-title {
        letter-spacing: -2px;
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }

    .store-option {
        min-height: 390px;
    }

    .store-image-wrapper {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .booking-header {
        padding: 18px;
    }

    .booking-main {
        padding: 25px 18px 50px;
    }

    .booking-footer {
        padding: 0 18px 20px;
    }

    .booking-back {
        font-size: 12px;
        padding: 8px;
    }

    .booking-title {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .booking-description {
        font-size: 16px;
    }

    .booking-hero {
        margin-bottom: 38px;
    }

    .booking-section-header {
        display: block;
    }

    .store-option {
        min-height: 370px;
        border-radius: 20px;
    }

    .store-image-wrapper {
        height: 215px;
    }

    .store-content {
        padding: 20px;
    }

    .selected-location {
        align-items: flex-start;
    }

    .selected-location-info {
        min-width: 0;
    }

    .selected-location-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .change-location {
        flex-shrink: 0;
    }

    .calendar-wrapper {
        min-height: 500px;
        border-radius: 20px;
    }

    .calendar-loading {
        min-height: 500px;
    }
}
