.page-contact {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: var(--secondary-color); /* White background as per color scheme */
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  padding: 40px 20px;
  color: #ffffff; /* White text over dark hero image */
  background-color: #000000; /* Fallback background for hero */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-contact__main-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-contact__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-size: 1em;
}

.page-contact__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-contact__button--register:hover {
  background-color: #f0f0f0;
  color: #333333;
}

.page-contact__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-contact__button--login:hover {
  background-color: #e0a53a;
  color: #000000;
}

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

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

.page-contact__methods-section,
.page-contact__faq-section,
.page-contact__form-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-contact__method-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 200px; /* Minimum size requirement */
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  border-radius: 5px;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-contact__method-text {
  color: #666666;
  margin-bottom: 20px;
}

.page-contact__phone-number {
  font-size: 1.3em;
  font-weight: bold;
  color: #FCBC45;
  margin-top: 15px;
}

.page-contact__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #000000;
  color: #ffffff;
}

.page-contact__button--small:hover {
  background-color: #333333;
}

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  color: #333333;
  background-color: #f9f9f9;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FCBC45;
  outline: none;
}

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

.page-contact__button--submit {
  width: 100%;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px;
  font-size: 1.1em;
  border-radius: 5px;
}

.page-contact__button--submit:hover {
  background-color: #e0a53a;
  color: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: 2em;
  }

  .page-contact__intro-text {
    font-size: 1em;
  }

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

  .page-contact__button {
    width: 100%;
    max-width: 300px;
  }

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

  /* Ensure images in content area are responsive and not too small */
  .page-contact__methods-grid img,
  .page-contact__contact-form img { /* This selector is just for demonstration, specific image classes should be used */
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }

  .page-contact__method-icon {
    width: 100%; /* Make icons fill card width */
    max-width: 250px; /* Limit max size on mobile */
    height: auto;
  }

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

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

  .page-contact__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }

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

  .page-contact__section-description {
    font-size: 0.95em;
  }
}