/* ===== CONTACT PAGE STYLES ===== */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2530 100%);
}

.contact-hero .hero-bg {
    background-image: url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.contact-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.8) 100%);
}

/* Contact Navigation */
.contact-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form .form-control {
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-feedback {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-feedback.error {
    color: #dc3545;
    display: block;
}

.form-feedback.success {
    color: #28a745;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.8rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.form-submit .btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.info-card.emergency {
    border-left: 4px solid #dc3545;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.method-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.method-info {
    flex: 1;
}

.method-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.method-value {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-value:hover {
    color: var(--primary-color);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.location-address i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.location-address div {
    display: flex;
    flex-direction: column;
}

.location-address strong {
    margin-bottom: 0.3rem;
}

.location-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature i {
    color: var(--accent-color);
    width: 16px;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.emergency-contact i {
    color: #dc3545;
    font-size: 1.5rem;
}

.emergency-number {
    display: block;
    font-weight: 700;
    color: #dc3545;
    font-size: 1.1rem;
}

.emergency-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Map Section */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.map-placeholder {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    color: white;
}

.map-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.map-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.transportation-info {
    margin-top: 3rem;
}

.transport-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.transport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
}

.transport-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.transport-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.transport-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Departments Section */
.department-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.15);
}

.dept-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.department-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.department-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dept-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dept-email, .dept-phone {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* FAQ Section */
.faq-list {
    margin-bottom: 2rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.quick-links {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.quick-links h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.2rem;
    width: 20px;
}

.social-contact {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.social-contact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.social-contact p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* CTA Section */
.contact-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2530 100%);
}

.cta-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-card p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.cta-buttons {
    text-align: center;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .contact-form-section {
        padding: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 2rem;
        text-align: center;
    }
    
    .cta-card h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .contact-nav .nav-tabs {
        flex-direction: column;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-submit {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-submit .btn {
        width: 100%;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .department-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .contact-hero {
        min-height: 40vh;
    }
    
    .contact-form-section {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .method-icon {
        align-self: center;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .quick-links,
    .social-contact {
        padding: 1.5rem;
    }
    
    .cta-card {
        padding: 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 1.5rem;
    }
}