/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-contact__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for card */
    border: 1px solid #e0e0e0;
}

.page-contact__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-contact__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
    background-color: #1f8ec4;
    border-color: #1f8ec4;
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-contact__link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__link:hover {
    text-decoration: underline;
}

/* --- Sections --- */
.page-contact__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-contact__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__hero-title,
.page-contact__dark-section .page-contact__hero-description,
.page-contact__dark-section .page-contact__benefit-title,
.page-contact__dark-section .page-contact__benefit-item p,
.page-contact__dark-section .page-contact__commitment-title,
.page-contact__dark-section .page-contact__commitment-item p {
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-contact__hero-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px;
}

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

.page-contact__contact-methods {
    padding: 80px 0;
}

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

.page-contact__method-icon {
    width: 200px; /* Min size */
    height: 200px; /* Min size */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__method-text {
    margin-bottom: 20px;
    color: #555555;
}

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    text-align: left;
    box-shadow: none; /* Override card shadow for FAQ items */
    border: none; /* Override card border */
    background-color: rgba(255, 255, 255, 0.15); /* Light background for dark section */
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.page-contact__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    outline: none;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-contact__faq-item summary::marker {
    display: none;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-contact__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−";
}

.page-contact__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
}

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

.page-contact__faq-answer .page-contact__link {
    color: #FFFFFF; /* White link on dark background */
    text-decoration: underline;
}

.page-contact__cta-faq {
    text-align: center;
    margin-top: 40px;
}

.page-contact__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ffffff;
}

/* --- Feedback Form Section --- */
.page-contact__feedback-form-section {
    padding: 80px 0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #f9f9f9;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 5px rgba(38, 169, 224, 0.5);
}

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

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1em;
}

/* --- Why Contact Section --- */
.page-contact__why-contact-section {
    padding: 80px 0;
}

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

.page-contact__benefit-item {
    background-color: rgba(255, 255, 255, 0.15); /* Light background on dark section */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.page-contact__benefit-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-contact__benefit-item p {
    color: #f0f0f0;
}

/* --- Responsible Gaming Section --- */
.page-contact__responsible-gaming {
    padding: 80px 0;
}

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

.page-contact__responsible-card {
    padding: 30px;
    text-align: center;
}

.page-contact__responsible-card .page-contact__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__responsible-card p {
    color: #555555;
}

.page-contact__cta-responsible {
    text-align: center;
}

/* --- Company Commitment Section --- */
.page-contact__company-commitment {
    padding: 80px 0;
}

.page-contact__commitment-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.page-contact__commitment-icon {
    width: 200px; /* Min size */
    height: 200px; /* Min size */
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__commitment-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-contact__commitment-item p {
    color: #f0f0f0;
}

/* --- Location Section --- */
.page-contact__location-section {
    padding: 80px 0;
}

.page-contact__location-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    text-align: left;
}

.page-contact__location-map {
    flex: 2;
    min-width: 300px;
    max-width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.page-contact__address-info {
    flex: 1;
    min-width: 280px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-contact__address-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-contact__address-text {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555555;
}

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

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

    .page-contact__methods-grid,
    .page-contact__benefits-list,
    .page-contact__responsible-grid,
    .page-contact__commitment-points {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-contact__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top is correct */
    }

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

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

    .page-contact__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__contact-methods,
    .page-contact__faq-section,
    .page-contact__feedback-form-section,
    .page-contact__why-contact-section,
    .page-contact__responsible-gaming,
    .page-contact__company-commitment,
    .page-contact__location-section {
        padding: 50px 0;
    }

    .page-contact__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-contact__methods-grid,
    .page-contact__benefits-list,
    .page-contact__responsible-grid,
    .page-contact__commitment-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card,
    .page-contact__faq-item,
    .page-contact__benefit-item,
    .page-contact__responsible-card,
    .page-contact__commitment-item {
        padding: 20px;
    }

    .page-contact__method-icon,
    .page-contact__commitment-icon {
        width: 200px !important; /* Min size */
        height: 200px !important; /* Min size */
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

    .page-contact__location-details {
        flex-direction: column;
        gap: 20px;
    }

    .page-contact__location-map {
        min-width: unset;
        width: 100%;
        height: 300px;
    }
    
    .page-contact__map-iframe {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }

    .page-contact__address-info {
        min-width: unset;
        width: 100%;
        padding: 20px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-contact img:not(.page-contact__method-icon):not(.page-contact__commitment-icon) {
    min-width: 200px;
    min-height: 200px;
}