/* style/contact.css */
.page-contact {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-contact__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for Login/Register */
  color: #FFFF00; /* Custom font color for Login/Register */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-contact__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-contact__section-title {
  font-size: 2.8em;
  color: #017439; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text on dark background */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-contact__methods-section,
.page-contact__form-section,
.page-contact__location-section,
.page-contact__faq-section,
.page-contact__cta-banner {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background for sections */
  color: #ffffff;
}

.page-contact__methods-section {
  background-color: #017439; /* Brand color for contact methods section */
}

.page-contact__methods-section .page-contact__section-title,
.page-contact__methods-section .page-contact__section-description {
  color: #ffffff;
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 380px; /* Ensure cards have consistent height */
}

.page-contact__method-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
}

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

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

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

.page-contact__form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.page-contact__form-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.page-contact__location-section {
  background-color: #017439;
}

.page-contact__location-section .page-contact__section-title,
.page-contact__location-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__location-details {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
  color: #ffffff;
}

.page-contact__location-details strong {
  color: #FFFF00;
}

.page-contact__location-map {
  display: block;
  margin: 40px auto 0 auto;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
  color: #ffffff;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  user-select: none;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

.page-contact__faq-qtext {
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  color: #FFFF00; /* Custom color for toggle */
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-contact__faq-answer ul {
  margin-left: 20px;
  list-style-type: disc;
}

.page-contact__faq-answer li {
  margin-bottom: 5px;
}

.page-contact__faq-answer a {
  color: #FFFF00; /* Custom color for links in FAQ */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #e02020;
}

.page-contact__cta-banner {
  background-color: #C30808; /* Custom color for CTA banner */
  text-align: center;
}

.page-contact__cta-banner .page-contact__section-title,
.page-contact__cta-banner .page-contact__section-description {
  color: #ffffff;
}

.page-contact__cta-title {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-contact__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__hero-buttons,
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
  }
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__location-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    padding: 40px 0;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__method-card {
    min-height: auto;
  }
  .page-contact__method-icon {
    width: 100px;
    height: 100px;
  }
  .page-contact__method-title {
    font-size: 1.5em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__location-details,
  .page-contact__faq-item summary,
  .page-contact__faq-answer {
    font-size: 0.95em;
  }
  .page-contact__faq-item summary {
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-contact__cta-title {
    font-size: 2em;
  }
  .page-contact__cta-description {
    font-size: 1em;
  }

  /* Responsive images */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

/* Ensure images in content area are not too small */
.page-contact img:not(.page-contact__method-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific adjustment for method icons which are meant to be smaller but still > 100px */
.page-contact__method-icon {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
}

@media (max-width: 768px) {
    .page-contact__method-icon {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
    }
}

/* Custom colors for specific elements based on rules */
.page-contact__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-contact__faq-toggle {
  color: #FFFF00; /* Toggle color */
}

.page-contact__faq-answer a {
  color: #FFFF00; /* Link color in FAQ */
}

.page-contact__location-details strong {
  color: #FFFF00;
}

.page-contact__cta-banner {
  background-color: #C30808; /* CTA banner background */
}

.page-contact a {
    color: #FFFF00; /* Default link color */
}

.page-contact a:hover {
    color: #e02020;
}