/* =========================================================
   GET QUOTE MODAL
========================================================= */

.quote-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}


.quote-modal.active {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   BACKDROP
========================================================= */

.quote-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(3, 5, 5, 0.82);

    backdrop-filter: blur(12px);
}


/* =========================================================
   CONTAINER
========================================================= */

.quote-modal-container {

    position: relative;

    width: min(1050px, 95vw);

    max-height: 90vh;

    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #151515,
            #090909
        );

    border:
        1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 40px 100px rgba(0,0,0,0.65);

    transform:
        translateY(30px)
        scale(0.97);

    transition:
        transform 0.5s
        cubic-bezier(.77,0,.18,1);
}


.quote-modal.active
.quote-modal-container {

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.quote-modal-content {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    min-height: 650px;

    padding: 55px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(215,168,79,0.14),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #171717,
            #0b0b0b
        );
}


/* technical grid */

.quote-modal-content::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    opacity: .4;

    pointer-events: none;
}


/* =========================================================
   LABEL
========================================================= */

.quote-modal-label {

    position: relative;

    z-index: 2;

    margin-bottom: 25px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 4px;

    color: #d8aa45;
}


/* =========================================================
   TITLE
========================================================= */

.quote-modal-content h2 {

    position: relative;

    z-index: 2;

    margin: 0;

    font-family: var(--font-heading);

    font-size:
        clamp(42px, 5vw, 70px);

    font-weight: 500;

    line-height: .92;

    letter-spacing: -3px;

    color: white;
}


.quote-modal-content h2 span {

    color: #d8aa45;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.quote-modal-content p {

    position: relative;

    z-index: 2;

    max-width: 380px;

    margin: 28px 0 0;

    font-size: 13px;

    line-height: 1.8;

    color:
        rgba(255,255,255,.45);
}


/* =========================================================
   NOTE
========================================================= */

.quote-modal-note {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 35px;
}


.quote-modal-note span {

    width: 28px;

    height: 1px;

    background: #d8aa45;
}


.quote-modal-note small {

    font-size: 7px;

    letter-spacing: 3px;

    color:
        rgba(255,255,255,.4);
}


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

.quote-modal-form {

    padding: 50px;

    overflow-y: auto;

    background:
        rgba(255,255,255,.015);
}


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

.quote-form-heading span {

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 4px;

    color: #d8aa45;
}


.quote-form-heading p {

    margin:
        8px 0 35px;

    font-size: 12px;

    color:
        rgba(255,255,255,.4);
}


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

.quote-field {

    margin-bottom: 22px;
}


.quote-field label {

    display: block;

    margin-bottom: 8px;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 2.5px;

    color:
        rgba(255,255,255,.4);
}


.quote-field input,
.quote-field textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 14px 0;

    border: 0;

    border-bottom:
        1px solid
        rgba(255,255,255,.14);

    outline: none;

    background: transparent;

    font-family: var(--font-main);

    font-size: 13px;

    color: white;

    transition:
        border-color .3s ease;
}


.quote-field textarea {

    resize: vertical;

    min-height: 90px;
}


.quote-field input::placeholder,
.quote-field textarea::placeholder {

    color:
        rgba(255,255,255,.22);
}


.quote-field input:focus,
.quote-field textarea:focus {

    border-color: #d8aa45;
}


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

.quote-submit {

    width: 100%;

    height: 55px;

    margin-top: 10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 20px;

    border: 1px solid #d8aa45;

    background: #d8aa45;

    color: #0b0b0b;

    cursor: pointer;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2.5px;

    transition:
        all .35s ease;
}


.quote-submit b {

    font-size: 19px;

    font-weight: 400;

    transition:
        transform .35s ease;
}


.quote-submit:hover {

    background: #e6c27d;

    border-color: #e6c27d;

    transform:
        translateY(-2px);
}


.quote-submit:hover b {

    transform:
        translate(4px,-4px);
}


/* =========================================================
   CLOSE
========================================================= */

.quote-modal-close {

    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 20;

    width: 38px;
    height: 38px;

    border:
        1px solid
        rgba(255,255,255,.15);

    background:
        rgba(0,0,0,.35);

    color: white;

    font-size: 23px;

    line-height: 1;

    cursor: pointer;

    transition:
        all .3s ease;
}


.quote-modal-close:hover {

    background: #d8aa45;

    border-color: #d8aa45;

    color: #080808;

    transform:
        rotate(90deg);
}


/* =========================================================
   BODY LOCK
========================================================= */

body.quote-modal-open {

    overflow: hidden;
}


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

@media (max-width: 800px) {

    .quote-modal-container {

        grid-template-columns: 1fr;

        max-height: 92vh;

        overflow-y: auto;
    }


    .quote-modal-content {

        min-height: auto;

        padding: 45px 30px 35px;
    }


    .quote-modal-content h2 {

        font-size: 44px;
    }


    .quote-modal-form {

        padding: 35px 30px 40px;
    }

}


@media (max-width: 480px) {

    .quote-modal {

        padding: 12px;
    }


    .quote-modal-content {

        padding: 40px 24px 30px;
    }


    .quote-modal-form {

        padding: 30px 24px;
    }


    .quote-modal-content h2 {

        font-size: 38px;

        letter-spacing: -2px;
    }

}



/* =========================================================
   GET QUOTE MODAL — MAIN LAYOUT
========================================================= */

.quote-modal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

    width: min(1100px, 90vw);
    height: min(720px, 90vh);

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background: #0b0b0b;
}
/* =========================================================
   LEFT IMAGE PANEL
========================================================= */

.quote-modal-left {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background: #0b0b0b;
}


/* =========================================================
   IMAGE WRAPPER
========================================================= */

.quote-modal-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 0;
}


/* =========================================================
   ACTUAL IMAGE
========================================================= */

.quote-modal-image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transform: scale(1.02);

    opacity: 1;

    transition:
        transform 1.2s cubic-bezier(.16, 1, .3, 1),
        opacity .5s ease;
}


/* =========================================================
   DARK IMAGE OVERLAY
========================================================= */

.quote-modal-left::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.08) 45%,
            rgba(0, 0, 0, 0.70) 100%
        );
}


/* =========================================================
   SUBTLE VIGNETTE
========================================================= */

.quote-modal-left::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            transparent 35%,
            rgba(0, 0, 0, 0.30) 100%
        );
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.quote-modal-left-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    width: 100%;

    padding: 42px;

    display: flex;
    flex-direction: column;

    justify-content: flex-end;

    box-sizing: border-box;
}


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

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

.quote-modal-form {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    box-sizing: border-box;

    overflow-x: hidden;
    overflow-y: hidden;

    background: #0b0b0b;
}




/* =========================================================
   GET QUOTE MODAL — RESPONSIVE
========================================================= */


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 900px) {

    .quote-modal-container {
        width: min(760px, 94vw);

        height: min(680px, 92vh);

        grid-template-columns:
            42% 58%;
    }


    .quote-modal-left-content {
        padding: 28px;
    }


    .quote-modal-form {
        padding-right: 0;
    }

}


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

@media (max-width: 700px) {

    .quote-modal-container {

        width: calc(100vw - 24px);

        height: calc(100vh - 24px);

        max-height: none;

        grid-template-columns:
            38% 62%;

        border: 1px solid rgba(255,255,255,.12);

        overflow: hidden;
    }


    /* -----------------------------------------------------
       LEFT IMAGE
    ----------------------------------------------------- */

    .quote-modal-left {

        min-width: 0;

        height: 100%;

    }


    .quote-modal-image img {

        object-position: center;

        transform: scale(1.02);

    }


    /* -----------------------------------------------------
       LEFT CONTENT
    ----------------------------------------------------- */

    .quote-modal-left-content {

        padding: 22px 16px;

    }


    .quote-modal-left-content .quote-modal-label {

        font-size: 7px;

        letter-spacing: 3px;

    }


    .quote-modal-left-content h2 {

        font-size: clamp(26px, 7vw, 42px);

        line-height: .95;

        letter-spacing: -1.5px;

    }


    .quote-modal-left-content p {

        font-size: 9px;

        line-height: 1.5;

        max-width: 100%;

    }


    .quote-modal-note {

        display: none;

    }


    /* -----------------------------------------------------
       FORM
    ----------------------------------------------------- */

    .quote-modal-form {

        width: 100%;

        height: 100%;

        min-width: 0;

        min-height: 0;

        overflow-x: hidden;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

    }


    .quote-modal-form::-webkit-scrollbar {

        display: none;

    }


    /* -----------------------------------------------------
       FORM INNER SPACING
    ----------------------------------------------------- */

    .quote-form-heading {

        padding-right: 8px;

    }


    .quote-field {

        margin-bottom: 18px;

    }


    .quote-field label {

        font-size: 7px;

        letter-spacing: 2.5px;

    }


    .quote-field input,
    .quote-field textarea {

        width: 100%;

        min-width: 0;

        box-sizing: border-box;

        font-size: 12px;

    }


    .quote-field textarea {

        min-height: 80px;

    }


    .quote-submit {

        width: 100%;

        min-height: 48px;

    }

}


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

@media (max-width: 520px) {

    .quote-modal-container {

        width: calc(100vw - 16px);

        height: calc(100vh - 16px);

        grid-template-columns:
            34% 66%;

        border-radius: 6px;

    }


    .quote-modal-left-content {

        padding: 18px 12px;

    }


    .quote-modal-left-content h2 {

        font-size: 27px;

        line-height: .94;

        letter-spacing: -1.2px;

    }


    .quote-modal-left-content p {

        font-size: 8px;

    }


    .quote-modal-form {

        padding-left: 14px;

        padding-right: 14px;

    }


    .quote-field {

        margin-bottom: 16px;

    }


    .quote-field input,
    .quote-field textarea {

        font-size: 11px;

    }


    .quote-submit {

        min-height: 44px;

        font-size: 8px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .quote-modal-container {

        width: calc(100vw - 12px);

        height: calc(100vh - 12px);

        grid-template-columns:
            30% 70%;

    }


    .quote-modal-left-content {

        padding: 16px 9px;

    }


    .quote-modal-left-content .quote-modal-label {

        font-size: 6px;

        letter-spacing: 2px;

    }


    .quote-modal-left-content h2 {

        font-size: 23px;

        line-height: .95;

        letter-spacing: -1px;

    }


    .quote-modal-left-content p {

        font-size: 7px;

        line-height: 1.45;

    }


    .quote-modal-form {

        padding-left: 12px;

        padding-right: 12px;

    }


    .quote-form-heading span {

        font-size: 8px;

        letter-spacing: 2.5px;

    }


    .quote-form-heading p {

        font-size: 9px;

        line-height: 1.4;

    }


    .quote-field {

        margin-bottom: 14px;

    }


    .quote-field label {

        font-size: 6px;

        letter-spacing: 2px;

    }


    .quote-field input,
    .quote-field textarea {

        font-size: 10px;

    }


    .quote-field textarea {

        min-height: 65px;

    }


    .quote-submit {

        min-height: 42px;

    }

}


/* =========================================================
   EXTRA SMALL PHONES
========================================================= */

@media (max-width: 340px) {

    .quote-modal-container {

        width: calc(100vw - 8px);

        height: calc(100vh - 8px);

        grid-template-columns:
            28% 72%;

    }


    .quote-modal-left-content {

        padding: 14px 7px;

    }


    .quote-modal-left-content h2 {

        font-size: 20px;

    }


    .quote-modal-left-content p {

        font-size: 6.5px;

    }


    .quote-modal-form {

        padding-left: 10px;

        padding-right: 10px;

    }


    .quote-field input,
    .quote-field textarea {

        font-size: 9px;

    }

}


@media (max-height: 650px) and (max-width: 700px) {

    .quote-modal-container {

        height: calc(100vh - 12px);

    }


    .quote-modal-form {

        overflow-y: auto;

        scrollbar-width: none;

    }


    .quote-modal-form::-webkit-scrollbar {

        display: none;

    }

}



/* =========================================================
   MOBILE — HIDE LEFT IMAGE PANEL
========================================================= */

@media (max-width: 700px) {

    .quote-modal-container {
        display: block;

        width: calc(100vw - 24px);
        height: calc(100vh - 24px);

        min-width: 0;
        min-height: 0;

        overflow: hidden;

        background: #0b0b0b;
    }


    /* -----------------------------------------------------
       HIDE IMAGE PANEL
    ----------------------------------------------------- */

    .quote-modal-left {
        display: none;
    }


    /* -----------------------------------------------------
       FULL WIDTH FORM
    ----------------------------------------------------- */

    .quote-modal-form {
        display: block;

        width: 100%;
        height: 100%;

        min-width: 0;
        min-height: 0;

        padding: 0 12px;

        overflow-x: hidden;
        overflow-y: auto;

        scrollbar-width: none;

        box-sizing: border-box;
    }


    .quote-modal-form::-webkit-scrollbar {
        display: none;
    }

}