/* style/contact.css */

/* Base styling for the contact page */
.page-contact {
    color: #333333; /* Dark text for default white body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark red for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Buttons */
.page-contact__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent button text from wrapping */
    min-width: 150px;
    font-size: 1em;
}

.page-contact__button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #8B0000; /* Dark red text */
    border: 2px solid #FFD700;
}

.page-contact__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #8B0000;
}

.page-contact__button--secondary {
    background-color: #8B0000; /* Dark red secondary button */
    color: #FFD700; /* Gold text */
    border: 2px solid #8B0000;
}

.page-contact__button--secondary:hover {
    background-color: #6a0000;
    border-color: #6a0000;
    color: #FFD700;
}

.page-contact__button--outline {
    background-color: transparent;
    color: #8B0000; /* Dark red text */
    border: 2px solid #FFD700; /* Gold border */
}

.page-contact__button--outline:hover {
    background-color: #FFD700;
    color: #8B0000;
}

.page-contact__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: 120px;
}

/* Hero Section */
.page-contact__hero-section {
    background-color: #f8f8f8;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtly blend background image */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: #333333; /* Dark text over lighter background */
}

.page-contact__hero-title {
    font-size: 3.5em;
    color: #8B0000;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
}

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

.page-contact__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-contact__method-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-icon {
    width: 400px; /* Ensuring minimum 200px, setting a larger size for content */
    height: 300px; 
    object-fit: contain;
    margin-bottom: 25px;
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #8B0000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
    min-height: 120px; /* Ensure consistent card height */
}

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

.page-contact__faq-accordion {
    margin-top: 50px;
}

.page-contact__faq-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
    font-size: 1.2em;
    color: #333333;
    padding: 20px 30px;
    cursor: pointer;
    position: relative;
    margin: 0;
    background-color: #FFD700; /* Gold background for questions */
    color: #8B0000; /* Dark red text for questions */
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-contact__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-contact__faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.page-contact__faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: #fff;
    color: #555555;
}

.page-contact__faq-answer.active {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 30px;
}

.page-contact__faq-answer p {
    margin: 0 0 10px 0;
}

.page-contact__faq-action {
    text-align: center;
    margin-top: 40px;
}

/* Security Section */
.page-contact__security-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-contact__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.page-contact__security-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    min-width: 400px; /* Enforce min image size */
    min-height: 300px;
}

.page-contact__security-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-contact__security-item {
    margin-bottom: 25px;
}

.page-contact__security-list-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__security-item p {
    color: #666;
    font-size: 1em;
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
}

/* Feedback Section */
.page-contact__feedback-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #FFD700; /* Gold background for strong CTA */
    text-align: center;
    color: #8B0000; /* Dark red text */
}

.page-contact__cta-section .page-contact__section-title {
    color: #8B0000; /* Dark red title */
    font-size: 3em;
}

.page-contact__cta-section .page-contact__section-description {
    color: #6a0000; /* Slightly lighter dark red for description */
    font-size: 1.2em;
    margin-bottom: 50px;
}

.page-contact__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__security-content {
        flex-direction: column;
    }
    .page-contact__security-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
    }
    .page-contact__hero-section {
        padding: 60px 20px;
    }
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__method-text {
        min-height: auto; /* Remove fixed height for mobile */
    }
    .page-contact__method-icon {
        width: 250px; /* Min allowed on mobile */
        height: 180px;
    }
    .page-contact__security-image {
        max-width: 100%;
        min-width: 250px; /* On mobile, it can shrink but not below 250px */
        min-height: 180px;
    }
    .page-contact__faq-question, .page-contact__faq-answer {
        padding: 15px 20px;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__cta-section .page-contact__section-title {
        font-size: 2.2em;
    }
    /* Critical: Prevent content overflow for images */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.6em;
    }
    .page-contact__method-icon {
        width: 200px; /* Smallest allowed */
        height: 150px;
    }
    .page-contact__method-title {
        font-size: 1.5em;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
    }
    .page-contact__cta-section .page-contact__section-title {
        font-size: 2em;
    }
}

/* Ensure images meet min size requirements */
.page-contact img {
    min-width: 200px;
    min- /* Adjust height based on aspect ratio, but min 200px for width */
}

/* Ensure no filter is applied to images */
.page-contact img {
    filter: none !important;
}