/* Contact Us Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Information Section */
.contact-info-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-detail {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-hours {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1rem;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: white;
}

.form-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.form-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form select.form-control {
    background-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='m2 0-2 2h4zm0 5 2-2h-4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    color: #495057;
    line-height: 1.5;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

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

/* Office Hours Section */
.office-hours-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.hours-card,
.emergency-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.hours-title,
.emergency-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.hours-title i,
.emergency-title i {
    color: #667eea;
    margin-right: 0.5rem;
}

.hours-list {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item:nth-child(even) {
    background: #f8f9fa;
}

.day {
    font-weight: 600;
    color: #2c3e50;
}

.time {
    color: #495057;
}

.emergency-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.emergency-contact {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.emergency-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #856404;
    margin: 10px 0;
}

/* FAQ Link Section */
.faq-link-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.faq-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-faq {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-faq:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Footer */
.footer-section {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
}

.footer-section p {
    margin: 0;
    opacity: 0.8;
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading state for form submission */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .contact-info-section,
    .contact-form-section,
    .office-hours-section,
    .faq-link-section {
        padding: 60px 0;
    }
}

/* Success message styles */
.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 2rem;
}

.alert-success i {
    margin-right: 0.5rem;
}