/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark background */
    background-color: var(--dark-bg-1); /* Inherited from shared, assumed dark */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #8B0000; /* Dark red background for hero */
}

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: none; /* Ensure no filter changes image color */
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text readability */
    border-radius: 10px;
}

.page-contact__main-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__intro-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure button responsiveness */
}

.page-contact__cta-button--primary {
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Dark red text */
    border: 2px solid #FFD700;
}

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

.page-contact__cta-button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-contact__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #8B0000; /* Dark red background */
    color: #ffffff;
}

.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: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
}

.page-contact__method-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no filter changes image color */
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1); /* Assume dark background from shared */
    color: #f0f0f0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #FFD700;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #aaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #e6c200;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #8B0000; /* Dark red background */
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-contact__faq-item:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
}

.page-contact__faq-question h3 {
    margin: 0;
    color: #FFD700;
    font-size: 1em; /* Smaller for better fit */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

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

.page-contact__faq-answer p {
    margin: 0;
    padding-top: 10px;
    color: #e0e0e0;
}

.page-contact__faq-answer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Banner Section */
.page-contact__cta-banner {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background-color: var(--dark-bg-1); /* Assume dark background from shared */
}

.page-contact__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
    filter: none; /* Ensure no filter changes image color */
}

.page-contact__cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-contact__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__cta-title {
        font-size: 2.2em;
    }
}

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

    .page-contact__container {
        padding: 0 15px;
    }

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

    .page-contact__hero-content {
        padding: 30px 15px;
    }

    .page-contact__main-title {
        font-size: 2em;
    }

    .page-contact__intro-description {
        font-size: 1.1em;
    }

    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__method-icon {
        width: 200px !important; /* Enforce minimum size for images */
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__form-label {
        font-size: 1em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-contact__faq-question h3 {
        font-size: 1.1em;
    }

    .page-contact__faq-answer {
        padding: 0 20px;
    }

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    .page-contact__cta-title {
        font-size: 1.8em;
    }

    .page-contact__cta-description {
        font-size: 1.1em;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size for all content images */
        min-height: 200px !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-banner,
    .page-contact__cta-content,
    .page-contact__hero-image-wrapper,
    .page-contact__methods-grid,
    .page-contact__method-card,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__faq-item,
    .page-contact__faq-question,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
    }
    /* Override specific padding for elements that should not have it, or adjust as needed */
    .page-contact__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-contact__hero-content,
    .page-contact__cta-content,
    .page-contact__contact-form,
    .page-contact__method-card,
    .page-contact__faq-item {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}