/* ── MAAC Enquiry Popup v2.0 ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500&display=swap');

/* ── Overlay ── */
.maac-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: maacFadeIn .22s ease;
}
@keyframes maacFadeIn { from { opacity:0 } to { opacity:1 } }

/* ── Modal ── */
.maac-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 740px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 44px 56px;
    box-sizing: border-box;
    animation: maacSlideUp .25s ease;
    scrollbar-width: thin;
}
@keyframes maacSlideUp { from { transform: translateY(28px); opacity:0 } to { transform: translateY(0); opacity:1 } }

/* ── Close button ── */
.maac-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: #cf2e2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .15s;
    padding: 0;
}
.maac-close:hover { background: #a82222; }

/* ── Header ── */
.maac-modal-header {
    text-align: center;
    margin-bottom: 28px;
}
.maac-modal-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #cf2e2e;
    margin: 0 0 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.maac-modal-header p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.55;
}

/* ── Decorative circles (matches screenshot) ── */
.maac-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.maac-deco-bl {
    width: 160px; height: 160px;
    background: #8B2252;
    bottom: -40px; left: -50px;
    opacity: .85;
}
.maac-deco-br {
    width: 120px; height: 120px;
    background: #8B2252;
    bottom: -20px; right: -30px;
    opacity: .85;
}
.maac-deco-dot-l {
    width: 32px; height: 32px;
    background: #E8A000;
    bottom: 68px; left: 100px;
}
.maac-deco-dot-r {
    width: 28px; height: 28px;
    background: #E8A000;
    bottom: 60px; right: 108px;
}
.maac-deco-dot-m {
    width: 18px; height: 18px;
    background: #E8A000;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
}

/* ── Grid ── */
.maac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    position: relative;
    z-index: 1;
}

/* ── Fields ── */
.maac-field {
    display: flex;
    flex-direction: column;
}
.maac-field label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}
.maac-field label .req { color: #cf2e2e; }

.maac-field input[type="text"],
.maac-field input[type="email"],
.maac-field input[type="tel"],
.maac-field select {
    width: 100%;
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #222;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    appearance: none;
    -webkit-appearance: none;
}
.maac-field input[readonly] {
    background: #f5f5f5;
    color: #555;
    cursor: default;
}
.maac-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 32px;
    cursor: pointer;
}
.maac-field input:focus,
.maac-field select:focus {
    border-color: #cf2e2e;
    box-shadow: 0 0 0 3px rgba(207,46,46,.10);
}
.maac-field input.mf-invalid,
.maac-field select.mf-invalid {
    border-color: #cf2e2e;
}

.maac-err {
    display: block;
    font-size: 11.5px;
    color: #cf2e2e;
    margin-top: 4px;
    min-height: 15px;
}

/* ── Privacy ── */
.maac-privacy {
    text-align: center;
    font-size: 13px;
    color: #444;
    margin: 22px 0 18px;
    position: relative;
    z-index: 1;
}
.maac-privacy a {
    color: #cf2e2e;
    text-decoration: none;
    font-weight: 500;
}
.maac-privacy a:hover { text-decoration: underline; }

/* ── Submit wrap + button ── */
#maac-submit-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}
#maac-submit {
    background: #cf2e2e;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 13px 60px;
    cursor: pointer;
    transition: background .18s, transform .1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#maac-submit:hover  { background: #a82222; }
#maac-submit:active { transform: scale(.97); }
#maac-submit:disabled { background: #aaa; cursor: not-allowed; transform: none; }

/* ── Form error ── */
.maac-form-error {
    background: #fff0f0;
    border: 1.5px solid #cf2e2e;
    border-radius: 8px;
    color: #a82222;
    font-size: 13px;
    padding: 10px 14px;
    text-align: center;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* ── Success ── */
#maac-success {
    text-align: center;
    padding: 20px 0 8px;
}
.maac-success-inner { padding: 10px; }
.maac-tick {
    width: 58px; height: 58px;
    background: #28a745;
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
#maac-success h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
#maac-success p {
    font-size: 14px;
    color: #555;
    margin: 0 0 6px;
}
.maac-ref {
    font-size: 13px;
    font-weight: 600;
    color: #cf2e2e;
}

/* ── Responsive: tablet ── */
@media (max-width: 640px) {
    .maac-modal {
        padding: 32px 22px 52px;
        border-radius: 10px;
    }
    .maac-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .maac-modal-header h2 { font-size: 20px; }
    .maac-deco-bl { width:110px; height:110px; }
    .maac-deco-br { width:80px; height:80px; }
}

/* ── Body scroll lock when modal open ── */
body.maac-open { overflow: hidden; }
