/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F4F7FB; /* Body background color */
}

.page-contact__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-contact__section {
  padding: 40px 0;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-contact__section-description {
  font-size: 18px;
  line-height: 1.6;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__section-description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 40px;
  background-color: #F4F7FB;
}

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

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

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 19px;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 30px;
}

.page-contact__cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits container */
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-contact__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-contact__btn--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-contact__btn--secondary:hover {
  background: #f0f5ff;
  color: #2558d4;
  border-color: #2558d4;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-contact__btn--small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-contact__btn--large {
  padding: 16px 32px;
  font-size: 20px;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-contact__method-card {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  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;
}

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

.page-contact__method-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #F4F7FB;
  padding: 60px 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
}

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

.page-contact__form-label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
  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: #999999;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2F6BFF;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: auto;
  min-width: 200px;
  display: block;
  margin: 0 auto;
}

/* Why Contact Section */
.page-contact__why-contact {
  padding: 60px 0;
}

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

.page-contact__advantage-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-contact__advantage-title {
  font-size: 20px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-contact__advantage-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-contact__faq-item {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-question:hover {
  background-color: #f0f5ff;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #e6efff;
  color: #2F6BFF;
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: #2F6BFF;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '-';
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Responsible Gambling Section */
.page-contact__responsible-gambling {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-contact__responsible-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact__dark-section {
  background-color: #2F6BFF;
  border-radius: 12px;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(47, 107, 255, 0.4);
}

/* General image styling */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 32px;
  }

  .page-contact__section-description {
    font-size: 17px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-contact__intro-text {
    font-size: 18px;
  }

  .page-contact__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-contact__btn {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .page-contact__method-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-contact__method-card {
    padding: 25px;
  }

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

  .page-contact__faq-question {
    font-size: 17px;
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  /* Top Section / Hero Section */
  .page-contact__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-contact__hero-content {
    padding: 0 15px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-contact__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-contact__cta-group {
    flex-direction: column !important;
    gap: 10px;
  }
  .page-contact__btn {
    width: 100% !important;
    max-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__btn--small {
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-contact__btn--large {
    padding: 14px 20px;
    font-size: 18px;
  }

  /* General Section Styling */
  .page-contact__section {
    padding: 30px 0;
  }
  .page-contact__section-title {
    font-size: 26px;
    margin-bottom: 15px;
    padding: 0 15px;
  }
  .page-contact__section-description {
    font-size: 15px;
    margin-bottom: 25px;
    padding: 0 15px;
  }
  .page-contact__article-wrap,
  .page-contact__dark-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Contact Methods Grid */
  .page-contact__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__method-text {
    font-size: 15px;
  }

  /* Contact Form */
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-label {
    font-size: 16px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-contact__form-submit-btn {
    min-width: unset;
    width: 100%;
  }

  /* Why Contact Section */
  .page-contact__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__advantage-item {
    padding: 20px;
  }
  .page-contact__advantage-title {
    font-size: 18px;
  }
  .page-contact__advantage-text {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-contact__faq-question {
    font-size: 16px;
    padding: 15px 15px;
  }
  .page-contact__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 15px;
  }

  /* Responsible Gambling Section */
  .page-contact__responsible-image {
    margin: 20px auto;
  }

  /* All images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}