/* Form Notifications CSS - Add this to your main CSS file or create a separate forms.css */

/* Form notification styles */
.form-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideInFromTop 0.4s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.form-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.form-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notification-content {
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-content i:first-child {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.notification-content ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
    font-size: 14px;
}

.notification-content li {
    margin-bottom: 4px;
}

.close-notification {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.close-notification:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form field error styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444;
}

.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-error::before {
    content: "⚠";
    font-size: 14px;
}

/* Button loading states */
button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

button.loading i.fa-spin {
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideInFromTop {
    0% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-notification {
        top: 10px;
        width: 95%;
        max-width: none;
    }
    
    .notification-content {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .notification-content i:first-child {
        font-size: 18px;
    }
}

/* Form focus improvements */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Enhanced form styling */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #d1d5db;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit button enhancements */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}