/* style/contact.css */

/* --- Base Styles for .page-contact --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

/* --- Section Styling --- */
.page-contact__section-title {
    font-size: 2.5rem;
    color: #F2C14E; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* body handles --header-offset, this is decorative */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
    max-width: 900px;
    z-index: 1;
    padding: 20px;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-contact__tagline {
    font-size: 1.2rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn,
.page-contact__btn-link {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons adapt */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Button top color */
    border: 2px solid #2E7A4E; /* Border */
}

.page-contact__btn-secondary:hover {
    background: #2E7A4E; /* Border */
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
}

.page-contact__social-btn {
    background: #11271B; /* Card BG */
    color: #A7D9B8; /* Text Secondary */
    border: 1px solid #2E7A4E; /* Border */
    margin: 5px;
    padding: 10px 20px;
    border-radius: 20px;
}

.page-contact__social-btn:hover {
    background: #2E7A4E; /* Border */
    color: #F2FFF6; /* Text Main */
}

.page-contact__btn-link {
    background: none;
    border: none;
    color: #57E38D; /* Glow */
    text-decoration: underline;
    padding: 5px 10px;
    margin-top: 10px;
    display: inline-block;
}

.page-contact__btn-link:hover {
    color: #F2C14E; /* Gold */
}

/* --- Contact Methods Section --- */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-contact__method-card {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #1E3A2A; /* Divider */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-contact__method-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-contact__method-title {
    font-size: 1.8rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-contact__method-description {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-contact__dark-section .page-contact__section-title {
    color: #F2C14E; /* Gold */
}

.page-contact__dark-section .page-contact__section-description {
    color: #A7D9B8; /* Text Secondary */
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-contact__faq-question:hover {
    background-color: #1E3A2A; /* Divider */
}

.page-contact__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #57E38D; /* Glow */
    margin-left: 15px;
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05rem;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Sufficient height for expanded content */
    padding-top: 15px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* For JS fallback */
    padding-top: 15px;
}

/* --- Feedback Section --- */
.page-contact__feedback-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-contact__feedback-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: #11271B; /* Card BG */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #1E3A2A; /* Divider */
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #57E38D; /* Glow */
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

.page-contact__feedback-form .page-contact__btn-primary {
    width: auto;
    min-width: 180px;
    margin-top: 20px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__section-title {
        font-size: 2.2rem;
    }
    .page-contact__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-contact__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-contact__tagline {
        font-size: 1rem;
    }
    .page-contact__section-title {
        font-size: 1.8rem;
    }
    .page-contact__section-description {
        font-size: 1rem;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-icon {
        height: 180px;
    }
    .page-contact__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }
    .page-contact__feedback-form {
        padding: 30px 20px;
    }
    .page-contact__form-label {
        font-size: 1rem;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

    /* Mobile image 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,
    .page-contact__feedback-form {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no overflow */
    }
    
    /* No video section on this page, but keeping rule for safety */
    .page-contact__video-section {
        padding-top: 10px !important; 
    }

    /* Mobile button responsiveness */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"],
    .page-contact__social-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;
      flex-direction: column; /* Stack buttons vertically */
    }
    .page-contact__social-links {
        flex-direction: row; /* Keep social buttons inline if they fit, otherwise wrap */
        justify-content: center;
    }
    .page-contact__social-links .page-contact__social-btn {
        width: auto !important; /* Allow social buttons to size naturally */
        max-width: calc(50% - 10px) !important; /* Two buttons per row if they fit */
    }
}

/* --- Color Contrast Fixes --- */
/* These are already integrated into the main styles for clarity and adherence to the palette */
/* The chosen colors #08160F (background) and #F2FFF6 (Text Main) ensure high contrast. */
/* #11271B (Card BG) with #A7D9B8 (Text Secondary) also provides good readability. */
/* #F2C14E (Gold) on dark backgrounds has excellent contrast. */

/* Specific contrast for form elements */
.page-contact__form-label {
    color: #F2FFF6; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
    color: #F2FFF6; /* Text Main */
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #A7D9B8; /* Text Secondary */
}