/* =====================================================
   BROCHURE DOWNLOAD POPUP
   WordPress + Contact Form 7
===================================================== */

/* POPUP MAIN CONTAINER */

.brochure-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brochure-modal.active {
    display: flex;
}

body.brochure-popup-open {
    overflow: hidden;
}


/* BACKGROUND OVERLAY */

.brochure-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    cursor: pointer;
}


/* POPUP BOX */

.brochure-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20);
    animation: brochurePopupIn 0.25s ease;
}


/* POPUP ANIMATION */

@keyframes brochurePopupIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* CLOSE BUTTON */

.brochure-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: #333333;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.brochure-close:hover {
    color: #0072bc;
}


/* POPUP HEADER */

.brochure-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.brochure-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #003363;
    margin: 0 0 10px;
}

.brochure-modal-header p {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}


/* SELECTED BROCHURE TITLE */

.brochure-selected-title {
     font-size: 20px;
    font-weight: 700;
    color: #003363;
    margin: 0 0 10px;
}


/* FORM FIELDS */

.brochure-form-fields .brochure-field {
    margin-bottom: 16px;
}

.brochure-form-fields input[type="text"],
.brochure-form-fields input[type="email"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 12px 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.brochure-form-fields input[type="text"]:focus,
.brochure-form-fields input[type="email"]:focus {
    border-color: #0072bc;
}


/* SUBMIT BUTTON */

.brochure-submit input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background: #0072bc;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.brochure-submit input[type="submit"]:hover {
    background: #003363;
}

.brochure-submit input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* LOADING STATE */

.brochure-submit input[type="submit"].is-loading {
    opacity: 0.6;
    cursor: wait;
}


/* CONTACT FORM 7 VALIDATION */

.brochure-modal .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.brochure-modal .wpcf7-not-valid-tip {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}


/* CF7 RESPONSE MESSAGE */

.brochure-modal .wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 12px !important;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 5px;
}


/* REMOVE DEFAULT FORM PARAGRAPH SPACING */

.brochure-modal .wpcf7 form p {
    margin: 0;
}


/* HIDE EMPTY RESPONSE MESSAGE */

.brochure-modal .wpcf7-response-output:empty {
    display: none;
}


/* MOBILE RESPONSIVE */

@media (max-width: 575px) {

    .brochure-modal {
        padding: 15px;
    }

    .brochure-modal-content {
        padding: 30px 20px;
        max-width: 100%;
        max-height: 85vh;
    }

    .brochure-modal-header h3 {
        font-size: 22px;
    }

    .brochure-modal-header p {
        font-size: 13px;
    }

    .brochure-selected-title {
        font-size: 13px;
    }

}
.brochure-submit,
.brochure-submit input[type="submit"] {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
}
.brochure-thankyou {
    margin-top: 15px;
    padding: 12px 15px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}