﻿/* =========================================================
   DETAILS PAGE
========================================================= */

.booking-details-page {
    min-height: 100vh;
    padding: 1.25rem 1.25rem 5rem;
}

.booking-details-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   PAGE INTRO
========================================================= */

.booking-details-header {
    width: min(100%, 820px);
    margin: 4.5rem auto 3rem;
    text-align: center;
}

    .booking-details-header .service-eyebrow {
        margin-bottom: .85rem;
    }

    .booking-details-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-details-header p {
        margin: .8rem 0 0;
        color: var(--color-text-soft);
        font-size: 1rem;
        line-height: 1.5;
    }


/* =========================================================
   CONTENT
========================================================= */

.booking-details-content {
    width: min(100%, 720px);
    margin: 0 auto;
}


/* =========================================================
   FORM
========================================================= */

#detailsForm {
    width: 100%;
}


/* =========================================================
   FIELD
========================================================= */

.details-field {
    width: 100%;
    margin-bottom: 1.35rem;
}

    .details-field label {
        display: block;
        margin-bottom: .55rem;
        color: var(--color-primary);
        font-size: .82rem;
        font-weight: 700;
        letter-spacing: -.01em;
    }



/* =========================================================
   INPUT WRAPPER
========================================================= */

.details-input-wrap {
    position: relative;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid rgba(23, 22, 20, .085);
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


/* =========================================================
   INPUT ICON
========================================================= */

.details-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: var(--color-accent);
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    transform: translateY(-30%);
}


/* =========================================================
   INPUT
========================================================= */

.details-input-wrap input {
    width: 100%;
    height: 100%;
    padding: 0 1rem 0 68px;
    color: var(--color-primary);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1;
}

    .details-input-wrap input::placeholder {
        color: var(--color-text-soft);
        opacity: .72;
    }


/* =========================================================
   INPUT FOCUS
========================================================= */

.details-input-wrap:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(209, 173, 120, .08);
}

/* =========================================================
   PHONE ROW
========================================================= */

.details-phone-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

    .details-phone-row .details-field {
        margin-bottom: 0;
    }


/* =========================================================
   PHONE HELP
========================================================= */

.details-phone-help {
    margin: .7rem 0 1.8rem;
    color: var(--color-text-soft);
    font-size: .72rem;
    line-height: 1.45;
}


/* =========================================================
   BOOKING SUMMARY
========================================================= */

.details-summary-card {
    margin-top: 1.7rem;
    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);
}


/* =========================================================
   SUMMARY HEADING
========================================================= */

.details-summary-heading {
    margin-bottom: 1rem;
    color: var(--color-text-soft);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}


/* =========================================================
   SUMMARY CONTENT
========================================================= */

.details-summary-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
}


/* =========================================================
   SUMMARY SERVICE
========================================================= */

.details-summary-service {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .85rem;
}


.details-summary-image {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    border-radius: 9px;
    background: #f7f5f1;
}

    .details-summary-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.details-summary-service-info {
    min-width: 0;
}


    .details-summary-service-info h2 {
        margin: 0;
        color: var(--color-primary);
        font-size: .98rem;
        font-weight: 750;
        letter-spacing: -.02em;
    }


.details-summary-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .3rem;
    color: var(--color-text-soft);
    font-size: .7rem;
}

    .details-summary-meta strong {
        color: var(--color-primary);
        font-weight: 700;
    }

.summary-dot {
    color: var(--color-text-soft);
}





/* =========================================================
   SUMMARY DIVIDER
========================================================= */

.details-summary-divider {
    width: 1px;
    height: 65px;
    background: var(--color-border);
}


/* =========================================================
   APPOINTMENT
========================================================= */

.details-summary-appointment {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.details-summary-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .85rem;
}


.details-summary-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;
}


.details-summary-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .18rem;
}


    .details-summary-item-info span {
        color: var(--color-text-soft);
        font-size: .62rem;
    }


    .details-summary-item-info strong {
        color: var(--color-primary);
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.35;
    }


/* =========================================================
   CONTINUE
========================================================= */

.details-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);
    border: 0;
    text-decoration:none;
    border-radius: 9px;
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

    .details-continue:hover {
        box-shadow: 0 7px 18px rgba(23, 22, 20, .11);
    }

        .details-continue:hover i {
            transform: translateX(3px);
        }

    .details-continue i {
        font-size: .76rem;
        transition: transform .2s ease;
    }


/* =========================================================
   SECURITY
========================================================= */

.details-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-top: 1.15rem;
    color: var(--color-text-soft);
    font-size: .68rem;
}

    .details-security i {
        color: var(--color-text-soft);
        font-size: .75rem;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .booking-details-header {
        margin-top: 3rem;
        margin-bottom: 2.15rem;
    }

    .booking-details-content {
        width: min(100%, 620px);
    }

    .details-summary-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .details-summary-divider {
        width: 100%;
        height: 1px;
    }

    .details-summary-appointment {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .booking-details-page {
        padding: 1rem .9rem 3.5rem;
    }


    .booking-details-header {
        width: min(100%, 500px);
        margin: 2.35rem auto 1.8rem;
    }

        .booking-details-header .service-eyebrow {
            margin-bottom: .7rem;
            font-size: .61rem;
            letter-spacing: .14em;
        }

        .booking-details-header h1 {
            font-size: 2.15rem;
            letter-spacing: -.055em;
        }

        .booking-details-header p {
            margin-top: .6rem;
            font-size: .93rem;
        }


    /* Inputs */

    .details-field {
        margin-bottom: 1.1rem;
    }

        .details-field label {
            margin-bottom: .45rem;
            font-size: .77rem;
        }

    .details-input-wrap {
        height: 52px;
        border-radius: 9px;
    }

    .details-input-icon {
        left: 14px;
        width: 30px;
        height: 30px;
        font-size: .9rem;
    }

    .details-input-wrap input {
        padding-left: 60px;
        padding-right: .75rem;
        font-size: .86rem;
    }


    /* Phone fields */

    .details-phone-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .details-phone-help {
        margin-top: .15rem;
        margin-bottom: 1.5rem;
        font-size: .68rem;
    }


    /* Summary */

    .details-summary-card {
        padding: 1.1rem;
    }

    .details-summary-image {
        width: 65px;
        height: 65px;
        flex-basis: 65px;
    }

    .details-summary-service-info h2 {
        font-size: .92rem;
    }

    .details-summary-item-info strong {
        font-size: .78rem;
    }


    .details-summary-appointment {
        grid-template-columns: 1fr;
    }


    /* CTA */

    .details-continue {
        min-height: 48px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .booking-details-header {
        margin-top: 2rem;
    }

        .booking-details-header h1 {
            font-size: 1.95rem;
        }

    .details-input-wrap {
        height: 50px;
    }

    .details-summary-card {
        padding: 1rem;
    }
}
