/* style/contact.css */

/* Variables for colors */
:root {
    --fe88-primary: #2F6BFF;
    --fe88-secondary: #6FA3FF;
    --fe88-gradient-btn: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --fe88-card-bg: #FFFFFF;
    --fe88-bg-light: #F4F7FB;
    --fe88-text-main: #1F2D3D;
    --fe88-text-dark: #000000;
    --fe88-border: #D6E2FF;
    --fe88-glow: #A5C4FF;
    --fe88-text-white: #ffffff;
    --fe88-text-gray: #333333; /* For contrast on light backgrounds */
    --fe88-bg-dark-section: #2F6BFF; /* Primary color as dark section background */
}

/* Page base styles, assuming body has a light background (e.g., #F4F7FB or white) */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: var(--fe88-text-gray); /* Default text color for light body background */
    line-height: 1.6;
    background-color: var(--fe88-bg-light); /* Or white if shared.css sets body to white */
}

/* Ensure main content is not covered by fixed header, but rely on body padding-top */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--fe88-bg-light); /* Ensure a consistent background */
    overflow: hidden; /* Prevent content overflow */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-image {
    width: 100%;
    height: auto; /* Responsive image */
    display: block;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative; /* Not absolute to avoid overlapping the image */
    max-width: 900px;
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white background for readability */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px; /* Positive margin to push it below the image */
    z-index: 1; /* Ensure it's above the image if any background elements are below */
}

.page-contact__hero-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
    color: var(--fe88-text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: var(--fe88-text-gray);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__btn-primary {
    display: inline-block;
    background: var(--fe88-gradient-btn);
    color: var(--fe88-text-white);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--fe88-bg-light); /* Light background for contrast */
    color: var(--fe88-text-gray);
}

.page-contact__section-title {
    font-size: 2.5em;
    color: var(--fe88-text-dark);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--fe88-text-gray);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--fe88-card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--fe88-text-main);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--fe88-border);
    border-radius: 8px;
    font-size: 1em;
    color: var(--fe88-text-gray);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--fe88-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Other Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: var(--fe88-bg-dark-section); /* Brand primary color as background */
    color: var(--fe88-text-white); /* White text for dark background */
    text-align: center;
}

.page-contact__section-title--white {
    color: var(--fe88-text-white);
}

.page-contact__section-description--white {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__method-icon {
    width: 200px; /* Minimum 200px */
    height: 200px; /* Minimum 200px */
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no CSS filter is applied */
}

.page-contact__method-title {
    font-size: 1.5em;
    color: var(--fe88-text-white);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-contact__method-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__btn-secondary {
    display: inline-block;
    background: var(--fe88-card-bg); /* White background for secondary button */
    color: var(--fe88-primary); /* Primary color text for contrast */
    padding: 12px 25px;
    border: 2px solid var(--fe88-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-contact__btn-secondary:hover {
    background: var(--fe88-primary);
    color: var(--fe88-text-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--fe88-bg-light);
    color: var(--fe88-text-gray);
}

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

.page-contact__faq-item {
    background-color: var(--fe88-card-bg);
    border: 1px solid var(--fe88-border);
    border-radius: 10px;
    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;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--fe88-text-main);
    cursor: pointer;
    background-color: var(--fe88-card-bg);
    border-bottom: 1px solid transparent; /* Default */
    transition: background-color 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom: 1px solid var(--fe88-border);
    background-color: #f9fbfd; /* Slightly different background when open */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--fe88-primary);
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--fe88-text-gray);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.0s ease-out, padding 0.0s ease-out; /* Set to 0s to prevent visual glitch before JS takes over */
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Transition for open state */
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: var(--fe88-bg-dark-section);
    text-align: center;
    color: var(--fe88-text-white);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-contact__hero-content {
        margin-top: 30px; /* Adjusted positive margin */
    }
}

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

    .page-contact__hero-section {
        padding-bottom: 40px;
    }

    .page-contact__hero-content {
        padding: 20px;
        margin-top: 20px; /* Adjusted positive margin */
    }

    .page-contact__hero-title {
        font-size: clamp(1.5em, 5vw, 2em);
    }

    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__form-submit-btn {
        margin-top: 10px;
    }

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

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 60px 0;
    }

    .page-contact__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__hero-image-wrapper,
    .page-contact__method-card,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Method icons are already >= 200px, no need to shrink below it */
    .page-contact__method-icon {
        width: 200px !important; 
        height: 200px !important;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-content {
        margin-top: 15px; /* Adjusted positive margin */
    }
    .page-contact__hero-title {
        font-size: clamp(1.2em, 6vw, 1.8em);
    }
    .page-contact__btn-primary {
        padding: 12px 20px;
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
}