/**
 * Contact Form Styles
 * Custom styles for form validation and messages
 */

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-in-out;
}

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

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
}

/* Loading State */
#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

#submit-btn:disabled .btn-loading {
    display: inline;
}

#submit-btn:disabled .btn-text {
    display: none;
}

/* Honeypot (hidden field for spam protection) */
.hidden {
    display: none !important;
}

/* Form Field Improvements */
.form-control {
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: #80bdff;
}

/* Success Animation */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.alert-success {
    animation: slideDown 0.3s ease-in-out, successPulse 0.6s ease-in-out 0.3s;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .alert {
        font-size: 13px;
        padding: 12px 15px;
    }
}
