/* Google Forms Contact Form Custom Styles */

/* 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.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Loading state for submit button */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success message styling */
.contact-result {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.contact-result.success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.contact-result.error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* Required field asterisk styling */
.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Form animations */
.form-body {
    transition: all 0.3s ease;
}

/* Hide iframe completely */
#hidden_iframe {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn.w-50 {
        width: 100% !important;
    }
}

/* Focus states for accessibility */
.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Custom checkbox/radio styles if needed */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}

/* Loading spinner for submit button */
.btn-loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
