/* Popup overlay */
#enquiryPopupOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn .25s ease;
}
#enquiryPopupOverlay.active { display: flex; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

/* Modal box */
.enquiry-popup {
    background: #fff;
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp .3s ease;
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Header */
.enquiry-popup h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #1a3a6b;
    padding-right: 32px;
}
.enquiry-popup .popup-sub {
    color: #666;
    font-size: 13px;
    margin: 0 0 20px;
}

/* Close button */
.enquiry-popup .popup-close {
    position: absolute;
    top: 14px; right: 14px;
    background: #f0f4f8;
    border: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.enquiry-popup .popup-close:hover { background: #e1e8f0; color: #111; }

/* Fields */
.popup-field { margin-bottom: 14px; }
.popup-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}
.popup-field input,
.popup-field select,
.popup-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border .2s, box-shadow .2s;
}
.popup-field input:focus,
.popup-field select:focus,
.popup-field textarea:focus {
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .15);
}
.popup-field textarea { resize: vertical; }

/* CAPTCHA row */
.popup-captcha-row { display: flex; gap: 8px; align-items: center; }
.popup-captcha-row img {
    border-radius: 6px;
    border: 1px solid #cfd8e3;
    cursor: pointer;
    height: 46px;
}
.popup-captcha-row input { flex: 1; }
.popup-refresh {
    background: #e8eefc;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 17px;
    cursor: pointer;
}

/* Submit button */
.popup-btn {
    width: 100%;
    padding: 12px;
    background: #2f6fed;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 6px;
}
.popup-btn:hover { background: #2456c4; }
.popup-btn:disabled { background: #9ab0e8; cursor: not-allowed; }

/* Alerts */
.popup-alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}
.popup-alert.success { background: #e6f7ec; color: #1e6b3a; border: 1px solid #b6e2c6; }
.popup-alert.error   { background: #fdecec; color: #a11c1c; border: 1px solid #f5c2c2; }

/* Success state */
.enquiry-popup .popup-success {
    text-align: center;
    padding: 20px 0;
}
.enquiry-popup .popup-success .tick {
    font-size: 54px;
    color: #22a55a;
    margin-bottom: 12px;
}
.enquiry-popup .popup-success h3 {
    margin: 0 0 8px;
    color: #1a3a6b;
}
.enquiry-popup .popup-success p {
    color: #555;
    font-size: 14px;
    margin: 0 0 18px;
}

body.popup-open { overflow: hidden; }

@media(max-width: 500px) {
    .enquiry-popup { padding: 22px 18px 18px; }
    .enquiry-popup h2 { font-size: 19px; }
}