/* style/contact.css */

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

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-image: url('[GALLERY:hero_contact:1920x1080:customer support,contact center,online gambling,iGaming,luck8 vip,professional,green,white]'); /* Placeholder */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

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

/* CTA Button */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box; /* Important for mobile responsiveness */
}

.page-contact__cta-button--primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__cta-button--primary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

.page-contact__cta-button--secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-contact__cta-button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Contact Info Section */
.page-contact__contact-info-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Explicitly set for this section to ensure contrast */
    color: #ffffff;
}

.page-contact__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-contact__method-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    padding: 30px;
    border-radius: 12px;
    text-align: 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-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__method-graphic {
    width: 200px; /* Display size, image will be generated larger */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto 20px auto; /* Center the image */
    display: block;
    /* filter: brightness(1.2); /* Make graphics brighter for visibility, NOT changing color */
}

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

.page-contact__method-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #2a2a2a; /* Slightly lighter dark background for contrast with body */
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question-text {
    margin: 0;
    flex-grow: 1;
    color: #ffffff; /* Ensure text color is white */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
    font-weight: bold;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding is 0 */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #e0e0e0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px; /* Add padding when active */
}

.page-contact__faq-answer p {
    margin: 0;
    padding-top: 10px; /* Spacing for answer text */
    color: #e0e0e0;
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #ffffff;
}

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

.page-contact__why-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on brand color */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__why-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-contact__why-graphic {
    width: 200px; /* Display size, image will be generated larger */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto 20px auto; /* Center the image */
    display: block;
}

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

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

/* Responsible Gambling Section */
.page-contact__responsible-gambling-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
    color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__hero-description {
        font-size: 1.2em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__method-title,
    .page-contact__why-title {
        font-size: 1.5em;
    }
}

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

    .page-contact__hero-section {
        padding: 80px 15px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

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

    .page-contact__section-subtitle {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* Images responsive */
    .page-contact img,
    .page-contact__method-graphic,
    .page-contact__why-graphic {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure content area images are not scaled down below 200px display size */
    .page-contact__method-graphic,
    .page-contact__why-graphic {
        min-width: 200px !important;
        min-height: 200px !important;
        width: auto !important; /* Allow auto width to scale with max-width */
    }

    /* Containers responsive */
    .page-contact__container,
    .page-contact__hero-content,
    .page-contact__contact-info-section,
    .page-contact__faq-section,
    .page-contact__why-contact-section,
    .page-contact__responsible-gambling-section,
    .page-contact__method-item,
    .page-contact__faq-item,
    .page-contact__why-item {
        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 */
    }

    /* CTA Buttons responsive */
    .page-contact__cta-button,
    .page-contact__cta-button--primary,
    .page-contact__cta-button--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__contact-methods {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 20px;
    }
    .page-contact__why-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 20px;
    }

    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px 20px;
    }
}

/* Ensure no content causes horizontal scrolling on mobile */
.page-contact {
    overflow-x: hidden;
}