/* =========================================================
   QUOTE REQUEST MODAL
========================================================= */

/* =========================================================
   MODAL WRAPPER
========================================================= */

.quote-modal {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3, 10, 20, 0.78);

    z-index: 999999;

    overflow-y: auto;

    box-sizing: border-box;
}

.quote-modal.active {
    display: flex;
}


/* =========================================================
   MODAL BOX
========================================================= */

.quote-modal-box {
    position: relative;

    width: min(900px, 94vw);
    height: min(580px, 90vh);

    display: grid;
    grid-template-columns: 40% 60%;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);

    animation: quoteModalShow 0.3s ease;

    box-sizing: border-box;
}


/* =========================================================
   MODAL ANIMATION
========================================================= */

@keyframes quoteModalShow {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   LEFT IMAGE
========================================================= */

.quote-modal-image {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 0;

    overflow: hidden;

    background: #0b1626;
}


.quote-modal-image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.quote-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(5, 15, 30, 0.10) 0%,
            rgba(5, 15, 30, 0.30) 45%,
            rgba(5, 15, 30, 0.90) 100%
        );

    z-index: 1;
}


/* =========================================================
   IMAGE CONTENT
========================================================= */

.quote-image-content {
    position: absolute;

    left: 32px;
    right: 32px;
    bottom: 30px;

    z-index: 2;

    color: #ffffff;
}


.quote-image-content h2 {
    margin: 0 0 12px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 34px;
    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -0.8px;

    color: #ffffff;
}


.quote-image-content p {
    margin: 0;

    max-width: 340px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   RIGHT FORM AREA
========================================================= */

.quote-modal-form-area {
    position: relative;

    width: 100%;
    height: 100%;

    background: #ffffff;

    padding: 38px 40px 32px;

    overflow-y: auto;

    box-sizing: border-box;
}


/* Custom scrollbar */

.quote-modal-form-area::-webkit-scrollbar {
    width: 5px;
}

.quote-modal-form-area::-webkit-scrollbar-track {
    background: transparent;
}

.quote-modal-form-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.quote-modal-form-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.quote-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.06);

    color: #1e293b;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    z-index: 20;

    transition: all 0.25s ease;
}


.quote-modal-close:hover {
    background: #2563eb;

    color: #ffffff;

    transform: rotate(90deg);
}


/* =========================================================
   FORM HEADER
========================================================= */

.quote-form-header {
    margin-bottom: 22px;

    padding-right: 40px;
}


.quote-small-title {
    display: inline-block;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.quote-form-header h2 {
    margin: 0 0 10px;

    color: #0f172a;

    font-family: "Space Grotesk", sans-serif;

    font-size: 29px;
    line-height: 1.15;

    font-weight: 700;

    letter-spacing: -0.6px;
}


.quote-form-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.quote-form {
    width: 100%;
}


.quote-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 12px;
}


.quote-field {
    width: 100%;
}


.quote-field input,
.quote-field textarea {
    width: 100%;

    border: 1px solid #dbe2ea;

    background: #f8fafc;

    color: #0f172a;

    border-radius: 7px;

    outline: none;

    font-family: "Inter", sans-serif;

    font-size: 13px;

    box-sizing: border-box;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.quote-field input {
    height: 46px;

    padding: 0 13px;
}


.quote-field textarea {
    min-height: 90px;

    padding: 12px 13px;

    resize: vertical;
}


.quote-field input::placeholder,
.quote-field textarea::placeholder {
    color: #94a3b8;
}


.quote-field input:focus,
.quote-field textarea:focus {
    background: #ffffff;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* Full width field */

.quote-full-field {
    margin-bottom: 12px;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.quote-submit-btn {
    width: 100%;

    min-height: 48px;

    margin-top: 3px;
    margin-bottom: 3px;

    padding: 0 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 7px;

    background: #2563eb;

    color: #ffffff;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.25s ease;

    flex-shrink: 0;
}


.quote-submit-btn:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.25);
}


.quote-submit-btn:disabled {
    transform: none;

    box-shadow: none;

    cursor: not-allowed;
}


.quote-submit-arrow {
    font-size: 19px;

    line-height: 1;
}


/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.quote-success-message {
    margin-bottom: 15px;

    padding: 11px 13px;

    border-radius: 7px;

    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #047857;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.quote-error-message {
    margin-bottom: 15px;

    padding: 11px 13px;

    border-radius: 7px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;

    font-size: 12px;
}


.quote-error-message strong {
    display: block;

    margin-bottom: 5px;
}


.quote-error-message ul {
    margin: 0;

    padding-left: 18px;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.quote-modal-open {
    overflow: hidden;
}


/* =========================================================
   QUOTE OPEN BUTTON
========================================================= */

.quote-open-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 15px;

    background: #00b4d8;

    color: #ffffff;

    border: 1px solid #00b4d8;

    border-radius: 4px;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.2;

    cursor: pointer;

    transition: all 0.3s ease;
}


.quote-open-btn span {
    font-size: 15px;

    line-height: 1;

    transition: transform 0.3s ease;
}


.quote-open-btn:hover {
    background: transparent;

    color: #00b4d8;
}


.quote-open-btn:hover span {
    transform: translateX(3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .quote-modal {
        padding: 15px;

        align-items: center;
    }


    .quote-modal-box {
        width: min(650px, 96vw);

        height: auto;

        max-height: 92vh;

        grid-template-columns: 1fr;

        overflow-y: auto;
    }


    .quote-modal-image {
        width: 100%;

        height: 230px;

        min-height: 230px;
    }


    .quote-modal-form-area {
        width: 100%;

        height: auto;

        max-height: none;

        overflow: visible;

        padding: 30px 28px 35px;
    }


    .quote-image-content {
        left: 25px;

        right: 25px;

        bottom: 22px;
    }


    .quote-image-content h2 {
        font-size: 27px;
    }


    .quote-image-content p {
        font-size: 13px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .quote-modal {
        padding: 10px;

        align-items: center;
    }


    .quote-modal-box {
        width: 100%;

        max-height: 95vh;

        border-radius: 14px;

        margin: 0;

        overflow-y: auto;
    }


    .quote-modal-image {
        height: 190px;

        min-height: 190px;
    }


    .quote-image-content {
        left: 20px;

        right: 20px;

        bottom: 18px;
    }


    .quote-image-content h2 {
        font-size: 23px;

        margin-bottom: 7px;
    }


    .quote-image-content p {
        font-size: 12px;

        line-height: 1.45;
    }


    .quote-modal-form-area {
        padding: 25px 18px 30px;

        overflow: visible;
    }


    .quote-modal-close {
        top: 9px;

        right: 9px;

        width: 35px;

        height: 35px;

        font-size: 23px;
    }


    .quote-form-header {
        padding-right: 30px;

        margin-bottom: 18px;
    }


    .quote-form-header h2 {
        font-size: 24px;
    }


    .quote-form-header p {
        font-size: 12px;
    }


    .quote-form-row {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-bottom: 10px;
    }


    .quote-full-field {
        margin-bottom: 10px;
    }


    .quote-field input {
        height: 46px;
    }


    .quote-field textarea {
        min-height: 90px;
    }


    .quote-submit-btn {
        min-height: 49px;

        margin-top: 3px;

        margin-bottom: 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .quote-modal-image {
        height: 165px;

        min-height: 165px;
    }


    .quote-image-content h2 {
        font-size: 20px;
    }


    .quote-image-content p {
        font-size: 11px;
    }


    .quote-modal-form-area {
        padding: 23px 15px 28px;
    }


    .quote-form-header h2 {
        font-size: 22px;
    }


    .quote-field input {
        height: 44px;
    }


    .quote-field textarea {
        min-height: 82px;
    }

}
