/* Enhanced Alert Styles for Contact Form */
.contact--form .alert {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideInDown 0.5s ease-out;
    position: relative;
    padding: 20px;
    margin: 20px 0;
    line-height: 1.6;
}

.contact--form .alert i {
    margin-right: 10px;
    font-size: 18px;
    vertical-align: middle;
}

.contact--form .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #b8dacc;
    color: #155724;
}

.contact--form .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    border-color: #f1aeb5;
    color: #721c24;
}

.contact--form .alert-success i {
    color: #28a745;
}

.contact--form .alert-danger i {
    color: #dc3545;
}

.contact--form .alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contact--form .alert a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.contact--form .alert strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for submit button */
.contact--form .btn-loading {
    position: relative;
    color: transparent !important;
}

.contact--form .btn-loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* reCAPTCHA styling improvements */
.contact--form .g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .contact--form .g-recaptcha {
        transform: scale(0.85);
    }
    
    .contact--form .alert {
        font-size: 14px;
        padding: 15px;
    }
    
    .contact--form .alert i {
        font-size: 16px;
    }
}
