/* ── Contact Popup Overlay ── */
.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 15px;
}

.contact-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.contact-popup-box {
    background: #fff;
    width: 100%;
    max-width: 700px;
    /* max-height: 90vh; */
    height: 560px;
    overflow-y: auto;
    border-radius: 12px;
    padding: 20px 25px 25px;
    position: relative;
    transform: scale(0.85) translateY(-20px);
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.contact-popup-box::-webkit-scrollbar {
    width: 5px;
}

.contact-popup-box::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.contact-popup-box::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.contact-popup-overlay.active .contact-popup-box {
    transform: scale(1) translateY(0);
}

.contact-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.contact-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* ── CAPTCHA ── */
.captcha-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0px 15px;
}

.captcha-label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-display {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 10px 18px;
    min-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.captcha-display canvas {
    display: block;
    border-radius: 4px;
}

.captcha-refresh {
    background: #e8f7fb !important;
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.3s;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: var(--primary-color) !important;
}

.captcha-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input-row input {
    flex: 1;
    letter-spacing: 0.1em;
}

.validate-btn {
    margin: 0px !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: var(--secondary-color) !important;
    padding: 10px 18px !important;
}

/* .validate-btn:hover {
    background: #00b4d8 !important;
} */

.captcha-status {
    font-size: 12px;
    font-weight: 500;
    min-height: 16px;
    padding-left: 2px;
}

.form-vh{
    height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
}

.captcha-status.success { color: #22a06b; }
.captcha-status.error   { color: #e5534b; }

/* ── Mobile ── */
@media (max-width: 576px) {
    .contact-popup-box {
        padding: 30px 16px 20px;
        max-height: 95vh;
    }
}