/* ===== Contact Section ===== */
.contact {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    opacity: 0.03;
    z-index: 0;
}

.section-padding {
    padding: 6rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    display: inline-block;
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #007bff;
    margin: 0.5rem auto 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.section-description {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Contact Information Card */
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-subtitle i {
    color: #007bff;
    font-size: 1.2rem;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.contact-method:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-address,
.contact-phone,
.contact-hours,
.contact-email {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.contact-address i,
.contact-phone i,
.contact-hours i,
.contact-email i {
    color: #007bff;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.contact-address a,
.contact-phone a,
.contact-email a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-address a:hover,
.contact-phone a:hover,
.contact-email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Emergency Contact */
.contact-emergency {
    background: #fff8f8;
    border: 1px solid #ffecec;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.emergency-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.emergency-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.emergency-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
}

.btn-emergency {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc3545;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-emergency:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Secondary Contact */
.contact-secondary {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.contact-email {
    margin-bottom: 1.5rem;
}

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

.contact-social a {
    width: 36px;
    height: 36px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.contact-social a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-container,
.select-container,
.textarea-container {
    position: relative;
}

.input-container i,
.select-container i,
.textarea-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
}

.textarea-container i {
    top: 1.2rem;
    transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.contact-form textarea {
    padding: 1rem 1rem 1rem 2.5rem;
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Form Footer */
.form-footer {
    margin-top: 1rem;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.form-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card,
    .form-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .contact-card,
    .form-card {
        padding: 1.5rem;
    }
    
    .contact-emergency {
        flex-direction: column;
        gap: 1rem;
    }
    
    .emergency-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}