.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.overlay.active { display: flex; }

.popup-modal {
    position: relative;
    width: 100%;
    max-width: 780px;
    border-radius: 16px;
    padding: 40px 90px 40px;
    background-color: #1a4fd6;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    animation: popIn .22s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #1a4fd6;
    font-weight: 700;
}
.close-btn:hover { background: #e0e7ff; }

.popup-modal h2 {
    text-align: center;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 30px;

}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group.full { grid-column: 1 / -1; }

.popup-modal label {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.popup-modal input,
.popup-modal textarea {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 100%;
    transition: border-color .2s, background .2s;
}

.popup-modal input::placeholder,
.popup-modal textarea::placeholder { color: rgba(255, 255, 255, 0.55); }

.popup-modal input:focus,
.popup-modal textarea:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.22);
}

.popup-modal textarea {
    resize: none;
    height: 160px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.submit-btn {
    background: #fff;
    color: #1a4fd6;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s;
}
.submit-btn:hover { background: #e0e7ff; }

/* ── 1024px ── */
@media (max-width: 1024px) {
    .popup-modal {
        max-width: 560px;
        padding: 30px 30px 24px;
    }
    .popup-modal h2 { font-size: 18px; }
}

/* ── 768px ── */
@media (max-width: 768px) {
    .popup-modal {
        max-width: 480px;
        padding: 28px 22px 22px;
    }
    .popup-modal h2 { font-size: 16px; }
    .form-grid { gap: 10px; }
    .popup-modal textarea { height: 70px; }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .overlay { padding: 12px; }
    .popup-modal {
        max-width: 100%;
        padding: 24px 14px 18px;
        border-radius: 10px;
    }
    .popup-modal h2 { font-size: 15px; margin-bottom: 16px; }
    .form-grid { grid-template-columns: 1fr; gap: 10px; }
    .form-group.full { grid-column: 1; }
    .popup-modal textarea { height: 65px; }
    .form-footer { justify-content: stretch; }
    .submit-btn { width: 100%; text-align: center; }
}