/**
 * ==========================================================
 * PHL Framework
 * Public Online Reservation
 * ==========================================================
 *
 * File:
 *     assets/css/modules/online-reservation.css
 *
 * Purpose:
 *     Clean, simple buyer-facing reservation experience.
 *
 * @package PHL_Framework
 */


/* ==========================================================
   ROOT
========================================================== */

.phl-online-reservation {

    padding: 64px 20px 90px;

    background: #f7f8f6;

    color: #26342c;

}


.phl-online-reservation-container {

    width: 100%;

    max-width: 980px;

    margin: 0 auto;

}


/* ==========================================================
   HEADER
========================================================== */

.phl-online-reservation-header {

    max-width: 760px;

    margin: 0 auto 42px;

    text-align: center;

}


.phl-online-eyebrow {

    display: inline-block;

    margin-bottom: 10px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    color: #6c806f;

}


.phl-online-reservation-header h1 {

    margin: 0 0 14px;

    font-size: clamp(
        32px,
        5vw,
        46px
    );

    line-height: 1.12;

    font-weight: 700;

}


.phl-online-reservation-header p {

    max-width: 680px;

    margin: 0 auto;

    font-size: 17px;

    line-height: 1.7;

    color: #68736c;

}


.phl-online-header-note {

    display: inline-flex;

    gap: 5px;

    flex-wrap: wrap;

    justify-content: center;

    margin-top: 22px;

    padding: 11px 16px;

    border-radius: 8px;

    background: #edf3ed;

    font-size: 13px;

    color: #526258;

}


.phl-online-header-note strong {

    font-weight: 700;

    color: #34483a;

}


/* ==========================================================
   FORM
========================================================== */

.phl-online-form {

    display: flex;

    flex-direction: column;

    gap: 22px;

}


/* ==========================================================
   CARD
========================================================== */

.phl-online-card {

    padding: 30px;

    border: 1px solid #e1e6e1;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 4px 18px rgba(
            30,
            45,
            35,
            0.05
        );

}


/* ==========================================================
   STEP HEADING
========================================================== */

.phl-online-step-heading {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 26px;

}


.phl-online-step-number {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: #e9f0e9;

    color: #49604e;

    font-size: 13px;

    font-weight: 700;

}


.phl-online-step-heading small {

    display: block;

    margin-bottom: 4px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    color: #7a877e;

}


.phl-online-step-heading h2 {

    margin: 0;

    font-size: 23px;

    line-height: 1.25;

    color: #26342c;

}


/* ==========================================================
   INTRO
========================================================== */

.phl-online-intro {

    margin: -8px 0 24px;

    color: #68736c;

    font-size: 15px;

    line-height: 1.6;

}


/* ==========================================================
   FIELDS
========================================================== */

.phl-online-fields {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 20px;

}


.phl-online-field {

    min-width: 0;

}


.phl-online-field-full {

    grid-column: 1 / -1;

}


.phl-online-field label {

    display: flex;

    align-items: baseline;

    gap: 7px;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #34443a;

}


.phl-online-field label span {

    font-size: 12px;

    font-weight: 400;

    color: #8a948d;

}


.phl-online-field input,
.phl-online-field select,
.phl-online-field textarea {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #d6ddd7;

    border-radius: 8px;

    background: #ffffff;

    color: #26342c;

    font-family: inherit;

    font-size: 15px;

    line-height: 1.4;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;

}


.phl-online-field input,
.phl-online-field select {

    min-height: 48px;

    padding: 11px 13px;

}


.phl-online-field textarea {

    min-height: 105px;

    padding: 12px 13px;

    resize: vertical;

}


.phl-online-field input:focus,
.phl-online-field select:focus,
.phl-online-field textarea:focus {

    outline: none;

    border-color: #718a76;

    box-shadow:
        0 0 0 3px rgba(
            113,
            138,
            118,
            0.12
        );

}


.phl-online-field input::placeholder,
.phl-online-field textarea::placeholder {

    color: #a0aaa3;

}


.phl-online-field select:disabled {

    background: #f2f4f2;

    color: #9aa39d;

    cursor: not-allowed;

}


/* ==========================================================
   FIELD HELP
========================================================== */

.phl-online-field-help {

    display: block;

    margin-top: 7px;

    font-size: 12px;

    line-height: 1.5;

    color: #7d8981;

}


/* ==========================================================
   PROPERTY SUMMARY
========================================================== */

.phl-online-property-summary {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 1px;

    margin-top: 24px;

    overflow: hidden;

    border: 1px solid #dfe6df;

    border-radius: 10px;

    background: #dfe6df;

}


.phl-online-property-summary > div {

    padding: 15px;

    background: #f8faf8;

}


.phl-online-property-summary small,
.phl-online-review small {

    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #829087;

}


.phl-online-property-summary strong,
.phl-online-review strong {

    display: block;

    font-size: 14px;

    line-height: 1.4;

    color: #304137;

}


/* ==========================================================
   REVIEW
========================================================== */

.phl-online-review {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 1px;

    overflow: hidden;

    border: 1px solid #e0e5e0;

    border-radius: 10px;

    background: #e0e5e0;

}


.phl-online-review > div {

    min-height: 68px;

    padding: 14px 16px;

    background: #f8faf8;

}


.phl-online-review > p {

    grid-column: 1 / -1;

    margin: 0;

    padding: 18px;

    background: #f8faf8;

    color: #7b867e;

    font-size: 14px;

}


/* ==========================================================
   CONFIRMATION
========================================================== */

.phl-online-confirmation {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-top: 24px;

    cursor: pointer;

    font-size: 13px;

    line-height: 1.6;

    color: #59665d;

}


.phl-online-confirmation input {

    flex: 0 0 auto;

    width: 18px;

    height: 18px;

    margin: 2px 0 0;

    accent-color: #536b58;

}


/* ==========================================================
   SUBMIT
========================================================== */

.phl-online-submit {

    display: block;

    width: 100%;

    min-height: 52px;

    margin-top: 24px;

    padding: 13px 20px;

    border: 0;

    border-radius: 8px;

    background: #536b58;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease,
        background-color .2s ease;

}


.phl-online-submit:hover {

    background: #435948;

}


.phl-online-submit:active {

    transform: translateY(1px);

}


.phl-online-submit:disabled {

    opacity: .55;

    cursor: not-allowed;

}


.phl-online-submit-note {

    margin: 12px 0 0;

    text-align: center;

    font-size: 12px;

    color: #879188;

}


/* ==========================================================
   HIDDEN
========================================================== */

[hidden] {

    display: none !important;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 768px) {

    .phl-online-reservation {

        padding: 45px 16px 65px;

    }


    .phl-online-card {

        padding: 23px 20px;

    }


    .phl-online-fields {

        grid-template-columns: 1fr;

        gap: 17px;

    }


    .phl-online-field-full {

        grid-column: auto;

    }


    .phl-online-property-summary {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 480px) {

    .phl-online-reservation {

        padding:
            32px
            12px
            50px;

    }


    .phl-online-reservation-header {

        margin-bottom: 28px;

    }


    .phl-online-reservation-header h1 {

        font-size: 30px;

    }


    .phl-online-reservation-header p {

        font-size: 15px;

    }


    .phl-online-header-note {

        display: block;

        line-height: 1.6;

    }


    .phl-online-card {

        padding:
            20px
            16px;

        border-radius: 11px;

    }


    .phl-online-step-heading {

        gap: 12px;

        margin-bottom: 21px;

    }


    .phl-online-step-number {

        flex-basis: 36px;

        width: 36px;

        height: 36px;

        font-size: 11px;

    }


    .phl-online-step-heading h2 {

        font-size: 20px;

    }


    .phl-online-property-summary {

        grid-template-columns: 1fr;

    }


    .phl-online-review {

        grid-template-columns: 1fr;

    }


    .phl-online-review > div {

        min-height: auto;

    }

}