/* Hide popup and overlay initially */
#contactPopup,
#contactOverlay {
    display: none;
}

/* Overlay and Popup */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: block;
    z-index: 999;
    backdrop-filter: blur(4px);
}

.contact-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    background: #fff;
    padding: 24px 26px;
    border-radius: 16px;
    display: block;
    z-index: 1000;
    box-shadow: 0 25px 55px rgba(0,0,0,0.3);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.contact-popup::before {
    display: none;
}

.contact-popup h3 {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #133880;
}

.contact-popup input,
.contact-popup select,
.contact-popup textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #ccc;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-popup textarea {
    resize: none;
    height: 100px;
}

.contact-popup input:focus,
.contact-popup select:focus,
.contact-popup textarea:focus {
    border-color: #0050ff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 80, 255, 0.6);
}

.contact-popup .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    background: #0050ff;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 80, 255, 0.6);
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-popup .submit-btn:hover {
    background: #003bb5;
    transform: translateY(-2px);
}

.contact-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    line-height: 1;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-close:hover {
    color: #0050ff;
}

/* -----------------------------------------
   CONTACT SUCCESS POPUP
------------------------------------------ */
.contact-success-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 25, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20010;
    padding: 20px;
}

.contact-success-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.contact-success-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px 20px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    transition: transform 0.2s ease;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.contact-success-popup.show .contact-success-card {
    transform: translateY(0);
}

.contact-success-badge {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #e6f9f0;
    color: #067647;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 1px solid #34d399;
}

.contact-success-card h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #0a4e96;
}

.contact-success-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.4;
}

.contact-success-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #3b3b3b;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-success-close:hover {
    color: #ED1C24;
}

