/* Base styles for contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  background-color: #E53935; /* Main brand color for dark-bg */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures image covers area, might crop */
  display: block;
  max-height: 810px; /* Limit height for aesthetic */
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-contact__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Button */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Main brand color */
  border: 2px solid #E53935;
}

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

/* Section Titles and Intros */
.page-contact__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #333333;
}

.page-contact__section-title--white {
  color: #ffffff;
}

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

.page-contact__section-intro--white {
  color: #f0f0f0;
}

/* Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

.page-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-contact__card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-contact__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-contact__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935; /* Main brand color */
}

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

.page-contact__card-title--white {
  color: #ffffff;
}

.page-contact__card-text--white {
  color: #f0f0f0;
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #E53935; /* Main brand color */
  color: #ffffff;
}

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

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FF5A4F;
  box-shadow: 0 0 0 3px rgba(255, 90, 79, 0.3);
}

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

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
}

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

details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f0f0f0;
}

.page-contact__faq-qtext {
  flex: 1;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Main brand color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #555555;
  line-height: 1.7;
}

.page-contact__faq-answer p {
  margin: 0;
}

/* Why Choose Us Section */
.page-contact__why-choose-us {
  padding: 60px 0;
  background-color: #E53935; /* Main brand color */
  color: #ffffff;
}

.page-contact__why-grid {
  grid-template-columns: repeat(4, 1fr);
}

.page-contact__why-grid .page-contact__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #ffffff;
}

.page-contact__why-grid .page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__why-grid .page-contact__card-title {
  color: #ffffff;
}

.page-contact__why-grid .page-contact__card-text {
  color: #f0f0f0;
}

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

/* Final CTA Section */
.page-contact__final-cta {
  padding: 60px 0;
  background-color: #E53935; /* Main brand color */
  color: #ffffff;
  text-align: center;
}

.page-contact__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-contact__why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-contact__contact-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  /* General container padding */
  .page-contact__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px;
  }
  .page-contact__hero-image {
    max-height: 400px; /* Adjust for mobile */
    object-fit: contain; /* Ensure image is fully visible */
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-content {
    padding: 0 15px 30px;
  }
  .page-contact__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-contact__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* CTA Buttons */
  .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;
  }
  .page-contact__button-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Section Titles and Intros */
  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-contact__section-intro {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  /* Methods Section Grid */
  .page-contact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  .page-contact__card {
    padding: 20px;
  }
  .page-contact__card-image {
    max-height: 200px;
  }
  .page-contact__card-title {
    font-size: 1.4em;
  }

  /* Form Section */
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 15px;
    font-size: 0.95em;
  }

  /* FAQ Section */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-contact__faq-qtext {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
  }

  /* Why Choose Us Section Grid */
  .page-contact__why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Images in general */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}