/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* A very light background to ensure contrast */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-contact__section-title {
    font-size: 2.5em;
    color: #1A2E47; /* Main brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #1A2E47; /* Fallback background */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slightly dim the image for text readability */
    filter: brightness(0.7); /* Darken image slightly more */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFD700; /* Accent color for title */
}

.page-contact__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-contact__btn-primary {
    background-color: #FFD700; /* Accent color */
    color: #1A2E47; /* Dark text for accent background */
    border: 2px solid #FFD700;
    margin: 10px;
}

.page-contact__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color text */
    border: 2px solid #FFD700;
    margin: 10px;
}

.page-contact__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2E47;
}

.page-contact__btn-text {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #1A2E47; /* Main brand color for text link */
    text-decoration: underline;
    font-weight: normal;
}

.page-contact__btn-text:hover {
    color: #FFD700; /* Accent color on hover */
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 250px; /* Example display width for desktop */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #1A2E47;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-contact__method-description a {
    color: #1A2E47;
    text-decoration: underline;
}

.page-contact__method-description a:hover {
    color: #FFD700;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #1A2E47; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-contact__form-section .page-contact__section-title {
    color: #FFD700; /* Accent color for title */
}

.page-contact__form-section .page-contact__section-intro {
    color: #f0f0f0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__form-group {
    margin-bottom: 25px;
}

.page-contact__form-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f0f0f0;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD700;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    margin: 0;
    float: right; /* Align button to the right */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #f0f0f0;
}

.page-contact__faq-title {
    font-size: 1.25em;
    color: #1A2E47;
    margin: 0;
    font-weight: bold;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
    content: "−"; /* Visually change to minus, actual text change in JS */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}
.page-contact__faq-answer a {
    display: inline-block;
    margin-top: 10px;
}

/* Call to Action Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #1A2E47; /* Dark background */
    color: #ffffff; /* Light text */
    text-align: center;
}

.page-contact__cta-title {
    font-size: 2.8em;
    color: #FFD700; /* Accent color */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.2em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-title {
        font-size: 1.6em;
    }
    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__method-card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-contact__method-icon {
        min-width: 200px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-contact__contact-form {
        padding: 25px;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Container responsiveness for images/content */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-content,
    .page-contact__methods-grid,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure video elements are responsive */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video containers responsive */
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* FAQ padding adjustment for mobile */
    .page-contact__faq-question,
    .page-contact__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 15px 25px 15px; /* Adjust padding for mobile */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__cta-title {
        font-size: 2em;
    }
}