/* Quote Request Modal Styles */
.quote-request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.quote-request-modal.active {
    display: block;
}

.quote-request-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.quote-request-modal__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0d3459;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    padding: 30px;
}

.quote-request-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quote-request-modal__header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.quote-request-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    width: 30px;
    height: 30px;
    line-height: 1;
    padding: 0;
}

.quote-request-modal__close:hover {
    color: #e0e0e0;
}

.quote-request-modal .have-questions__form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 34px;
    padding: 20px 0 0;
    border-top: 1px solid #ffffff;
}

@media (max-width: 992px) {
    .quote-request-modal .have-questions__form {
        padding: 32px 0 0;
        gap: 20px;
    }
}

.quote-request-modal .have-questions__form-inputs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    gap: 10px;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 1200px) {
    .quote-request-modal .have-questions__form-inputs {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-flex: 1;
        -ms-flex: 1 1 50%;
        flex: 1 1 50%;
    }
}

.quote-request-modal .have-questions__form-inputs-name, 
.quote-request-modal .have-questions__form-inputs-phone {
    display: inline-block;
    padding: 19px 20px !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 16px;
    line-height: 125%;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    outline: none;
    background-color: rgba(255, 255, 255, 0);
    max-height: 60px;
}

.quote-request-modal .have-questions__form-inputs-name::-webkit-input-placeholder,
.quote-request-modal .have-questions__form-inputs-phone::-webkit-input-placeholder {
    color: #fff;
}
.quote-request-modal .have-questions__form-inputs-name::-moz-placeholder,
.quote-request-modal .have-questions__form-inputs-phone::-moz-placeholder {
    color: #fff;
}
.quote-request-modal .have-questions__form-inputs-name:-ms-input-placeholder,
.quote-request-modal .have-questions__form-inputs-phone:-ms-input-placeholder {
    color: #fff;
}
.quote-request-modal .have-questions__form-inputs-name::-ms-input-placeholder,
.quote-request-modal .have-questions__form-inputs-phone::-ms-input-placeholder {
    color: #fff;
}
.quote-request-modal .have-questions__form-inputs-name::placeholder,
.quote-request-modal .have-questions__form-inputs-phone::placeholder {
    color: #fff;
}

.quote-request-modal .have-questions__form-inputs-name {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 250px;
    flex: 1 1 250px;
    width: 100%;
}

@media (max-width: 1200px) {
    .quote-request-modal .have-questions__form-inputs-name {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }
}

@media (max-width: 992px) {
    .quote-request-modal .have-questions__form-inputs-name {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
    }
}

.quote-request-modal .have-questions__form-inputs-phone {
    width: 100%;
}

.quote-request-modal .have-questions__form-inputs-phone-wrapper {
    -webkit-box-flex: 1;
    -ms-flex: 1 1;
    flex: 1 1;
    width: 100%;
}

@media (max-width: 1200px) {
    .quote-request-modal .have-questions__form-inputs-phone-wrapper {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }
}

@media (max-width: 992px) {
    .quote-request-modal .have-questions__form-inputs-phone-wrapper {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
    }
}

.quote-request-modal .have-questions__form-submit {
    padding: 5px 0;
    width: 100%;
}

@media (max-width: 992px) {
    .quote-request-modal .have-questions__form-submit {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
    }
}

.quote-request-modal .have-questions__form-submit-button {
    padding: 17px 34px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    color: #4c81ff;
    border: none;
    border-radius: 50px;
    background-color: #ffffff;
    -webkit-transition-property: color, background-color;
    transition-property: color, background-color;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 992px) {
    .quote-request-modal .have-questions__form-submit-button {
        width: 100%;
    }
}

.quote-request-modal .have-questions__form-submit-button:hover {
    color: #ffffff;
    background-color: #4c81ff;
}

.quote-request-modal .have-questions__form-checkbox {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    margin: 10px 0 24px;
    width: 100%;
}

.quote-request-modal .have-questions__form-checkbox::before {
    content: "";
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0);
    -webkit-transition: background-color ease-out 0.2s;
    transition: background-color ease-out 0.2s;
    cursor: pointer;
}

.quote-request-modal .have-questions__form-checkbox:has(input:checked)::before {
    background: url(../images/icons/mdi_tick.svg) center/22px no-repeat;
    background-color: white;
}

.quote-request-modal .have-questions__form-checkbox-input {
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    opacity: 0;
}

.quote-request-modal .have-questions__form-checkbox-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 125%;
    color: #fff;
}

.quote-request-modal .have-questions__form-checkbox-text a {
    color: inherit;
    text-decoration: underline;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
}

.quote-request-modal .text-danger {
    color: #ff5252;
    font-size: 12px;
    margin-top: 5px;
}

.quote-request-modal .success-message {
    color: #ffffff;
    background-color: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
}

.quote-request-modal .error-message {
    color: #ffffff;
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    width: 100%;
}

/* Make the modal responsive on mobile */
@media (max-width: 576px) {
    .quote-request-modal__container {
        width: 90%;
        padding: 20px;
    }
    
    .quote-request-modal__header h3 {
        font-size: 20px;
    }
}
