.page-contact {
  color: #333333; /* Default text color for light body background */
}

.page-contact__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-contact__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-contact__hero-description {
  font-size: 1.15em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-contact__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-contact__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: none;
}

.page-contact__button--primary:hover {
  background-color: #e0a73d;
  transform: translateY(-2px);
}

.page-contact__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-contact__button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-contact__info-section {
  background-color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-contact__info-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__info-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000;
}

.page-contact__info-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.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: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-contact__method-icon {
  width: 250px; /* Min 200px, using 250px for better visual */
  height: 187px; /* Aspect ratio 4:3 for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 2px solid #FCBC45;
}

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

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

.page-contact__method-detail {
  font-size: 1.1em;
  font-weight: 600;
  color: #FCBC45;
  margin-bottom: 25px;
}

.page-contact__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
}

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

.page-contact__form-section {
  background-color: #f2f2f2;
  padding: 80px 20px;
}

.page-contact__form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-contact__form-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #000000;
}

.page-contact__form-description {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center;
  color: #666666;
}

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

.page-contact__form-label {
  display: block;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000000;
}

.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: #fdfdfd;
  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;
  min-height: 120px;
}

.page-contact__button--submit {
  width: 100%;
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 15px;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-contact__button--submit:hover {
  background-color: #e0a73d;
  transform: translateY(-2px);
}

.page-contact__cta-section {
  background-color: #000000; /* Main color for CTA background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-contact__cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-contact__cta-description {
  font-size: 1.15em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }

  .page-contact__info-title,
  .page-contact__cta-title {
    font-size: 2.4em;
  }

  .page-contact__form-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
  }

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__button {
    width: 100%;
    padding: 12px 25px;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__cta-section {
    padding: 50px 15px;
  }

  .page-contact__info-title,
  .page-contact__cta-title {
    font-size: 2em;
  }

  .page-contact__info-description,
  .page-contact__form-description,
  .page-contact__cta-description {
    font-size: 0.95em;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }

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

  .page-contact__method-icon {
    width: 200px; /* Minimum allowed size */
    height: 150px;
  }

  .page-contact__method-title {
    font-size: 1.6em;
  }

  .page-contact__form-container {
    padding: 30px;
  }

  .page-contact__form-title {
    font-size: 1.8em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px); /* Adjust padding */
  }
  
  /* Mobile content area image overflow prevention */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }

  .page-contact__info-title,
  .page-contact__cta-title {
    font-size: 1.6em;
  }

  .page-contact__form-title {
    font-size: 1.5em;
  }

  .page-contact__button {
    font-size: 0.9em;
  }

  .page-contact__form-container {
    padding: 20px;
  }
}