
/* ================================
   QUOTE MODAL
================================ */

.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    transition: opacity 0.3s ease,
                visibility 0.3s ease;
}

.quote-modal.active {
    visibility: visible;
    opacity: 1;
}


/* Overlay */

.quote-overlay {
    position: absolute;
    inset: 0;

    background: rgba(10, 20, 35, 0.55);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* Main Card */

.quote-form-card {
    position: relative;
    z-index: 2;

    width: 390px;
    max-width: calc(100% - 30px);

    min-height: 560px;

    background: #f4f1ec;

    border-radius: 20px 20px 20px 20px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);

    overflow: hidden;

    transform: translateY(25px) scale(0.97);

    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

.quote-modal.active .quote-form-card {
    transform: translateY(0) scale(1);
}


/* Top-right angled effect */

.quote-form-card::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 75px;
    height: 75px;

    background: #d9d4cc;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%
    );

    z-index: -1;
}


/* Content */

.quote-form-content {
    padding: 64px 36px 40px;
}


/* Heading */

.quote-form-content h2 {
    margin: 0;

    font-family: Arial, sans-serif;

    font-size: 31px;
    line-height: 0.98;

    font-weight: 700;

    color: #182f54;

    letter-spacing: -0.8px;
}


/* Heading line */

.quote-heading-line {
    position: relative;

    height: 30px;

    margin: 25px 0 5px;
}

.quote-heading-line::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 50%;

    height: 1px;

    background: #d8d5d0;
}

.quote-heading-line span {
    position: absolute;

    left: 22px;

    top: calc(50% - 1px);

    width: 36px;
    height: 3px;

    background: #182f54;
}


/* Fields */

.quote-field {
    margin-bottom: 23px;
}

.quote-field label {
    display: block;

    margin-bottom: 9px;

    font-family: Arial, sans-serif;

    font-size: 13px;

    color: #263c5b;

    letter-spacing: 0.2px;
}


/* Inputs */

.quote-field input,
.quote-field select {
    width: 100%;
    height: 40px;

    padding: 0 18px;

    border: 1px solid #c4c8cc;

    border-radius: 7px;

    background: rgba(255,255,255,0.08);

    color: #243c5e;

    font-family: Arial, sans-serif;

    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.quote-field input::placeholder {
    color: #243c5e;
    opacity: 1;
}

.quote-field input:focus,
.quote-field select:focus {
    border-color: #182f54;

    box-shadow: 0 0 0 2px rgba(24,47,84,0.08);
}


/* Select */

.quote-select-wrapper {
    position: relative;
}

.quote-field select {
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    padding-right: 45px;
}

.quote-select-wrapper::after {
    content: "";

    position: absolute;

    right: 18px;
    top: 13px;

    width: 9px;
    height: 9px;

    border-right: 1.5px solid #ef3153;
    border-bottom: 1.5px solid #ef3153;

    transform: rotate(45deg);

    pointer-events: none;
}


/* Submit button */

.quote-submit {
    position: relative;

    display: flex;
    align-items: center;

    width: 202px;
    height: 43px;

    margin-top: 30px;

    padding: 0;

    border: 0;

    border-radius: 14px;

    background: #182f54;

    color: white;

    font-family: Arial, sans-serif;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    overflow: visible;

    transition: transform 0.2s ease,
                background 0.2s ease;
}

.quote-submit:hover {
    transform: translateY(-2px);
}


/* Button text */

.quote-submit span:first-child {
    padding-left: 19px;
}


/* Arrow circle */

.quote-arrow {
    position: absolute;

    right: -1px;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #f7f4ef;

    border: 3px solid #182f54;

    color: #182f54;

    font-size: 29px;
    font-weight: 300;

    line-height: 1;

    box-sizing: border-box;
}


/* Close button */

.quote-close {
    position: absolute;

    top: 14px;
    right: 17px;

    z-index: 10;

    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,0.45);

    color: #182f54;

    font-size: 24px;
    line-height: 30px;

    cursor: pointer;

    transition: background 0.2s ease,
                transform 0.2s ease;
}

.quote-close:hover {
    background: rgba(255,255,255,0.8);

    transform: rotate(90deg);
}


/* ================================
   MOBILE
================================ */

@media (max-width: 480px) {

    .quote-form-card {
        width: calc(100% - 24px);

        min-height: auto;
    }

    .quote-form-content {
        padding: 48px 27px 32px;
    }

    .quote-form-content h2 {
        font-size: 27px;
    }

    .quote-submit {
        width: 200px;
    }
}
