/* =================================================================
   Contact Form Notification Styles
   ================================================================= */

/* Form Notifications */
.form-notification {
    position: relative;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content span {
    font-size: 1rem;
    line-height: 1.5;
}

/* Success Notification */
.notification-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-success i {
    color: #28a745;
}

/* Error Notification */
.notification-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification-error i {
    color: #dc3545;
}

/* Info Notification */
.notification-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.notification-info i {
    color: #17a2b8;
}

/* Warning Notification */
.notification-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffeeba;
    color: #856404;
}

.notification-warning i {
    color: #ffc107;
}

/* Close Button */
.notification-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    margin-left: 1rem;
}

.notification-close:hover {
    opacity: 1;
}

/* Form Loading State */
.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button[type="submit"] .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Form Field Validation States */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Focus States */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Required Field Indicator */
.form-group label::after {
    content: '';
}

.form-group label[for="name"]::after,
.form-group label[for="email"]::after,
.form-group label[for="message"]::after {
    content: ' *';
    color: #dc3545;
}

/* Form Group Spacing */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #1e3a5f;
}

/* Submit Button */
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5f8d 100%);
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d5f8d 0%, #1e3a5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    margin-right: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-notification {
        padding: 1rem;
    }

    .notification-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-large {
        width: 100%;
        padding: 1rem;
    }
}
