/* style/contact.css */

/* Variables (if needed, but shared.css usually handles this) */
:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f8f8f8;
    --background-dark: #0A192F;
    --border-color: #e0e0e0;
}

/* Base styles for the contact page content */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: var(--background-light); /* Assuming a light background for main content */
}

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

/* Section titles and descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons (general styles) */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__cta-button,
.page-contact__submit-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.page-contact__btn-primary,
.page-contact__cta-button,
.page-contact__submit-button {
    background-color: var(--secondary-color); /* Gold background */
    color: var(--primary-color); /* Dark blue text for contrast */
    border: 2px solid var(--secondary-color);
}

.page-contact__btn-primary:hover,
.page-contact__cta-button:hover,
.page-contact__submit-button:hover {
    background-color: #e6c200; /* Slightly darker gold */
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a60 100%); /* Gradient background */
    color: var(--text-color-light);
    overflow: hidden; /* For image positioning */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image if positioned absolutely */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain image width for better layout */
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-contact__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--secondary-color); /* Gold title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    padding: 18px 45px;
    font-size: 1.2em;
    border-radius: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
    background-color: #e6c200;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Channels Section */
.page-contact__channels-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

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

.page-contact__channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__channel-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.page-contact__channel-card .page-contact__btn-primary {
    margin-top: auto; /* Align button at the bottom */
    width: 100%;
    max-width: 200px;
}

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

.page-contact__form-section .page-contact__section-title {
    color: var(--secondary-color); /* Gold title on dark background */
}

.page-contact__form-section .page-contact__section-description {
    color: #e0e0e0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #1a2c42; /* Slightly lighter dark blue */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-color-light);
    font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #3a506b; /* Darker border */
    border-radius: 8px;
    background-color: #0A192F; /* Primary color as input background */
    color: var(--text-color-light);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__submit-button {
    width: 100%;
    padding: 18px;
    font-size: 1.1em;
    border-radius: 8px;
}

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

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

/* FAQ container styles */
.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer hidden */
.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px; /* Adjust padding for desktop */
    opacity: 0;
    background-color: #ffffff; /* White background for answers */
    color: #555;
    font-size: 1em;
    line-height: 1.7;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
    padding: 25px !important; /* Adjust padding for desktop */
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

/* Question style */
.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px; /* Adjust padding for desktop */
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position: relative;
    color: var(--primary-color); /* Question text color */
}

.page-contact__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-contact__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color);
}

/* Toggle icon */
.page-contact__faq-toggle {
    font-size: 28px; /* Larger icon for better visibility */
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color); /* Gold color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: var(--primary-color); /* Dark blue when active */
    transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

/* Location Section */
.page-contact__location-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark blue background */
    color: var(--text-color-light);
}

.page-contact__location-section .page-contact__section-title {
    color: var(--secondary-color);
}

.page-contact__location-section .page-contact__section-description {
    color: #e0e0e0;
}

.page-contact__location-details {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.page-contact__location-card {
    background-color: #1a2c42; /* Slightly lighter dark blue */
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.page-contact__location-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__location-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-contact__location-address,
.page-contact__location-hours {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.page-contact__location-card .page-contact__btn-secondary {
    margin-top: 25px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-contact__location-card .page-contact__btn-secondary:hover {
    background-color: #e6c200;
    color: var(--primary-color);
    border-color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.8em;
    }
    .page-contact__hero-description {
        font-size: 1.2em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__channel-card img {
        
    }
    .page-contact__faq-question h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* Mobile specific header offset */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-contact__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-contact__cta-button {
        padding: 15px 35px;
        font-size: 1em;
    }

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

    .page-contact__channels-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section {
        padding: 50px 0;
    }

    .page-contact__channel-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-contact__channel-card {
        padding: 25px;
    }
    .page-contact__channel-card img {
        
        margin-bottom: 20px;
    }
    .page-contact__channel-title {
        font-size: 1.3em;
    }
    .page-contact__channel-text {
        font-size: 0.9em;
    }
    .page-contact__channel-card .page-contact__btn-primary {
        max-width: 180px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__form-label {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 0.95em;
    }
    .page-contact__submit-button {
        padding: 15px;
        font-size: 1em;
    }

    .page-contact__faq-list {
        margin-top: 30px;
    }

    /* FAQ Mobile Specifics */
    .page-contact__faq-item {
        border-radius: 8px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
        border-radius: 8px;
    }
    .page-contact__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
        margin-bottom: 0;
    }
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px; /* Adjust padding for mobile */
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 20px !important; /* Adjust padding for mobile */
        border-radius: 0 0 8px 8px;
    }

    .page-contact__location-card {
        padding: 30px;
    }
    .page-contact__location-title {
        font-size: 1.5em;
    }
    .page-contact__location-address,
    .page-contact__location-hours {
        font-size: 1em;
    }
    .page-contact__location-card img {
        max-width: 200px;
    }

    /* Mobile image responsiveness (global for .page-contact) */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness (global for .page-contact) */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"],
    .page-contact__submit-button {
        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__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-contact__cta-buttons {
        flex-direction: column !important;
    }
}