/* Contact Page Specific Styles */

/* Hero Section */
.contact-hero {
    min-height: 50vh;
    width: 100%;
    background-image: url('images/second.png'); /* Using an existing image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 50px 0;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contact-hero .content-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Main Contact Content */
.contact-content {
    padding: 80px 30px;
    max-width: 100%; /* Change from 1200px to 100% to fit full width */
    margin: 0 auto;
    background: linear-gradient(135deg, 
                #4b2510 0%,    /* Dark brown */
                #8B4513 30%,   /* Medium brown */
                #e8e2d6 70%,   /* Off-white/cream */
                #ffffff 100%); /* Pure white */
    background-attachment: fixed;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1200px; /* Add max-width */
    margin-left: auto;
    margin-right: auto;
}

/* Contact Information Section */
.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 400px; /* Add max-width */
    background-color: #8B4513;
    color: white;
    padding: 40px;
    border-radius: 8px 0 0 8px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: 'EB Garamond', serif;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #e8e2d6;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

.info-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: #e8e2d6;
    text-decoration: underline;
}

.social-connect {
    margin-top: 40px;
}

.social-connect h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: 'EB Garamond', serif;
}

.contact-social-icons {
    display: flex;
    gap: 15px;
}

.contact-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social-icons a:hover {
    background-color: white;
    color: #8B4513;
    transform: translateY(-3px);
}

/* Contact Form Section */
.contact-form-container {
    flex: 2;
    min-width: 300px;
    max-width: 800px; /* Add max-width */
    background-color: white;
    padding: 40px;
    border-radius: 0 8px 8px 0;
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: 'EB Garamond', serif;
    color: #333;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #555;
    font-family: 'EB Garamond', serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: border 0.3s;
    font-family: 'Helvetica', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #8B4513;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

.submit-button {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'EB Garamond', serif;
}

.submit-button:hover {
    background-color: #6b360e;
    transform: translateY(-3px);
}

/* FAQ Section */
.faq-section {
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1200px; /* Add max-width */
    margin-left: auto;
    margin-right: auto;
}

.faq-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'EB Garamond', serif;
    color: #333;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 100%; /* Ensure it doesn't overflow its parent */
}

.faq-item {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    max-width: 100%; /* Ensure it doesn't overflow */
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #8B4513;
    font-family: 'EB Garamond', serif;
}

.faq-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    font-family: 'EB Garamond', serif;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .contact-hero {
        min-height: 40vh;
    }
    
    .contact-content {
        padding: 60px 20px;
    }
    
    .contact-info, 
    .contact-form-container {
        border-radius: 8px;
        max-width: 100%;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 20px; /* Reduce gap on smaller screens */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        background-attachment: scroll;
    }
    
    .contact-content {
        padding: 40px 20px;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .faq-section {
        padding: 30px 20px; /* Add horizontal padding */
    }
    .faq-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .contact-content {
        padding: 30px 15px;
    }
    
    .contact-info {
        padding: 25px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .faq-section {
        padding: 25px 15px;
    }
    
    .faq-section h3 {
        font-size: 1.8rem;
    }
    
    .faq-item h4 {
        font-size: 1.2rem;
    }
    
    .info-item i {
        font-size: 1.3rem;
    }
    
    .info-item p {
        font-size: 1rem;
    }
    
    .submit-button {
        width: 100%;
        padding: 12px;
    }

    .faq-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .faq-item {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .contact-info h3,
    .contact-form-container h3 {
        font-size: 1.6rem;
    }
    
    .social-connect h4 {
        font-size: 1.2rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h4 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.95rem;
    }
}