.page-contact {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #000000; /* Dark background for hero content area */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly dim the background image to make text pop */
  z-index: 0;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #FFFFFF; /* Light text for dark hero background */
}

.page-contact__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-contact__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-contact__register-button,
.page-contact__login-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-contact__register-button {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-contact__register-button:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

.page-contact__login-button {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-contact__login-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-contact__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

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

.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section {
  padding: 80px 0;
}

.page-contact__info-section {
  background-color: #f8f8f8;
}

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

.page-contact__method-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 250px; /* Minimum 200px */
  height: 187px; /* Maintain aspect ratio for 400x300 at 250px width */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-contact__method-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-contact__method-text {
  font-size: 1.05em;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-contact__method-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-contact__method-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 24px);
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FCBC45;
  box-shadow: 0 0 0 3px rgba(252, 188, 69, 0.2);
  outline: none;
}

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #FCBC45;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__submit-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-contact__faq-section {
  background-color: #f0f0f0;
}

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

.page-contact__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.page-contact__faq-question {
  font-size: 1.3em;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000000;
  font-weight: 600;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-contact__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-contact__faq-answer {
  font-size: 1.05em;
  padding: 0 25px 20px 25px;
  margin: 0;
  color: #555555;
  line-height: 1.6;
  display: none;
}

.page-contact__faq-question.active + .page-contact__faq-answer {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 3em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__register-button,
  .page-contact__login-button {
    width: 80%;
  }
  .page-contact__method-icon {
    width: 220px;
    height: 165px; /* Adjust height to maintain aspect ratio */
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-contact__main-title {
    font-size: 2.5em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 2.2em;
  }
  .page-contact__section-description {
    margin-bottom: 40px;
  }
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-icon {
    width: 200px; /* Minimum 200px */
    height: 150px; /* Maintain aspect ratio for 400x300 at 200px width */
  }
  .page-contact__contact-form {
    padding: 30px;
  }
  .page-contact__faq-question {
    font-size: 1.2em;
    padding: 18px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 18px 20px;
  }

  /* Critical: Mobile content area image overflow prevention */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-section {
    padding: 40px 10px;
    min-height: 350px;
  }
  .page-contact__main-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 0.95em;
  }
  .page-contact__register-button,
  .page-contact__login-button {
    width: 95%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.9em;
  }
  .page-contact__method-icon {
    width: 200px; /* Still minimum 200px */
    height: 150px; 
  }
  .page-contact__method-title {
    font-size: 1.5em;
  }
  .page-contact__method-button {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
    font-size: 0.95em;
  }
  .page-contact__submit-button {
    padding: 12px;
    font-size: 1.1em;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 18px;
  }
  .page-contact__faq-answer {
    font-size: 0.95em;
    padding: 0 18px 15px 18px;
  }
}