/* Basic error message styling */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 500;
    display: none; /* Hidden by default */
}

/* Input error state */
.input-error {
    border-color: #dc3545 !important;
}

/* Ensure empty error messages don't take up space if using min-height */
.error-message:empty {
    display: none;
}

/* Placeholder color for select (simulated with first option disabled) */
select:invalid {
    color: #888;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
}

.popup-icon.success {
    background: #e6f7ee;
    color: #28a745;
}

.popup-icon.success::after {
    content: "✓";
}

.popup-icon.error {
    background: #fdecea;
    color: #dc3545;
}

.popup-icon.error::after {
    content: "✕";
}

.popup-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.popup-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}
