/* style/contact.css */

.page-contact {
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #FFFFFF; /* Default background for light theme */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 80px 0; /* Adjust padding to ensure content visibility without double offset */
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

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

.page-contact__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.page-contact__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
}

.page-contact__button--primary:hover {
    background-color: #e0a73b;
}

.page-contact__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-contact__button--secondary:hover {
    background-color: #f0f0f0;
    border-color: #e0a73b;
}

/* Section General Styles */
.page-contact__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Why Us Section */
.page-contact__why-us-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

.page-contact__why-us-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-contact__why-us-item:hover {
    transform: translateY(-5px);
}

.page-contact__why-us-icon {
    width: 200px; /* Enforce min size */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__item-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-contact__item-description {
    color: #666666;
    font-size: 0.95em;
}

/* Channels Section */
.page-contact__channels-section {
    padding: 60px 0;
}

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

.page-contact__channel-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-contact__channel-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #000000;
    margin: 25px 20px 10px 20px;
}

.page-contact__card-description {
    color: #666666;
    font-size: 1em;
    padding: 0 20px 25px 20px;
    flex-grow: 1;
}

.page-contact__channel-card .page-contact__button {
    margin: 0 20px 25px 20px;
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-contact__social-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-contact__social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__social-link:hover {
    color: #FCBC45;
}

.page-contact__social-link img {
    width: 200px; /* Enforce min size */
    height: 200px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-contact__social-link img:hover {
    transform: scale(1.05);
}

.page-contact__social-disclaimer {
    text-align: center;
    font-size: 0.9em;
    color: #777777;
    margin-top: 30px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
}

.page-contact__faq-accordion {
    max-width: 900px;
    margin: 40px auto 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.page-contact__accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-contact__accordion-item:last-child {
    border-bottom: none;
}

.page-contact__accordion-header {
    width: 100%;
    background-color: #f9f9f9;
    color: #000000;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.15em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.page-contact__accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-contact__accordion-header:hover {
    background-color: #f0f0f0;
}

.page-contact__accordion-content {
    padding: 0 25px;
    background-color: #FFFFFF;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__accordion-content p {
    padding: 15px 0;
    color: #555555;
    font-size: 0.95em;
}

/* Feedback Form Section */
.page-contact__feedback-form-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-contact__feedback-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-contact__form-group {
    margin-bottom: 25px;
}

.page-contact__form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000000;
    font-size: 1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 12px 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    background-color: #fefefe;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FCBC45;
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__feedback-form .page-contact__button--primary {
    width: 100%;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
}

.page-contact__commitment-details {
    max-width: 900px;
    margin: 30px auto 0 auto;
    color: #555555;
    font-size: 1.05em;
    text-align: justify;
}

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

/* Final CTA Section */
.page-contact__final-cta-section {
    padding: 60px 0;
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
    text-align: center;
}

.page-contact__final-cta-section .page-contact__section-title,
.page-contact__final-cta-section .page-contact__section-intro {
    color: #FFFFFF;
}

.page-contact__final-cta-section .page-contact__button {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }

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

    .page-contact__why-us-grid,
    .page-contact__channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 0;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__button {
        width: 80%;
        margin: 0 auto;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__why-us-grid,
    .page-contact__channels-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__why-us-icon, .page-contact__social-link img, .page-contact__channel-image {
        max-width: 100%;
        height: auto; /* Ensures images are responsive and don't overflow */
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
        object-fit: cover;
    }

    .page-contact__social-grid {
        flex-direction: column;
        align-items: center;
    }

    .page-contact__feedback-form {
        padding: 25px;
    }

    .page-contact__accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-contact__accordion-content p {
        padding: 10px 0;
    }
    .page-contact__feedback-form .page-contact__button--primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.7em;
    }
    .page-contact__button {
        width: 90%;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__container {
        padding: 0 15px;
    }
    .page-contact__feedback-form {
        padding: 20px;
    }
}

/* Ensure all images within .page-contact adhere to minimum size and no filter rules */
.page-contact img {
    filter: none; /* Absolutely no CSS filters on images */
}

/* Global rule to prevent content images from being too small in content area */
.page-contact img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: contain; /* or cover, depending on desired visual */
}

/* Specific overrides for mobile to ensure responsiveness without shrinking below min-size */
@media (max-width: 768px) {
    .page-contact img {
        max-width: 100%;
        height: auto; /* Ensures images are responsive and don't overflow */
    }
    .page-contact__channel-image {
        height: 200px; /* Adjust height for mobile */
    }
}

/* Ensure .page-contact does not cause horizontal overflow */
.page-contact {
    overflow-x: hidden;
}