/* style/contact.css */

/* Variables (from shared.css, but useful for context) */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B23C;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark-body: #0a0a0a; /* From shared.css */
  --card-background-light: #ffffff;
  --border-light: #e0e0e0;
}

/* Base page-contact styles for dark body background */
.page-contact {
  color: var(--text-light); /* Default text color for page content on dark body background */
  background-color: transparent; /* Main content area doesn't need its own background if body has it */
}

/* Fixed Navigation Bar Spacing */
.page-contact__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: var(--primary-color); /* Dark section */
  color: var(--text-light);
  text-align: center;
}

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

.page-contact__hero-image {
  margin-bottom: 30px;
}

.page-contact__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-contact__hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-contact__text-link {
  color: var(--secondary-color); /* Gold color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__text-link:hover {
  color: #ffc107; /* Slightly lighter gold on hover */
  text-decoration: underline;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Gold button */
  color: var(--text-dark); /* Dark text on gold button for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  background: #ffc107; /* Lighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-contact__section {
  padding: 60px 20px;
}

.page-contact__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-contact__light-bg {
  background: var(--card-background-light);
  color: var(--text-dark);
}

.page-contact__info-section {
  padding: 60px 20px;
  background: var(--primary-color); /* Primary color background */
  color: var(--text-light);
}

.page-contact__info-container,
.page-contact__form-container,
.page-contact__commitment-container,
.page-contact__responsible-gambling-container,
.page-contact__faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__info-section h2,
.page-contact__form-section h2,
.page-contact__commitment-section h2,
.page-contact__responsible-gambling-section h2,
.page-contact__faq-section h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-contact__info-section p {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  line-height: 1.6;
}

.page-contact__highlight-text {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-contact__contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-contact__method-card {
  background: var(--card-background-light); /* White card for contrast */
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__method-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-contact__method-card p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-primary:hover {
  background: #071a47; /* Darker primary */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 20px;
  background: #f1f3f5; /* Light background for form */
  color: var(--text-dark);
}

.page-contact__form-section h2 {
  color: var(--primary-color);
}

.page-contact__form-section p {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-contact__contact-form {
  background: var(--card-background-light);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

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

.page-contact__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-contact__form-group input[type="text"],
.page-contact__form-group input[type="email"],
.page-contact__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: var(--text-dark);
  background: #f9f9f9;
}

.page-contact__form-group input:focus,
.page-contact__form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 36, 99, 0.2);
}

.page-contact__form-submit-btn {
  width: auto;
  min-width: 150px;
  padding: 15px 30px;
  font-size: 1.1em;
  cursor: pointer;
  background: var(--secondary-color);
  color: var(--text-dark);
}

.page-contact__form-submit-btn:hover {
  background: #ffc107;
  transform: translateY(-1px);
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 20px;
  background: var(--primary-color); /* Dark section */
  color: var(--text-light);
}

.page-contact__commitment-section h2 {
  color: var(--text-light);
}

.page-contact__commitment-section h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-contact__commitment-section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-contact__responsible-gambling-section {
  padding: 60px 20px;
  background: #f1f3f5; /* Light background */
  color: var(--text-dark);
}

.page-contact__responsible-gambling-section h2 {
  color: var(--primary-color);
}

.page-contact__responsible-gambling-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__responsible-gambling-text {
  flex: 1;
  min-width: 300px;
}

.page-contact__responsible-gambling-text p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-contact__responsible-gambling-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-contact__responsible-gambling-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--card-background-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 20px;
  background: var(--primary-color); /* Dark section */
  color: var(--text-light);
}

.page-contact__faq-section h2 {
  color: var(--text-light);
}

.page-contact__faq-section p {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-background-light); /* White background for FAQ item */
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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; /* Adjust padding for consistency */
  opacity: 0;
  color: var(--text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px !important; /* Adjust padding for consistency */
  opacity: 1;
  background: #f9f9f9; /* Slightly off-white for contrast with white question */
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-light);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color); /* Dark blue for FAQ question title */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Dark blue for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  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); /* Gold when active */
  transform: rotate(45deg); /* Rotate to form 'X' or just change to '-' */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-content h1 {
    font-size: 2.8em;
  }
  .page-contact__info-section h2,
  .page-contact__form-section h2,
  .page-contact__commitment-section h2,
  .page-contact__responsible-gambling-section h2,
  .page-contact__faq-section h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }
  .page-contact__hero-content h1 {
    font-size: 2.2em;
  }
  .page-contact__hero-content p {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__commitment-section,
  .page-contact__responsible-gambling-section,
  .page-contact__faq-section {
    padding: 40px 15px; /* Adjust padding for mobile */
  }

  .page-contact__info-section h2,
  .page-contact__form-section h2,
  .page-contact__commitment-section h2,
  .page-contact__responsible-gambling-section h2,
  .page-contact__faq-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-contact__info-section p {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .page-contact__method-card {
    width: 100%;
    max-width: 100%;
    padding: 25px;
  }

  .page-contact__contact-form {
    padding: 30px 20px;
  }

  .page-contact__form-group label {
    font-size: 0.95em;
  }

  .page-contact__form-group input,
  .page-contact__form-group textarea {
    padding: 10px;
    font-size: 0.9em;
  }

  .page-contact__form-submit-btn {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%; /* Full width button on mobile */
  }

  .page-contact__commitment-section h3 {
    font-size: 1.5em;
  }
  .page-contact__commitment-section p {
    font-size: 1em;
  }

  .page-contact__responsible-gambling-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-contact__responsible-gambling-text {
    width: 100%;
  }
  .page-contact__responsible-gambling-image {
    width: 100%;
  }

  .page-contact__image-responsive {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    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;
  }
}

/* Universal responsive image styles for content within .page-contact */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box; /* Ensure padding/border is included in width */
}

/* Containers for images on mobile */
@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-container,
  .page-contact__info-container,
  .page-contact__form-container,
  .page-contact__commitment-container,
  .page-contact__responsible-gambling-container,
  .page-contact__faq-container,
  .page-contact__hero-image,
  .page-contact__responsible-gambling-image,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}