/* Enhanced Contact Form Styling */

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.contact-form-wrapper h3 {
    color: #056193;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Enhanced Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert .fas {
    font-size: 1.2rem;
}

/* Form Controls */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #056193;
    box-shadow: 0 0 0 0.2rem rgba(5, 97, 147, 0.15);
    background-color: #fff;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.94-2.94 1.06 1.06L3.78 8l-1.48-1.27z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6.5 5.2M6 10.2h0'/%3e%3c/svg%3e");
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Character Counter */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

#charCount {
    font-weight: 600;
    color: #056193;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #056193 0%, #044b73 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 97, 147, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 97, 147, 0.4);
    background: linear-gradient(135deg, #044b73 0%, #033a5a 100%);
}

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

/* Loading State */
.btn-primary .btn-spinner {
    display: inline-flex;
    align-items: center;
}

.btn-primary:disabled {
    background: #6c757d;
    box-shadow: none;
    transform: none;
}

/* Privacy Checkbox */
.form-check-input {
    border: 2px solid #056193;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #056193;
    border-color: #056193;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(5, 97, 147, 0.25);
}

.form-check-label {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

/* Contact Information Styling */
.contact-info-wrapper {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.contact-info-wrapper h3 {
    color: #056193;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    background: linear-gradient(135deg, #056193 0%, #044b73 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
}

.contact-details h5 {
    color: #056193;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    margin-bottom: 0.25rem;
    color: #495057;
}

.contact-details span {
    font-weight: 600;
    color: #2c3e50;
}

.contact-details small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Social Media Links */
.social-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.social-contact h5 {
    color: #056193;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #056193 0%, #044b73 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(5, 97, 147, 0.3);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(5, 97, 147, 0.4);
    color: white;
}

.social-icon i {
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-section h3 {
    color: #056193;
    font-weight: 600;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: #f8f9fa;
    color: #056193;
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #056193 0%, #044b73 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(5, 97, 147, 0.25);
}

.accordion-body {
    background: #ffffff;
    color: #495057;
    line-height: 1.6;
}

/* Map Section */
.map-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.map-section h3 {
    color: #056193;
    font-weight: 600;
    margin-bottom: 1rem;
}

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-form-wrapper,
    .contact-info-wrapper,
    .faq-section,
    .map-section {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .contact-info-wrapper {
        position: static;
        margin-top: 2rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        margin: 0 auto 1rem auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper,
    .contact-info-wrapper,
    .faq-section,
    .map-section {
        padding: 1rem;
    }
    
    .contact-info-item {
        padding: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}

/* Animation for form submission */
@keyframes submitSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary.success-animation {
    animation: submitSuccess 0.6s ease-in-out;
}

/* Security badge styling */
.security-badge {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.security-badge i {
    color: #28a745;
    margin-right: 0.5rem;
}