/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://domicilishome.com/wp-content/uploads/2023/10/contact-banner.jpg') center/cover no-repeat;
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.contact-hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin: 0 0 1rem 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.contact-hero-content p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Contact Info Section */
.contact-info-section {
    width: 100%;
    padding: 5rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.contact-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #333;
    font-size: 2.25rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8b7355;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-header h2 {
    color: #333;
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.contact-info-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

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

.contact-icon {
    background: #f8f5f0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
    color: #8b7355;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background: #8b7355;
    color: #fff;
    transform: rotate(5deg) scale(1.1);
}

.contact-details h3 {
    color: #333;
    font-size: 1.05rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.contact-details a, 
.contact-details p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    word-break: break-word;
}

.contact-details a:hover {
    color: #8b7355;
    text-decoration: none;
}

.business-hours {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.business-hours h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.business-hours h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #8b7355;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.95rem;
}

.hours-grid span {
    line-height: 1.5;
}

.hours-grid span:nth-child(odd) {
    font-weight: 500;
    color: #555;
}

.hours-grid span:nth-child(even) {
    color: #777;
    text-align: right;
}

/* Contact Form Section */
.contact-form-section {
    width: 100%;
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
}

.contact-form-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.contact-form-section .section-header h2::after {
    background-color: #8b7355;
}

.form-wrapper {
    position: relative;
    padding-bottom: 80%; /* Adjusted aspect ratio for form */
    height: 0;
    overflow: auto;
    border-radius: 8px;
    background: #f9f9f9;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.contact-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    min-height: 700px;
}

/* Map Section */
.map-section {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.map-container {
    position: relative;
    padding-bottom: 50%; /* 2:1 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .form-wrapper {
        padding-bottom: 100%;
    }
}

@media (max-width: 900px) {
    .contact-info-section,
    .contact-form-section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-wrapper {
        padding-bottom: 120%;
    }
    
    .contact-hero {
        min-height: 280px;
    }
    
    .contact-hero-content h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .contact-hero-content p {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .business-hours {
        padding: 1.5rem;
    }
    
    .map-container {
        padding-bottom: 80%;
        border-radius: 8px;
    }
    
    .form-wrapper {
        padding-bottom: 140%;
    }
}

@media (max-width: 480px) {
    .contact-info-section,
    .contact-form-section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        margin: 0 0 1rem 0;
    }
    
    .contact-details h3 {
        margin-bottom: 0.5rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: center;
    }
    
    .hours-grid span:nth-child(even) {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .map-container {
        padding-bottom: 100%;
    }
    
    .form-wrapper {
        padding-bottom: 160%;
    }
    
    .business-hours {
        padding: 1.25rem;
    }
    
    .business-hours h3 {
        font-size: 1.25rem;
    }
}