/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background */
}

/* Header offset */
.page-contact {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Sections */
.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

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

/* Background colors */
.page-contact__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description {
    color: #ffffff;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding-top is already on .page-contact */
}

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

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-contact__hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-contact__hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background: #EA7C07; /* Login color for primary actions */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    background: #d46b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-contact__btn-secondary:hover {
    background: #f0f0f0;
    color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
}

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

.page-contact__contact-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__contact-card p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-contact__contact-card strong {
    color: #333333;
}

.page-contact__contact-card .page-contact__btn-primary,
.page-contact__contact-card .page-contact__btn-secondary {
    width: auto; /* Override general button width for cards */
    padding: 10px 25px;
    font-size: 16px;
    margin-top: auto; /* Push button to bottom */
}

.page-contact__card-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 4px;
    margin-top: 20px;
    object-fit: cover;
}

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

.page-contact__form-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.page-contact__form-content {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-contact__form-image-container {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__form-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    margin-top: 10px;
}

/* Support Channels Section */
.page-contact__support-channels {
    padding: 80px 0;
}

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

.page-contact__channel-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-contact__channel-icon {
    width: 100%; /* Ensure full width within its container */
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 4px;
    object-fit: cover;
}

.page-contact__channel-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-contact__channel-item p {
    font-size: 16px;
    color: #555555;
}

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    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;
    border-color: #d0d0d0;
}

.page-contact__faq-question:active {
    background: #eeeeee;
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    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 {
    color: #333;
    transform: rotate(45deg); /* Change from + to X for active state */
}


/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__cta-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__cta-section .page-contact__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-contact__form-layout {
        flex-direction: column;
    }
    .page-contact__form-image-container {
        order: -1; /* Image above form on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

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

    .page-contact__hero-section {
        padding-bottom: 40px;
    }

    .page-contact__hero-content h1 {
        font-size: 36px;
    }

    .page-contact__hero-content p {
        font-size: 18px;
    }

    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-contact__hero-buttons,
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__support-channels,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 50px 0;
    }

    .page-contact__contact-card,
    .page-contact__channel-item {
        padding: 20px;
    }

    .page-contact__card-title,
    .page-contact__channel-title {
        font-size: 20px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }
    
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__form-layout,
    .page-contact__channel-grid,
    .page-contact__grid-container,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ specific mobile styles */
    .page-contact__faq-question {
        padding: 15px;
    }
    
    .page-contact__faq-question h3 {
        font-size: 16px;
    }
    
    .page-contact__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
    
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure no images are smaller than 200px in content areas */
.page-contact img:not(.shared-header__logo, .shared-footer__payment-icon, .shared-footer__social-icon, .shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Override min-width/height for specific images that might be smaller by design (e.g., icons, but the prompt forbids small icons, so this is mostly a safeguard for non-content images, which are handled by shared CSS. For content images, this ensures they are large) */
/* This rule is to ensure no image selected by .page-contact img has a display size less than 200px, as per the requirement */
.page-contact__hero-image,
.page-contact__card-image,
.page-contact__form-image,
.page-contact__channel-icon {
    min-width: 200px; /* Enforce minimum display size for content images */
    min-height: 200px;
}

@media (max-width: 768px) {
    .page-contact__hero-image,
    .page-contact__card-image,
    .page-contact__form-image,
    .page-contact__channel-icon {
        min-width: 200px !important; /* Ensure mobile images also meet min size */
        min-height: 200px !important;
    }
}