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

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

.page-contact__hero-section {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

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

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.05em;
  cursor: pointer;
  border: none;
}

.page-contact__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
}

.page-contact__button--primary:hover {
  background-color: #e0a53b;
}

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

.page-contact__button--secondary:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

.page-contact__button--tertiary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text */
  border: 1px solid #FCBC45;
  padding: 12px 25px;
}

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

.page-contact__methods-section,
.page-contact__security-section,
.page-contact__feedback-section,
.page-contact__faqs-section,
.page-contact__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for content sections */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #000000; /* Dark text for titles */
  text-align: center;
  margin-bottom: 20px;
}

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

.page-contact__methods-grid {
  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: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-image {
  width: 100%; /* Ensure image fills card width */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-contact__method-description {
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-contact__security-item {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  color: #333333;
  font-size: 1.05em;
}

.page-contact__security-item strong {
  color: #000000;
}

.page-contact__security-section .page-contact__button {
  margin-top: 40px;
}

.page-contact__feedback-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

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

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

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__feedback-form .page-contact__button--primary {
  width: auto;
  margin-top: 15px;
}

.page-contact__faqs-section {
  background-color: #e9e9e9;
}

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-contact__faq-answer {
  color: #555555;
  font-size: 1em;
}

.page-contact__faqs-section .page-contact__button {
  margin-top: 30px;
}

.page-contact__cta-section {
  text-align: center;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF; /* White text */
}

.page-contact__cta-section .page-contact__section-title {
  color: #FCBC45; /* Emphasize CTA title */
}

.page-contact__cta-section .page-contact__section-intro {
  color: #f0f0f0;
}

.page-contact__cta-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

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

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

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

  .page-contact__method-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

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

  .page-contact__feedback-form {
    padding: 25px;
  }
  
  /* Ensure all images within .page-contact are responsive and don't overflow */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__security-section,
  .page-contact__feedback-section,
  .page-contact__faqs-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

  .page-contact__button {
    font-size: 0.95em;
    padding: 12px 20px;
  }
}