﻿/* =========================================================
   TIME PAGE
========================================================= */

.booking-time-page {
    min-height: 100vh;
    padding: 1.25rem 1.25rem 5rem;
}

.booking-time-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   PAGE INTRO
========================================================= */

.booking-time-header {
    width: min(100%, 720px);
    margin: 4.5rem auto 3rem;
    text-align: center;
}

    .booking-time-header .service-eyebrow {
        margin-bottom: .85rem;
    }

    .booking-time-header h1 {
        margin: 0;
        color: var(--color-primary);
        font-size: clamp(2.45rem, 5vw, 3.65rem);
        font-weight: 800;
        letter-spacing: -.06em;
        line-height: .95;
    }

    .booking-time-header p {
        margin: .8rem 0 0;
        color: var(--color-text-soft);
        font-size: 1rem;
        line-height: 1.5;
    }

        .booking-time-header p strong {
            color: var(--color-primary);
            font-weight: 650;
        }


/* =========================================================
   TIME CONTENT
========================================================= */

.booking-time-content {
    width: min(100%, 680px);
    margin: 0 auto;
}


/* =========================================================
   TIME CARD
========================================================= */

.booking-time-card {
    width: 100%;
    padding: 1.5rem 1.6rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid rgba(23, 22, 20, .085);
    border-radius: 13px;
    box-shadow: 0 9px 28px rgba(23, 22, 20, .035);
}


/* =========================================================
   AVAILABILITY INTRO
========================================================= */

.time-availability-intro {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.4rem;
}

.time-intro-icon {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: .95rem;
}

.time-availability-intro p {
    margin: 0;
    color: var(--color-primary);
    font-size: .95rem;
    line-height: 1.45;
}

.time-availability-intro strong {
    font-weight: 700;
}


/* =========================================================
   TIME GRID
========================================================= */

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}


/* =========================================================
   TIME SLOT
========================================================= */

.time-slot {
    width: 100%;
    min-height: 66px;
    padding: .65rem .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid rgba(23, 22, 20, .14);
    border-radius: 11px;
    font: inherit;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}


    /* =========================================================
   AVAILABLE
========================================================= */

    .time-slot.available {
        border: .05px solid var(--color-primary);
    }

        .time-slot.available:hover {
            color: #fff;
            background: var(--color-primary);
            border-color: var(--color-primary);
            transform: translateY(-1px);
        }



    /* =========================================================
   RESERVED 
========================================================= */

    .time-slot.reserved {
        color: var(--color-text-soft);
        background: transparent;
        border-color: transparent;
        opacity: .38;
        cursor: not-allowed;
    }

        .time-slot.reserved:hover {
            color: var(--color-text-soft);
            background: transparent;
            border-color: transparent;
            transform: none;
        }


    /* =========================================================
   SELECTED
========================================================= */

    .time-slot.selected {
        color: #fff;
        background: var(--color-primary);
        border-color: var(--color-primary);
    }

        .time-slot.selected:hover {
            color: #fff;
            background: var(--color-primary);
            border-color: var(--color-primary);
            transform: none;
        }


/* =========================================================
   TIME TEXT
========================================================= */

.time-slot-value {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
}



/* =========================================================
   TIME LEGEND
========================================================= */

.time-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--color-border);
}

.time-legend-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--color-text-soft);
    font-size: .63rem;
}


/* =========================================================
   LEGEND MARKS
========================================================= */

.time-legend-mark {
    width: 19px;
    height: 19px;
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
}


    /* Available */

    .time-legend-mark.available {
        border: 1px solid var(--color-primary);
    }


    /* Reserved */

    .time-legend-mark.reserved {
        border: .05px solid var(--color-primary);
        opacity: .35;
    }




/* =========================================================
   SELECTION CARD
========================================================= */

.time-selection-card {
    margin-top: 1.15rem;
    padding: 1.25rem 1.4rem;
    background: var(--color-surface);
    border: 1px solid rgba(23, 22, 20, .085);
    border-radius: 13px;
    box-shadow: 0 9px 28px rgba(23, 22, 20, .035);
}


.time-selection-heading {
    margin-bottom: 1rem;
}

    .time-selection-heading span {
        color: var(--color-text-soft);
        font-size: .65rem;
        font-weight: 750;
        letter-spacing: .13em;
        text-transform: uppercase;
    }


/* =========================================================
   SELECTION CONTENT
========================================================= */

.time-selection-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
}


/* =========================================================
   SERVICE
========================================================= */

.time-selection-service {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.time-selection-image {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    border-radius: 9px;
    background: #f7f5f1;
}

    .time-selection-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.time-selection-service-info {
    min-width: 0;
}

    .time-selection-service-info h2 {
        margin: 0;
        color: var(--color-primary);
        font-size: .98rem;
        font-weight: 750;
        letter-spacing: -.02em;
    }


.time-selection-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .3rem;
    color: var(--color-text-soft);
    font-size: .7rem;
}

    .time-selection-meta strong {
        color: var(--color-primary);
        font-weight: 700;
    }

.selection-dot {
    color: var(--color-text-soft);
}


/* =========================================================
   DIVIDER
========================================================= */

.time-selection-divider {
    width: 1px;
    height: 82px;
    background: var(--color-border);
}


/* =========================================================
   DATE + TIME DETAILS
========================================================= */

.time-selection-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}


.time-selection-detail {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
}


.time-selection-detail-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
    background: rgba(209, 173, 120, .075);
    border-radius: 50%;
    font-size: .9rem;
}


.time-selection-detail-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .22rem;
}

    .time-selection-detail-info span {
        color: var(--color-text-soft);
        font-size: .62rem;
    }

    .time-selection-detail-info strong {
        color: var(--color-primary);
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.35;
    }


/* =========================================================
   CONTINUE
========================================================= */

.time-continue {
    width: 100%;
    min-height: 49px;
    margin-top: 1.15rem;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: #fff;
    background: var(--color-primary);
    text-decoration:none;
    border: 0;
    border-radius: 9px;
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

    .time-continue:hover:not(:disabled) {
        box-shadow: 0 7px 18px rgba(23, 22, 20, .11);
    }

    .time-continue i {
        font-size: .76rem;
        transition: transform .2s ease;
    }

    .time-continue:hover:not(:disabled) i {
        transform: translateX(2px);
    }

    .time-continue:disabled {
        opacity: .42;
        cursor: not-allowed;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .booking-time-header {
        margin-top: 3rem;
        margin-bottom: 2.15rem;
    }

    .booking-time-content {
        width: min(100%, 620px);
    }


    .time-selection-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .time-selection-divider {
        width: 100%;
        height: 1px;
    }

    .time-selection-details {
        gap: .8rem;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .booking-time-page {
        padding: 1rem .9rem 3.5rem;
    }


    /* Header */

    .booking-time-header {
        width: min(100%, 500px);
        margin: 2.35rem auto 1.8rem;
    }

        .booking-time-header .service-eyebrow {
            margin-bottom: .7rem;
            font-size: .61rem;
            letter-spacing: .14em;
        }

        .booking-time-header h1 {
            font-size: 2.15rem;
            letter-spacing: -.055em;
        }

        .booking-time-header p {
            margin-top: .6rem;
            font-size: .93rem;
        }


    /* Time card */

    .booking-time-card {
        padding: 1.15rem .8rem 1rem;
    }


    /* Intro */

    .time-availability-intro {
        gap: .55rem;
        margin-bottom: 1.15rem;
    }

    .time-intro-icon {
        width: 28px;
        height: 28px;
        font-size: .85rem;
    }

    .time-availability-intro p {
        font-size: .82rem;
    }


    /* Time grid */

    .time-grid {
        gap: .5rem;
    }

    .time-slot {
        min-height: 59px;
        padding: .55rem .4rem;
        border-radius: 9px;
    }

    .time-slot-value {
        font-size: .78rem;
    }

   


    /* Legend */

    .time-legend {
        gap: 1.15rem;
    }

    .time-legend-item {
        font-size: .57rem;
    }



    /* Selection */

    .time-selection-card {
        padding: 1.1rem;
    }

    .time-selection-image {
        width: 65px;
        height: 65px;
        flex-basis: 65px;
    }

    .time-selection-service-info h2 {
        font-size: .92rem;
    }

    .time-selection-detail-info strong {
        font-size: .76rem;
    }


    /* CTA */

    .time-continue {
        min-height: 48px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .booking-time-header {
        margin-top: 2rem;
    }

        .booking-time-header h1 {
            font-size: 1.95rem;
        }


    .booking-time-card {
        padding-left: .55rem;
        padding-right: .55rem;
    }


    .time-grid {
        gap: .35rem;
    }

    .time-slot {
        min-height: 55px;
        font-size: .7rem;
    }

    .time-slot-value {
        font-size: .72rem;
    }



    .time-legend {
        gap: .75rem;
    }


    .time-selection-card {
        padding: 1rem;
    }
}
