/* style/contact.css */

/* Base styles for page-contact - body background is #0a0a0a (dark) */
.page-contact {
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no filter is used */
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Darker overlay for better text readability */
    z-index: 2;
}

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

.page-contact__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.25em;
    margin-bottom: 40px;
    color: #f0f0f0;
    line-height: 1.5;
}

/* General Section Styles */
.page-contact__section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-contact__section-title {
    font-size: 2.8em;
    color: #ffffff; /* White text on dark background */
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-contact__section-description,
.page-contact__subsection-description {
    font-size: 1.15em;
    color: #f0f0f0;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.12); /* Semi-transparent white for cards */
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure cards are same height */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__method-title {
    font-size: 1.9em;
    color: #017439; /* Brand green for titles */
    margin-bottom: 18px;
    font-weight: bold;
}

.page-contact__method-text {
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.page-contact__method-detail {
    color: #ffffff;
    font-size: 1.15em;
    margin-bottom: 15px;
}

.page-contact__link-phone,
.page-contact__link-email {
    color: #017439; /* Brand green for links */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

.page-contact__link-phone:hover,
.page-contact__link-email:hover {
    color: #00a040; /* Lighter green on hover */
    text-decoration: underline;
}

.page-contact__social-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 10px;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.page-contact__faq-title {
    font-size: 1.35em;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
    font-weight: 600;
}

.page-contact__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: #017439;
    margin-left: 25px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
    color: #ffffff;
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #e0e0e0;
}

/* IMPORTANT: Ensure max-height is sufficient for content */
.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1200px !important; /* Sufficiently large value for expanded content */
    padding: 15px 28px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    font-size: 1.08em;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Office Location Section */
.page-contact__address {
    font-style: normal;
    font-size: 1.15em;
    margin-top: 25px;
    margin-bottom: 45px;
    color: #f0f0f0;
    font-weight: 500;
}

.page-contact__location-map {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    margin-top: 25px;
    filter: none; /* Ensure no filter is used */
}

/* Responsible Gambling & Security Section */
.page-contact__subsection-title {
    font-size: 2.2em;
    color: #017439;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__security-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    margin-top: 45px;
    filter: none; /* Ensure no filter is used */
}

/* Buttons */
.page-contact__cta-button {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    margin: 5px;
}

.page-contact__cta-button:active {
    transform: translateY(1px);
}

.page-contact__btn-primary {
    background-color: #017439; /* Brand green */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__btn-primary:hover {
    background-color: #00a040; /* Lighter green */
    border-color: #00a040;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand green text */
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-contact__btn-social {
    background-color: rgba(255, 255, 255, 0.1);
    color: #017439;
    border: 2px solid #017439;
    padding: 12px 25px;
}

.page-contact__btn-social:hover {
    background-color: #017439;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Images */
.page-contact__section-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 45px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    filter: none; /* Ensure no filter is used */
}

/* Ensure all content images are responsive and not too small */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space nicely */
    filter: none; /* Ensure no filter is used */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        height: 550px;
    }
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2.4em;
    }
    .page-contact__section-description,
    .page-contact__subsection-description {
        font-size: 1.05em;
        margin-bottom: 40px;
    }
    .page-contact__method-card {
        padding: 30px;
    }
    .page-contact__method-title {
        font-size: 1.7em;
    }
    .page-contact__faq-question {
        padding: 20px 25px;
    }
    .page-contact__faq-title {
        font-size: 1.25em;
    }
    .page-contact__faq-answer {
        padding: 0 25px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 25px 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for sections */
    .page-contact__section {
        padding: 50px 0;
    }

    .page-contact__container {
        padding: 0 15px; /* Smaller side padding for mobile */
    }

    .page-contact__hero-section {
        height: 450px; /* Shorter hero for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }

    .page-contact__hero-title {
        font-size: 2.2em;
        line-height: 1.3;
    }
    .page-contact__hero-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__section-title {
        font-size: 1.9em;
        margin-bottom: 20px;
    }
    .page-contact__section-description,
    .page-contact__subsection-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-contact__method-grid {
        grid-template-columns: 1fr; /* Stack contact methods vertically */
    }

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

    .page-contact__method-title {
        font-size: 1.5em;
    }

    .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: 15px 20px 20px;
    }

    .page-contact__cta-button {
        padding: 10px 20px;
        font-size: 1em;
        max-width: 100% !important; /* Ensure buttons don't overflow */
        width: 100% !important;
        white-space: normal !important; /* Allow text wrapping */
        word-wrap: break-word !important;
        margin: 5px 0;
    }

    .page-contact__social-buttons {
        flex-direction: column; /* Stack social buttons vertically */
        gap: 10px;
    }
    .page-contact__btn-social {
        width: 100%; /* Make social buttons full width */
    }

    /* Images responsive rules for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Allow smaller display if needed by layout, but still > 200px if it's a content image */
        min-height: unset !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__method-card,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Specific padding for sections to avoid content touching edges */
    .page-contact__contact-methods .page-contact__container,
    .page-contact__faq-section .page-contact__container,
    .page-contact__office-location .page-contact__container,
    .page-contact__responsible-gambling .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Ensure no filter is used on images */
.page-contact img {
    filter: none;
}

/* Contrast Fixes for dark background body */
.page-contact h1, .page-contact h2, .page-contact h3, .page-contact h4, .page-contact h5, .page-contact h6 {
    color: #ffffff;
}

.page-contact p, .page-contact li, .page-contact address {
    color: #f0f0f0;
}

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

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

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

.page-contact__btn-primary {
    background-color: #017439;
    color: #ffffff;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #017439;
    border-color: #017439;
}

.page-contact__btn-social {
    background-color: rgba(255, 255, 255, 0.1);
    color: #017439;
    border-color: #017439;
}