/* style/contact.css */

/* General Page Styling */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f9f9f9; /* Light background */
}

/* 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: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background: linear-gradient(135deg, #CC0000 0%, #FFD700 100%); /* Brand colors gradient */
    color: #ffffff; /* White text for dark/gradient background */
    overflow: hidden; /* Prevent image overflow */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
}

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

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

.page-contact__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-contact__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Secondary color for CTA */
    color: #CC0000; /* Primary color text for contrast */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

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

/* Backgrounds for contrast */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__dark-bg {
    background-color: #CC0000;
    color: #ffffff;
}
.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description {
    color: #ffffff; /* Ensure white text on dark background */
}


/* Contact Methods Section */
.page-contact__contact-methods-section {
    padding: 80px 0;
}

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

.page-contact__method-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content */
    align-items: center;
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__method-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 5px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #CC0000;
}

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

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-contact__btn-primary:hover {
    background: #a30000; /* Darker red on hover */
    border-color: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-contact__social-link {
    font-size: 1em;
    color: #CC0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333; /* Dark text on light form background */
}

.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;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    background-color: #fcfcfc;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #CC0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
    outline: none;
}

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

.page-contact__form-submit-btn {
    width: auto; /* Override max-width for primary button for form */
    margin-top: 20px;
}

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

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

/* FAQ container style */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer 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 20px;
  opacity: 0;
  color: #555555;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to accommodate any content */
  padding: 20px 20px !important;
  opacity: 1;
  background: #fefefe;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e0e0e0;
}

/* Question style */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}
.page-contact__faq-item.active .page-contact__faq-question {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Question title style */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #CC0000; /* Primary color for questions */
}

/* Toggle icon */
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #CC0000;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #FFD700; /* Secondary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-contact__inline-link {
    color: #CC0000;
    text-decoration: underline;
    font-weight: bold;
}
.page-contact__inline-link:hover {
    color: #FFD700;
}


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

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

.page-contact__feature-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-contact__feature-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFD700; /* Secondary color for feature titles */
}

.page-contact__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-contact__cta-block {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__cta-text {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 25px;
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-heading {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile Hero Section */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-image img {
        border-radius: 4px;
    }
    .page-contact__main-heading {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-contact__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 300px !important; /* Keep a reasonable max-width */
        margin-left: auto;
        margin-right: auto;
    }

    /* General Sections */
    .page-contact__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Contact Methods Grid */
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-card img {
        min- /* Adjust min size for mobile if necessary, but keep >200 */
        min-
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .page-contact__card-title {
        font-size: 1.3em;
    }
    .page-contact__card-text {
        font-size: 0.95em;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 250px !important; /* Max width for buttons in cards */
        margin-left: auto;
        margin-right: auto;
        padding: 10px 20px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-contact__social-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Contact Form */
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .page-contact__form-submit-btn {
        width: 100% !important;
        max-width: 250px !important; /* Max width for submit button */
        margin-left: auto;
        margin-right: auto;
    }

    /* FAQ Section */
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-contact__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }

    /* Why Contact Section */
    .page-contact__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__feature-card {
        padding: 25px;
    }
    .page-contact__feature-title {
        font-size: 1.2em;
    }
    .page-contact__feature-text {
        font-size: 0.95em;
    }
    .page-contact__cta-block {
        margin-top: 40px;
        padding: 25px;
    }
    .page-contact__cta-text {
        font-size: 1.1em;
    }
}

/* Global image responsiveness for content area */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile image and container adaptation */
@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__method-card, /* Specific card container */
  .page-contact__feature-card, /* Specific feature card container */
  .page-contact__contact-form /* Specific form container */
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons mobile adaptation */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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;
  }
  
  /* Button containers mobile adaptation */
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}