/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
    background-color: #1a1a1a; /* Fallback dark background */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for better text contrast */
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
}

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

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

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-tertiary {
    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;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-contact__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1a1a1a; /* Dark text for contrast */
    border: 2px solid #FFD700;
}

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: #00BFFF; /* Blue */
    border: 2px solid #00BFFF;
}

.page-contact__btn-secondary:hover {
    background-color: #00BFFF;
    color: #ffffff;
}

.page-contact__btn-tertiary {
    background-color: #00BFFF; /* Blue */
    color: #ffffff;
    border: 2px solid #00BFFF;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-contact__btn-tertiary:hover {
    background-color: #009acd;
    border-color: #009acd;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

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

/* Info Section (Contact Methods) */
.page-contact__info-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background */
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-contact__method-icon {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take up available space */
}

.page-contact__email-address {
    font-size: 1.1em;
    font-weight: bold;
    color: #00BFFF;
    margin-top: auto; /* Push to bottom */
}


/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Even darker background */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.08); /* Card background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFD700;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark input */
    color: #ffffff;
    font-size: 1em;
    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 {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    padding: 12px 40px;
    margin-top: 20px;
    cursor: pointer;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background */
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-contact__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #FFD700;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

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

.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: 0;
    padding-bottom: 10px;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0 80px 0;
    background-color: #0d0d0d;
}

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

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-contact__commitment-icon {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-contact__commitment-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 500px;
        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: 1em;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

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

    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__info-section {
        padding: 40px 0;
    }

    .page-contact__contact-form {
        padding: 25px;
        margin: 30px auto 0 auto;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-title {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    
    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        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 */
    }
    .page-contact__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-contact__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Enforce content image size for mobile, must be >= 200x200 */
    .page-contact__method-icon,
    .page-contact__commitment-icon {
        width: 200px !important;
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-section {
        height: 400px;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
}