body.davo-quote-modal-open {
    overflow: hidden;
}

.davo-quote-modal {
    --mannlee-orange: #f36633;
    --mannlee-orange-dark: #d95022;
    --mannlee-ink: #1e1c1f;
    --mannlee-muted: #666;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

.davo-quote-modal[hidden] {
    display: none;
}

.davo-quote-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 14, .68) !important;
    color: transparent !important;
    cursor: pointer;
}

.davo-quote-modal-backdrop:hover,
.davo-quote-modal-backdrop:focus,
.davo-quote-modal-backdrop:active {
    background: rgba(10, 12, 14, .68) !important;
    color: transparent !important;
}

.davo-quote-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fff 0%, #f6f7f4 100%);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .38);
    outline: 0;
}

.davo-quote-modal-content {
    padding: 34px 42px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: transparent;
    border-radius: 18px;
}

.davo-quote-modal-content h2,
.davo-quote-modal-content > .davo-quote-modal-intro {
    text-align: center;
}

.davo-product-inquiry-current {
    margin: -8px auto 20px;
    padding: 10px 14px;
    width: fit-content;
    max-width: 100%;
    border-left: 3px solid var(--mannlee-orange);
    background: rgba(243, 102, 51, .08);
    color: var(--mannlee-ink);
    font-size: 13px;
    line-height: 1.5;
}

.davo-product-inquiry-current span {
    font-weight: 600;
}

.davo-product-inquiry-current[hidden] {
    display: none;
}

.davo-quote-modal-content h2 {
    margin-bottom: 6px;
    font-size: clamp(26px, 2.4vw, 36px);
    letter-spacing: .2px;
}

.davo-quote-modal-content > p {
    margin-bottom: 22px;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-group {
    margin-bottom: 12px;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-input--label label {
    margin-bottom: 5px;
    font-size: 12px;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-form-control {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.davo-quote-modal-content .davo-mannlee-form textarea.ff-el-form-control {
    min-height: 74px;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(5),
.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(6),
.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(7) {
    width: 50%;
    clear: none;
    float: left;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(5),
.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(7) {
    padding-right: 10px;
    padding-left: 0;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(6) {
    padding-right: 0;
    padding-left: 10px;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(7) {
    clear: left;
}

.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(6) .ff-el-input--content::after,
.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(7) .ff-el-input--content::after,
.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(6) .ff-el-help-message,
.davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(7) .ff-el-help-message {
    display: none;
}

.davo-quote-modal-content .davo-mannlee-form .ff_file_upload_holder {
    min-height: 74px;
    padding: 14px 14px;
}

.davo-quote-modal-content .davo-mannlee-form .ff_submit_btn_wrapper {
    margin-top: 14px;
    text-align: center;
}

.davo-quote-modal-content .davo-mannlee-form .ff-btn-submit {
    min-width: 180px;
    min-height: 42px;
    border-radius: 999px !important;
}

.davo-quote-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent !important;
    color: var(--mannlee-ink) !important;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.davo-quote-modal-close:hover,
.davo-quote-modal-close:focus {
    background: transparent !important;
    color: var(--mannlee-orange) !important;
}

@media (max-width: 767px) {
    body.davo-quote-modal-open {
        overflow: hidden;
    }

    .davo-quote-modal {
        align-items: flex-start;
        padding: 18px;
        overflow: hidden;
    }

    .davo-quote-modal-dialog {
        max-height: calc(100vh - 36px);
        border-radius: 14px;
    }

    .davo-quote-modal-content {
        padding: 34px 22px 28px;
    }

    .davo-quote-modal-content .davo-mannlee-form .ff-el-group:nth-of-type(n) {
        width: 100%;
        float: none;
        clear: both;
        padding-left: 0;
        padding-right: 0;
    }
}
