/* style/contact.css */

/* General styling for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    padding-top: 10px; /* Small top padding for first content block, relying on body for header offset */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #111111; /* Card BG for visual separation */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-width: 1920px; /* Ensure image doesn't overflow */
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
    margin-top: -50px; /* Pull content up slightly over the image if desired, but still below it */
    position: relative; /* Ensure text is above any background elements if image is behind */
    z-index: 2;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #FFD36B; /* Glow */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-tertiary,
.page-contact__btn-inline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #ffffff; /* Explicitly white text as per instruction */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color as border */
}

.page-contact__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
}

.page-contact__btn-tertiary {
    background: transparent;
    color: #FFD36B; /* Glow */
    border: 2px solid #FFD36B;
}

.page-contact__btn-tertiary:hover {
    background: #FFD36B;
    color: #111111;
}

.page-contact__btn-inline {
    background: transparent;
    color: #FFD36B; /* Glow */
    border: 1px solid #FFD36B;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 10px;
}

.page-contact__btn-inline:hover {
    background: #FFD36B;
    color: #111111;
}

/* Sections */
.page-contact__dark-bg {
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
}

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

.page-contact__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #FFD36B; /* Glow */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-contact__section-description {
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6; /* Text Main */
}

.page-contact__section-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Card styling */
.page-contact__card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #FFF6D6; /* Text Main */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__card-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__card-text {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

/* Contact Methods Section */
.page-contact__methods-grid,
.page-contact__info-grid,
.page-contact__feedback-options,
.page-contact__advantages-grid,
.page-contact__gaming-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.page-contact__social-icon {
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__social-icon:hover {
    color: #FFD36B;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #1a1a1a;
    border-color: #F2C14E;
}

.page-contact__faq-title {
    font-size: 1.15rem;
    color: #F2C14E; /* Main color */
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD36B; /* Glow */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #111111; /* Card BG */
    border-left: 1px solid #3A2A12;
    border-right: 1px solid #3A2A12;
    border-bottom: 1px solid #3A2A12;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Important for override */
    padding: 15px 25px 25px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    color: #FFF6D6; /* Text Main */
}

/* CTA Final */
.page-contact__cta-final {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #3A2A12;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding-bottom: 30px;
    }
    .page-contact__hero-content {
        margin-top: -30px;
    }
    .page-contact__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-contact__section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    .page-contact__container {
        padding: 40px 15px;
    }
    .page-contact__method-card img {
        height: 200px;
    }
}

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

    /* Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-contact__hero-image {
        margin-bottom: 20px;
    }
    .page-contact__method-card img {
        height: auto; /* Allow height to adjust naturally */
        min-height: 200px; /* Ensure minimum size */
    }

    /* Containers */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__methods-grid,
    .page-contact__info-grid,
    .page-contact__feedback-options,
    .page-contact__advantages-grid,
    .page-contact__gaming-resources {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__container {
        padding: 30px 15px;
    }
    .page-contact__hero-content {
        padding: 0 15px;
        margin-top: -20px;
    }

    /* Buttons */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-tertiary,
    .page-contact__btn-inline,
    .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-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-contact__social-links {
        justify-content: center;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
    }

    /* FAQ */
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}