/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-contact__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for titles */
    font-weight: bold;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-contact__section-description {
    font-size: clamp(16px, 2vw, 18px);
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0; /* Lighter white for descriptions */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); /* Subtle dark gradient */
}

.page-contact__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-contact__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure content is above any background elements if layered */
}

.page-contact__main-title {
    font-size: clamp(32px, 5vw, 52px); /* Responsive H1 size */
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    min-width: 180px; /* Minimum width for buttons */
}

.page-contact__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

.page-contact__btn-primary:hover {
    background-color: #1f8ac9;
    border-color: #1f8ac9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(38, 169, 224, 0.6);
}

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1f8ac9;
    border-color: #1f8ac9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 80px 0;
    background-color: #000000; /* Dark background for this section */
    color: #ffffff; /* Light text for dark background */
}

.page-contact__dark-section .page-contact__section-title {
    color: #FFFFFF; /* White title on dark background */
}

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

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

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

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

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
    width: 100%; /* Adjust to fit card, but ensure min size is met */
    height: auto;
    max-width: 100%;
}

.page-contact__method-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-contact__email-link,
.page-contact__phone-link,
.page-contact__social-icon {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__social-icon:hover {
    color: #1f8ac9;
    text-decoration: underline;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

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

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

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    background-color: rgba(0, 0, 0, 0.6);
    outline: none;
}

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

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

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #26A9E0;
    user-select: none;
    list-style: none; /* For <summary> tag */
}

/* Hide default marker for details summary */
.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-contact__faq-item summary::marker {
    display: none;
}

.page-contact__faq-qtext {
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #c0c0c0;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
/* For <details> native behavior, max-height is not needed for the answer div, it's controlled by browser */
/* The max-height transition here is for the JS fallback or if we want to animate details opening */
.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 2000px; /* Sufficiently large for content */
    padding-top: 10px;
}

/* Operating Hours & Address Section */
.page-contact__operating-hours {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-contact__info-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__info-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__info-text {
    font-size: 16px;
    color: #c0c0c0;
    margin-bottom: 15px;
}

.page-contact__info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-contact__info-card li {
    margin-bottom: 8px;
    font-size: 16px;
    color: #e0e0e0;
}

.page-contact__strong-text {
    color: #FFFFFF;
}

.page-contact__address {
    font-style: normal;
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.8;
}

.page-contact__final-cta {
    text-align: center;
    font-size: 20px;
    color: #e0e0e0;
    margin-top: 60px;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-contact__large-btn {
    width: auto;
    min-width: 250px;
    padding: 18px 40px;
    font-size: 20px;
    display: block;
    margin: 0 auto;
    background-color: #EA7C07; /* Login button color */
    border-color: #EA7C07;
    box-shadow: 0 4px 10px rgba(234, 124, 7, 0.4);
}

.page-contact__large-btn:hover {
    background-color: #c96b06;
    border-color: #c96b06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 124, 7, 0.6);
}

/* Global image styles */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Enforce min size for content images */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 15px !important;
    }

    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-contact__main-title {
        font-size: clamp(28px, 8vw, 40px); /* Adjust H1 for smaller screens */
    }

    .page-contact__hero-description {
        font-size: 16px;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px !important;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        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__method-grid,
    .page-contact__info-grid {
        grid-template-columns: 1fr;
    }

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

    .page-contact__form-section,
    .page-contact__contact-methods,
    .page-contact__faq-section,
    .page-contact__operating-hours {
        padding: 50px 0;
    }

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

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

    .page-contact__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

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

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is met even on mobile */
        min-height: 200px !important;
    }

    /* All containers with images/videos/buttons must have these */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__method-card,
    .page-contact__info-card {
      padding-left: 15px;
      padding-right: 15px;
    }
}