/* ─── Airship WPForms Modal ─────────────────────────────────── */

/* Prevent body scroll when modal is open */
body.awfi-modal-open {
    overflow: hidden;
}

/* Overlay backdrop */
.awfi-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal box */
.awfi-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 36px 36px;
    box-sizing: border-box;
    animation: awfi-slide-in 0.25s ease;
}

@keyframes awfi-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.awfi-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    transition: color 0.2s;
}

.awfi-modal-close:hover {
    color: #111;
}

/* Header */
.awfi-modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.awfi-modal-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.awfi-modal-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* WPForms inside modal — ensure full width & clean look */
.awfi-modal-body .wpforms-container {
    max-width: 100% !important;
}

.awfi-modal-body .wpforms-form input,
.awfi-modal-body .wpforms-form select,
.awfi-modal-body .wpforms-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile */
@media (max-width: 540px) {
    .awfi-modal-box {
        padding: 30px 20px 24px;
    }

    .awfi-modal-header h2 {
        font-size: 18px;
    }
}