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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-contact__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px; /* Spacing between image and text */
}

.page-contact__hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1; /* Ensure text is above any potential background effect, but not *on* the image */
}

.page-contact__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #FF8C1A; /* Main color */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6; /* Text Main */
}

.page-contact__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

.page-contact__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Main color */
  border: 2px solid #A84F0C; /* Border color */
}

.page-contact__btn-secondary:hover {
  transform: translateY(-2px);
  background: #FF8C1A; /* Main color */
  color: #ffffff;
  border-color: #FF8C1A;
}

/* General Section Styling */
.page-contact__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-contact__section:last-of-type {
  border-bottom: none;
}

.page-contact__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Contact Form Section */
.page-contact__form-section {
  background: #0D0E12; /* Background */
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  background: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 243, 230, 0.6); /* Lighter version of Text Main */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FFA53A; /* Auxiliary color */
  box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

.page-contact__form-submit {
  width: 100%;
  font-size: 1.1em;
  padding: 15px;
}

/* Other Contact Methods Section */
.page-contact__methods-section {
  background: #0D0E12; /* Background */
  padding-top: 20px; /* Less padding after form */
}

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

.page-contact__method-card {
  background: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__card-icon {
  width: 100%; /* Image takes full width of card */
  height: auto;
  max-width: 250px; /* Limit max size for smaller images */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.6em;
  color: #FF8C1A; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #FF8C1A; /* Main color */
  color: #ffffff;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-contact__social-icon:hover {
  background: #FFA53A; /* Auxiliary color */
  transform: translateY(-2px);
}

/* Call to Action Section */
.page-contact__cta-section {
  background: #FF8C1A; /* Main color */
  text-align: center;
  padding: 80px 0;
  border-bottom: none;
}

.page-contact__dark-section {
  background: #FF8C1A;
  color: #ffffff; /* Forced white text for contrast */
}

.page-contact__text-contrast-fix {
  color: #ffffff !important; /* Ensure text is white on dark background */
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__hero-image {
    width: calc(100% - 40px); /* Adjust for padding */
    margin: 0 auto 20px auto;
  }

  .page-contact__hero-section {
    padding-bottom: 30px;
  }

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

  .page-contact__description {
    font-size: 1em;
  }

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

  .page-contact__section-title {
    font-size: clamp(1.6em, 3vw, 2.5em);
  }

  .page-contact__method-cards {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (Hero) */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 20px;
  }
  
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-contact__main-title {
    font-size: 2.2em; /* Fixed size for mobile */
    margin-bottom: 10px;
  }

  .page-contact__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-contact__hero-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    padding: 0 15px; /* Add padding to button container */
    box-sizing: border-box;
  }

  /* 2. Single Column Long Text Container (General Sections) */
  .page-contact__section {
    padding: 30px 0;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__section-title {
    font-size: 1.8em; /* Fixed size for mobile */
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    font-size: 0.9em;
    margin-bottom: 25px;
  }

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

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

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

  /* 3. Universal Images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__method-cards {
    grid-template-columns: 1fr; /* Stack method cards vertically */
    gap: 20px;
  }

  .page-contact__card-icon {
    max-width: 200px; /* Slightly smaller for mobile cards */
  }

  /* 4. Buttons and Button Containers */
  .page-contact__btn,
  .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; /* Ensure button text has padding */
  }
  
  .page-contact__hero-cta,
  .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-direction: column !important; /* Stack buttons vertically in groups */
    gap: 10px; /* Adjust gap for stacked buttons */
  }

  /* 5. Registration Tutorial / FAQ Block (for this page, it's FAQ) */
  .page-contact__faq-section {
    padding: 30px 0;
  }

  .page-contact__faq-item {
    margin-bottom: 15px;
  }

  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-contact__faq-answer {
    padding: 15px;
    font-size: 0.9em;
  }

  .page-contact__cta-section {
    padding: 40px 0;
  }
}