.page-contact {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  min-height: 500px;
}

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

.page-contact__hero-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-contact__hero-title {
  font-size: 3em;
  color: #FFD700; /* Main brand color */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

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

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #FFD700, #8B0000); /* Gold to Dark Red gradient */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-contact__cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-contact__details-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-contact__details-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 40px;
}

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

.page-contact__detail-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

.page-contact__card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 25px;
}

.page-contact__card-button {
  display: inline-block;
  background: #8B0000; /* Auxiliary color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-contact__card-button:hover {
  background-color: #ae4d4d;
}

.page-contact__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Example size, ensuring >= 200px */
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-contact__form-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for form */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  z-index: 0;
  text-align: center;
}

.page-contact__form-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2; /* Subtle background */
}

.page-contact__form-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.page-contact__form-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.page-contact__form-group {
  text-align: left;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #8B0000;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  outline: none;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #bbb;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.page-contact__form-submit-button {
  background: none; /* Remove default button background */
  border: none; /* Remove default button border */
  padding: 0; /* Remove default button padding */
  cursor: pointer;
  display: block; /* Make button fill its container */
  width: 100%;
}

.page-contact__form-submit-link {
  display: inline-block;
  background: linear-gradient(90deg, #FFD700, #8B0000);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  width: 100%; /* Ensure the link fills the button area */
}

.page-contact__form-submit-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-contact__faq-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
}

.page-contact__faq-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 40px;
}

.page-contact__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
}

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

.page-contact__faq-answer {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-contact__faq-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
  color: #ae4d4d; /* Lighter red on hover */
}

.page-contact__faq-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  object-fit: contain;
  opacity: 0.1;
  z-index: 0;
}

.page-contact__register-cta-section {
  background: linear-gradient(135deg, #8B0000, #FFD700); /* Dark Red to Gold gradient */
  padding: 60px 20px;
  text-align: center;
  margin: 60px 0;
  border-radius: 0;
}

.page-contact__register-cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

.page-contact__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--large:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__details-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: var(--header-offset, 80px);
  }
  .page-contact__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__details-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__register-cta-title {
    font-size: 2em;
  }
  .page-contact__details-grid,
  .page-contact__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__form-section {
    padding: 30px 20px;
  }
  .page-contact__faq-image {
    width: 300px;
    height: 225px;
  }
  /* Mobile content area images must be responsive */
  .page-contact__hero-image,
  .page-contact__card-image,
  .page-contact__form-background-image,
  .page-contact__faq-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__hero-container {
    padding: 20px;
  }
  .page-contact__details-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__register-cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }
  .page-contact__form-submit-link {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__register-cta-title {
    font-size: 2.2em;
  }
  .page-contact__register-cta-description {
    font-size: 1em;
  }
  .page-contact__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}