
.form-error-message,
.form-message {
    display: none;
}

.form-error-message[style*="display:block"],
.form-message[style*="display:block"] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45) !important;
    margin: 0;
    backdrop-filter: blur(2px);
}

.popup-box {
    background: #ffffff !important;
    border-radius: 10px;
    min-width: 320px;
    max-width: 420px;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    opacity: 0;
    animation: popupIn 0.25s ease-out forwards;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.popup-box h3 {
    margin: 0;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0 !important;
}

.form-message .popup-box h3 {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff!important;
}

.form-error-message .popup-box h3 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.popup-box p {
    padding: 20px 18px 24px;
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    width: 28px;
    height: 30px;
    padding: 0 !important;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes popupIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}