/* style/contact.css */

/* Global styles for page-contact scope */
.page-contact {
    background-color: #08160F; /* Background: #08160F */
    color: #F2FFF6; /* Text Main: #F2FFF6 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Container for consistent content width */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for better text contrast if text was overlayed, but here text is below */
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Use clamp for H1 */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-contact__section {
    padding: 60px 0;
}

.page-contact__section-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-contact__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Main brand color for text */
    border: 2px solid #2AD16F; /* Deep Green border */
    margin-left: 20px;
}

.page-contact__btn-secondary:hover {
    background: #2AD16F;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__link {
    color: #2AD16F; /* Main brand color for links */
    text-decoration: underline;
    padding: 0;
    margin-top: 10px;
    display: block;
}

.page-contact__link:hover {
    color: #13994A; /* Darker green on hover */
}

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

.page-contact__benefit-item {
    background-color: #11271B; /* Card BG: #11271B */
    color: #F2FFF6; /* Text Main */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border: #2E7A4E */
}

.page-contact__benefit-title {
    font-size: 1.5rem;
    color: #2AD16F; /* Use a brighter green for titles */
    margin-bottom: 10px;
}

.page-contact__benefit-text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-contact__card {
    background-color: #11271B; /* Card BG: #11271B */
    color: #F2FFF6; /* Text Main */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #2E7A4E; /* Border: #2E7A4E */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-icon {
    width: 100%; /* Ensure images are responsive */
    max-width: 250px; /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-contact__card-title {
    font-size: 1.8rem;
    color: #2AD16F; /* Brighter green for titles */
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Make text take available space */
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    margin-top: 15px;
}

.page-contact__email-address a,
.page-contact__phone-number a {
    color: #2AD16F; /* Link color */
    text-decoration: none;
}

.page-contact__email-address a:hover,
.page-contact__phone-number a:hover {
    text-decoration: underline;
}

.page-contact__social-media {
    margin-top: 60px;
    text-align: center;
    background-color: #0A4B2C; /* Deep Green: #0A4B2C */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #1E3A2A; /* Divider: #1E3A2A */
}

.page-contact__social-title {
    font-size: 2rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-contact__social-text {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-contact__social-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.page-contact__social-item a {
    color: #F2C14E; /* Gold: #F2C14E */
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__social-item a:hover {
    color: #57E38D; /* Glow: #57E38D */
}

/* FAQ Section */
.page-contact__faq-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

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

.page-contact__faq-item {
    background-color: #11271B; /* Card BG: #11271B */
    border: 1px solid #2E7A4E; /* Border: #2E7A4E */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    background-color: #0A4B2C; /* Deep Green: #0A4B2C */
    border-bottom: 1px solid transparent; /* Placeholder for active state */
}

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

.page-contact__faq-item[open] summary {
    border-bottom: 1px solid #2E7A4E; /* Border on open */
}

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

.page-contact__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 24px;
    text-align: center;
    color: #F2C14E; /* Gold for toggle */
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: left;
}

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

.page-contact__faq-answer .page-contact__link {
    margin-top: 0;
    display: inline;
}


/* Feedback and Responsible Gaming sections */
.page-contact__feedback .page-contact__btn-primary {
    margin-top: 30px;
}

.page-contact__responsible-gaming .page-contact__btn-secondary {
    margin-top: 30px;
    margin-left: 0;
}

/* Office Info */
.page-contact__office-info {
    text-align: center;
}

.page-contact__address {
    font-style: normal;
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-top: 30px;
}

.page-contact__address strong {
    color: #F2FFF6; /* Text Main */
}

.page-contact__address a {
    color: #2AD16F; /* Link color */
    text-decoration: none;
}

.page-contact__address a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-contact__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-bottom: 40px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

    .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;
        margin-left: 0 !important; /* Remove margin for stacking */
        margin-bottom: 15px; /* Add margin between stacked buttons */
    }

    /* Button containers for mobile stacking */
    .page-contact__hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-contact__btn-secondary {
        margin-left: 0;
    }

    .page-contact__method-cards {
        grid-template-columns: 1fr;
    }

    .page-contact__social-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

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

    .page-contact__section-description {
        font-size: 1rem;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-contact__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-contact__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-contact__section-title {
        font-size: 1.5rem;
    }
    .page-contact__hero-image-wrapper {
        max-height: 300px;
    }
}

/* Ensure content area images are not too small */
/* For any img within .page-contact, ensure its display size is >= 200px */
.page-contact img:not([class*="icon"]):not(.page-contact__hero-image) { /* Exclude small icons if any were to be used, and hero image which has specific rules */
    min-width: 200px;
    min-height: 200px;
}
/* Override for mobile to allow responsiveness without fixed min-width for display, but max-width: 100% ensures it fits */
@media (max-width: 768px) {
    .page-contact img:not([class*="icon"]):not(.page-contact__hero-image) {
        min-width: unset; /* Allow it to shrink below 200px if max-width: 100% makes it smaller */
        min-height: unset;
    }
}