/**
 * Contact Form Styles
 * Custom styling for the contact form
 * 
 * @package construe
 * @since 1.0.0
 */

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
}

/* Status message styles */
#status {
    min-height: 20px;
}

#status.alert {
    border-radius: 5px;
    padding: 12px 15px;
    margin-top: 15px;
    border: 1px solid transparent;
}

#status.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#status.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

#status.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

#status.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Character counter styles */
.char-counter {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.char-counter.text-warning {
    color: #ffc107 !important;
}

.char-counter.text-danger {
    color: #dc3545 !important;
}

/* Form field spacing */
.form-control {
    margin-bottom: 10px;
}

.form-select {
    margin-bottom: 10px;
}

/* Submit button styles */
.btn-style {
    transition: all 0.3s ease;
}

.btn-style:hover {
    transform: translateY(-2px);
}

.btn-style:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .twice-two {
        flex-direction: column;
    }
    
    .twice-two .form-control {
        margin-bottom: 15px;
    }
    
    .btn-style {
        width: 100%;
        margin-top: 15px;
    }
}

/* Form container styling */
.w3-map-content-9-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

/* Input focus effects */
.form-control:focus,
.form-select:focus {
    border-color: #007cba;
}

/* Division selector styling */
#w3lType {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
}

#w3lType:focus {
    border-color: #007cba;
}

/* Message textarea styling */
#w3lMessage {
    min-height: 120px;
    resize: vertical;
}

/* Success animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: fadeInUp 0.3s ease-out;
} 