:root {
    --clr-orange: #f27533;
    --clr-orange-dark: #f0442e;
    --clr-navy-dark: #080d12;
    --clr-navy-mid: #121a26;
    --clr-white: #ffffff;
    --clr-gray-light: #cfd3d8;
    --clr-gray-mid: #9aa1ab;

    --font-display: "Space Grotesk", sans-serif;
    --font-accent: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", sans-serif;

    --header-height: 74px;

    --site-content-width: 84%;
    --site-content-max-width: 1600px;
    --site-content-edge: max(calc((100vw - var(--site-content-max-width)) / 2),
            8vw);
}









/* =========================================================
   TEST RIDE MODAL
========================================================= */

#testRideModal .reservation-dialog {
    max-height: 90vh;
    overflow-y: auto;
}


/* Date input styling */
#testRideDate {
    color-scheme: dark;
}


/* Make date/time row behave exactly like other rows */
#testRideModal .reservation-form-row {
    width: 100%;
}


/* Mobile */
@media (max-width: 767px) {

    #testRideModal .reservation-dialog {
        width: calc(100% - 30px);
        max-height: 90vh;
    }

}

/* =========================================================
   TEST RIDE SUCCESS STATE
========================================================= */

#testRideSuccessState {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#testRideFormState {
    display: block;
}













/*------------------------------reservation form modal and success message------------------------------------------------------------------------- */

.reservation-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    z-index: 5000;

    visibility: hidden;
    pointer-events: none;
}

.reservation-modal.active {
    visibility: visible;
    pointer-events: auto;
}


.reservation-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* No transition */
    opacity: 1;
}



.reservation-dialog {
    position: relative;

    width: 100%;
    max-width: 550px;

    background: #171918;

    border: 1px solid rgba(255, 255, 255, 0.20);

    z-index: 1;

    transform: translateY(18px) scale(0.98);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

    opacity: 0;
}

.reservation-modal.active .reservation-dialog {
    transform: translateY(0) scale(1);

    opacity: 1;
}



.reservation-modal-inner {
    padding: 43px 41px 41px;
}



.reservation-close {
    position: absolute;

    top: 20px;
    right: 23px;

    width: 25px;
    height: 25px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #aeb1b0;

    background: transparent;

    font-family: Arial, sans-serif;

    font-size: 30px;
    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    z-index: 2;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.reservation-close:hover {
    color: #ffffff;

    transform: rotate(90deg);
}



.reservation-eyebrow {
    margin-bottom: 24px;

    color: #f0442e;

    font-family: var(--font-body);

    font-size: 0.54rem;

    font-weight: 800;

    letter-spacing: 1.8px;

    line-height: 1;
}



.reservation-title {
    margin: 0 0 30px;

    color: #eeeeec;

    font-family: var(--font-display);

    font-size: clamp(1.8rem, 3vw, 2rem);

    font-weight: 600;

    line-height: 1.12;

    letter-spacing: -0.8px;
}



#reservationForm {
    width: 100%;
}

.reservation-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-bottom: 15px;
}



.reservation-field {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.reservation-field-full {
    margin-bottom: 15px;
}

.reservation-field label {
    margin-bottom: 8px;

    color: #7e8381;

    font-family: var(--font-body);

    font-size: 0.51rem;

    font-weight: 700;

    letter-spacing: 1px;

    line-height: 1;
}



.reservation-field input,
.reservation-field select {
    width: 100%;

    height: 44px;

    padding: 0 16px;

    border: 1px solid #3a3d3c;

    border-radius: 0;

    outline: none;

    background: #222524;

    color: #e8e9e7;

    font-family: var(--font-body);

    font-size: 0.67rem;

    font-weight: 500;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.reservation-field input:focus,
.reservation-field select:focus {
    border-color: #666b68;

    background: #252827;
}


/* Select */

.reservation-field select {
    cursor: pointer;

    appearance: auto;

    -webkit-appearance: auto;
}

.reservation-field select option {
    background: #222524;

    color: #ffffff;
}


.reservation-submit {
    width: 100%;

    height: 45px;

    margin-top: 0;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 30px;

    border: none;

    border-radius: 0;

    background: #f0442e;

    color: #ffffff;

    font-family: var(--font-body);

    font-size: 0.57rem;

    font-weight: 800;

    letter-spacing: 0.65px;

    cursor: pointer;

    transition:
        background-color 0.2s ease;
}

.reservation-submit:hover {
    background: #e63d29;
}

.reservation-submit-arrow {
    font-size: 1.05rem;

    line-height: 1;

    transition:
        transform 0.2s ease;
}

.reservation-submit:hover .reservation-submit-arrow {
    transform: translateX(4px);
}


@media (max-width: 600px) {

    .reservation-modal {
        padding: 16px;
    }

    .reservation-dialog {
        max-height: calc(100vh - 32px);

        overflow-y: auto;
    }

    .reservation-modal-inner {
        padding: 36px 24px 28px;
    }

    .reservation-close {
        top: 15px;
        right: 17px;
    }

    .reservation-eyebrow {
        margin-bottom: 18px;
    }

    .reservation-title {
        font-size: 1.7rem;

        padding-right: 25px;

        margin-bottom: 26px;
    }

    .reservation-form-row {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 15px;
    }

    .reservation-field input,
    .reservation-field select {
        height: 46px;
    }

    .reservation-submit {
        height: 48px;
    }
}


.reservation-success-state {
    display: none;

    min-height: 365px;

    padding: 74px 35px 50px;

    text-align: center;

    align-items: center;
    flex-direction: column;
}



.reservation-dialog.success-mode .reservation-form-state {
    display: none;
}

.reservation-dialog.success-mode .reservation-close {
    display: none;
}

.reservation-dialog.success-mode .reservation-success-state {
    display: flex;
}



.success-check {
    width: 51px;
    height: 51px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 50%;

    background: #285d42;

    color: #83d9a9;
}

.success-check span {
    font-family: Arial, sans-serif;

    font-size: 25px;
    font-weight: 400;

    line-height: 1;
}



.success-eyebrow {
    margin-bottom: 24px;

    color: #f0442e;

    font-family: var(--font-body);

    font-size: 0.53rem;

    font-weight: 800;

    letter-spacing: 1.7px;

    line-height: 1;
}



.success-title {
    margin: 0 0 16px;

    color: #eeeeec;

    font-family: var(--font-display);

    font-size: clamp(1.8rem, 3vw, 2rem);

    font-weight: 600;

    line-height: 1.12;

    letter-spacing: -0.8px;
}


.success-description {
    margin: 0;

    color: #999d9c;

    font-family: var(--font-body);

    font-size: 0.72rem;

    font-weight: 400;

    line-height: 1.5;
}



.success-back {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    margin-top: 25px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #f0442e;

    font-family: var(--font-body);

    font-size: 0.54rem;

    font-weight: 800;

    letter-spacing: 0.8px;

    cursor: pointer;
}

.success-back-arrow {
    font-size: 0.95rem;

    line-height: 1;

    transition: transform 0.2s ease;
}

.success-back:hover .success-back-arrow {
    transform: translateX(4px);
}



@media (max-width: 600px) {

    .reservation-success-state {
        min-height: 350px;

        padding: 65px 25px 40px;
    }

    .success-check {
        width: 48px;
        height: 48px;

        margin-bottom: 21px;
    }

    .success-title {
        font-size: 1.7rem;
    }

    .success-description {
        max-width: 260px;
    }
}

/*-------------------------------------------------------------------reservation form modal and succesmessage------------------------------------------------------------ */









/*------------------------------------------------------------ REVIEW SUBMISSION MODAL ------------------------------------------------------------------------- */

.review-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    visibility: hidden;
    opacity: 0;

    transition: opacity 0.2s ease,
        visibility 0.2s ease;
}


.review-modal.active {
    visibility: visible;

    opacity: 1;
}


.review-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.88);

    backdrop-filter: blur(8px);
}


.review-modal-dialog {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 650px;

    max-height: calc(100vh - 50px);

    overflow-y: auto;

    padding: 45px;

    background: #151818;

    border: 1px solid #3a3e3e;

    transform: translateY(12px);

    transition: transform 0.25s ease;
}


.review-modal.active .review-modal-dialog {
    transform: translateY(0);
}


/* Close */

.review-modal-close {
    position: absolute;

    top: 20px;
    right: 24px;

    padding: 0;

    background: transparent;

    border: 0;

    color: #a8acad;

    font-size: 29px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;
}


.review-modal-close:hover {
    color: #ffffff;
}


/* Heading */

.modal-eyebrow {
    margin-bottom: 23px;

    color: #f0442e;

    font-size: 0.55rem;

    font-weight: 800;

    letter-spacing: 1.7px;
}


.review-modal-dialog h2 {
    margin: 0 0 32px;

    color: #eeeeeb;

    font-family: var(--font-display);

    font-size: clamp(2rem, 3vw, 2.7rem);

    font-weight: 500;

    letter-spacing: -1.5px;
}


/* Form */

.review-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


.review-field {
    display: flex;
    flex-direction: column;

    margin-bottom: 18px;
}


.review-field label {
    margin-bottom: 8px;

    color: #777e80;

    font-size: 0.5rem;

    font-weight: 700;

    letter-spacing: 1px;
}


.review-field input,
.review-field select,
.review-field textarea {
    width: 100%;

    padding: 13px 14px;

    background: #202323;

    border: 1px solid #3a3e3e;

    outline: none;

    color: #eeeeeb;

    font-family: inherit;

    font-size: 0.72rem;

    transition: border-color 0.2s ease;
}


.review-field textarea {
    resize: vertical;

    min-height: 110px;
}


.review-field input:focus,
.review-field select:focus,
.review-field textarea:focus {
    border-color: #f0442e;
}


.review-field select {
    appearance: auto;
}


.upload-help {
    margin-top: 7px;

    color: #5d6365;

    font-size: 0.48rem;
}


/* Submit */

.review-submit-btn {
    width: 100%;

    margin-top: 8px;

    padding: 16px 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: #f0442e;

    border: 0;

    color: #ffffff;

    font-size: 0.57rem;

    font-weight: 800;

    letter-spacing: 0.8px;

    cursor: pointer;
}


.review-submit-btn span {
    font-size: 1.1rem;
}

/*------------------------------------------------------------ REVIEW SUBMISSION MODAL ------------------------------------------------------------------------- */



/*------------------------------------------------------------ VIDEO MODAL MODAL ------------------------------------------------------------------------- */

.video-modal {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.video-modal.active {
    visibility: visible;

    opacity: 1;
}


.video-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.93);
}


.video-modal-content {
    position: relative;

    z-index: 2;

    width: min(1000px, 90vw);
}


.video-modal-content video {
    display: block;

    width: 100%;

    max-height: 80vh;

    background: #000;
}


.video-modal-close {
    position: absolute;

    top: -45px;
    right: 0;

    padding: 0;

    background: transparent;

    border: 0;

    color: #eeeeeb;

    font-size: 30px;

    cursor: pointer;
}

/*------------------------------------------------------------ VIDEO MODAL MODAL ------------------------------------------------------------------------- */
