/* style/contact.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #000080;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
}

.page-contact {
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

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

/* 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); /* Ensure content is below fixed header */
    background-color: var(--secondary-color); /* Fallback background for hero */
    color: var(--text-light);
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--bg-white); /* Light background for text on hero */
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-contact__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
}

.page-contact__section-intro--light {
    color: var(--text-light);
}

/* CTA Buttons */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-contact__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-contact__btn-primary:hover {
    background: #e6c200;
}

.page-contact__btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-contact__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.page-contact__method-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

.page-contact__method-card img {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-contact__method-card p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email-link, .page-contact__phone-link, .page-contact__social-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover, .page-contact__social-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Why Contact Us Section */
.page-contact__why-contact-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-contact__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-contact__benefits-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__benefits-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-contact__benefits-item p {
    color: var(--text-light);
    font-size: 1em;
}

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-white);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

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

.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 28px;
    height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or change text to '-' */
    color: var(--primary-color);
}

.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;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
}

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

.page-contact__cta-final-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-description, .page-contact__section-intro {
        font-size: 1em;
    }
    .page-contact__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-contact__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 0.95em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }
    .page-contact__section-intro {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-contact__container {
        padding: 0 15px;
    }
    .page-contact__hero-content {
        padding: 20px;
    }

    /* Images responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Override min-width for mobile */
        min-height: unset;
    }
    .page-contact__hero-image img, .page-contact__method-card img {
        border-radius: 4px;
    }

    /* Buttons responsive */
    .page-contact__cta-button,
    .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: 12px 15px;
        font-size: 16px;
        margin-top: 20px;
    }

    .page-contact__methods-grid, .page-contact__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__method-card, .page-contact__benefits-item {
        padding: 20px;
    }

    /* FAQ Responsive */
    .page-contact__faq-question {
        padding: 15px;
    }
    .page-contact__faq-question h3 {
        font-size: 1em;
    }
    .page-contact__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__hero-description, .page-contact__section-intro {
        font-size: 0.85em;
    }
    .page-contact__hero-content {
        padding: 15px;
    }
}