/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--primary-color); /* Inherit from shared.css */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 120px; /* Spacing for fixed header */
}

.page-contact__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-contact__hero-image {
  width: 100%;
  margin: 0;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Section Headings and Text Blocks */
.page-contact__main-heading {
  font-size: 3.2em;
  color: var(--secondary-color); /* Gold color for main heading */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__section-heading {
  font-size: 2.5em;
  color: var(--secondary-color); /* Gold color for section headings */
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.3;
}

.page-contact__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Backgrounds */
.page-contact__dark-section {
  background-color: #1A202C;
  padding: 60px 0;
  color: #f0f0f0;
}

.page-contact__light-bg {
  background-color: #f9f9f9;
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
}

.page-contact__light-bg .page-contact__text-block {
  color: #333333;
}

.page-contact__light-bg .page-contact__section-heading {
  color: #1A202C; /* Dark color for headings on light background */
}

/* Contact Methods Grid */
.page-contact__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.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 background */
  border: 2px solid var(--secondary-color);
}

.page-contact__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__card-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  overflow: hidden;
}

.page-contact__card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-contact__card-title {
  font-size: 1.5em;
  color: #1A202C;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  background: var(--secondary-color);
  color: #1A202C; /* Dark text on gold button */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-contact__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--secondary-color); /* Gold text */
  border: 2px solid var(--secondary-color);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  font-size: 1em;
}

.page-contact__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #1A202C; /* Dark text on gold hover */
  transform: translateY(-2px);
}

/* Contact Form */
.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #2a2f3a;
  color: #f0f0f0;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #aaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  margin-top: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* 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;
  font-size: 0.95em;
}

/* 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 for any content */
  padding: 20px !important;
  opacity: 1;
  background: #f0f0f0;
  border-radius: 0 0 8px 8px;
}

/* 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: #1A202C;
}

.page-contact__faq-item.active .page-contact__faq-question {
  border-radius: 8px 8px 0 0;
}

.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.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #1A202C;
}

/* Toggle icon */
.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: var(--secondary-color);
  transform: rotate(45deg); /* Change to X or rotate for minus sign */
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    margin-top: 100px; /* Adjust spacing for mobile fixed header */
  }
  .page-contact__main-heading {
    font-size: 2.2em;
  }
  .page-contact__section-heading {
    font-size: 1.8em;
  }
  .page-contact__text-block {
    font-size: 1em;
  }
  .page-contact__dark-section, .page-contact__light-bg {
    padding: 40px 0;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__card {
    padding: 25px;
  }
  .page-contact__card-title {
    font-size: 1.3em;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-label {
    font-size: 0.95em;
  }
  .page-contact__form-input, .page-contact__form-textarea {
    padding: 10px;
    font-size: 0.95em;
  }
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    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;
  }
  
  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-section,
  .page-contact__introduction-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__responsible-gaming-section,
  .page-contact__cta-section,
  .page-contact__container,
  .page-contact__card,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
}