/* Contact Page Styles */

/* Hero Section for Contact */
.contact-page .hero {
    padding: 5.5rem 1.5rem 3rem;
    min-height: auto;
    background: linear-gradient(135deg, #e8edf0 0%, #d8dfe3 100%);
    margin: 0;
}

.contact-page .hero h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 1rem;
}

.contact-page .hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-page .hero .hero-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section {
    padding: 3rem 0 4rem;
    background-color: #f9f9f9;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
}

.contact-method {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.contact-method:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #80bd9e;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-method:hover:before {
    transform: scaleX(1);
}

.contact-icon {
    font-size: 2.2rem;
    color: #80bd9e;
    width: 70px;
    height: 70px;
    background: rgba(128, 189, 158, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background: #80bd9e;
    color: #fff;
    transform: scale(1.1);
}

.contact-details h3 {
    color: #2c3e50;
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
}

.contact-details p {
    margin: 0.3rem 0;
    color: #555;
    line-height: 1.6;
}

.contact-link {
    color: #80bd9e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #6ba889;
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.emergency {
    color: #e74c3c !important;
    font-weight: 600;
    margin-top: 0.8rem !important;
    padding-top: 0.8rem;
    border-top: 1px dashed #eee;
}

/* Map Container */
.map-container {
    margin: 3rem auto 0;
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio (change to 100% for square) */
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-method:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-page .hero {
        padding: 4.5rem 1rem 2.5rem;
    }

    .contact-page .hero h1 {
        font-size: 2rem;
    }

    .contact-page .hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 3rem 0 3rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-method:last-child {
        max-width: 100%;
    }
    
    .contact-method {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) {
    .contact-form {
        padding: 2.5rem;
    }
    
    .form-row {
        display: flex;
        gap: 1.5rem;
    }
    
    .form-row .form-group {
        flex: 1;
    }
}
