
.wfq-overlay[hidden],
.wfq-errors[hidden] {
    display: none !important;
}

.wfq-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(7, 24, 40, .78);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.wfq-dialog {
    position: relative;
    background: #fff;
    color: #16283a;
    width: 100%;
    max-width: 510px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.3);
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

.wfq-dialog * {
    box-sizing: border-box;
}

.wfq-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #526477;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.wfq-heading {
    margin-bottom: 20px;
}

.wfq-tag {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 30px;
    background: #fff2d9;
    color: #a76b00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.wfq-heading h2 {
    color: #0e2c47;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 25px 10px 0;
}

.wfq-heading p {
    font-size: 14px;
    line-height: 1.6;
    color: #5b6d7d;
    margin: 0;
}

.wfq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wfq-field {
    margin-bottom: 13px;
}

.wfq-field label {
    display: block;
    color: #0e2c47;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.wfq-field label span {
    color: #7a8793;
    font-weight: 400;
}

.wfq-field input,
.wfq-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #fbfdfe;
    padding: 12px 13px;
    font-size: 14px;
    color: #16283a;
    font-family: inherit;
    outline: none;
}

.wfq-field input:focus,
.wfq-field textarea:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}

.wfq-field textarea {
    resize: vertical;
    min-height: 85px;
}

.wfq-captcha {
    margin: 12px 0 16px;
    overflow-x: auto;
}

.wfq-submit {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: #f5a623;
    color: #302000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.wfq-submit:hover {
    background: #e69712;
}

.wfq-privacy {
    text-align: center;
    color: #72808d;
    font-size: 12px;
    margin: 10px 0 0;
}

.wfq-whatsapp {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #0e2c47;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.wfq-errors {
    padding: 11px;
    margin-bottom: 15px;
    background: #fff0ee;
    border: 1px solid #e8b5ae;
    color: #a5342a;
    border-radius: 8px;
    font-size: 13px;
}

.wfq-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .wfq-dialog {
        padding: 22px 18px;
        max-height: 88vh;
        max-height: 88dvh;
    }

    .wfq-heading h2 {
        font-size: 20px;
    }

    .wfq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
/* FINAL DESKTOP POPUP LAYOUT */
@media (min-width: 992px) {

    #wfQuotePopup .wfq-dialog {
        width: 850px;
        max-width: calc(100vw - 32px);
        max-height: calc(100dvh - 24px);
        padding: 18px 28px;
        overflow-y: auto;
    }

    #wfQuotePopup .wfq-heading {
        margin-bottom: 12px;
    }

    #wfQuotePopup .wfq-heading h2 {
        font-size: 24px;
        line-height: 1.2;
        margin: 0 30px 5px 0;
    }

    #wfQuotePopup .wfq-heading p {
        font-size: 13px;
        line-height: 1.4;
        margin: 0;
    }

    #wfQuotePopup .wfq-grid {
        gap: 12px;
    }

    #wfQuotePopup .wfq-field {
        margin-bottom: 8px;
    }

    #wfQuotePopup .wfq-field label {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    #wfQuotePopup .wfq-field input {
        height: 38px;
        padding: 7px 12px;
        font-size: 13px;
    }

    #wfQuotePopup .wfq-field textarea {
        height: 58px;
        min-height: 58px;
        padding: 8px 12px;
        font-size: 13px;
    }

    #wfQuotePopup .wfq-captcha {
        margin: 5px 0 8px;
    }

    #wfQuotePopup .wfq-submit {
        padding: 10px 14px;
        font-size: 14px;
    }

    #wfQuotePopup .wfq-privacy {
        margin-top: 5px;
        font-size: 11px;
    }

    #wfQuotePopup .wfq-whatsapp {
        margin-top: 6px;
        font-size: 12px;
    }
}
