/* style/contact.css */

/* Body background is #121212 (dark), so use light text color for main content */
.page-contact {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #005f2c);
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H1 as per brand guide */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ffffff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: #C30808; /* Custom color for Register/Login buttons */
  color: #FFFF00; /* Custom font color for Register/Login buttons */
  border: 2px solid #C30808;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
  background: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin-left: 20px;
}

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #005f2c;
  transform: translateY(-2px);
}

/* Section Titles */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Use primary brand color for titles on light background */
}

.page-contact__section-intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Dark text on light background */
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background: #ffffff; /* Light background */
  color: #333333; /* Dark text on light background */
}

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

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

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-contact__method-icon {
  width: 100%; /* Ensure images take full width */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-contact__method-description {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #555555;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: #017439;
  text-decoration: none;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background: #1a1a1a; /* Dark background */
  color: #ffffff; /* Light text */
}

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

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

.page-contact__form-label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  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.4);
}

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

.page-contact__form-submit-button {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: #017439;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit-button:hover {
  background: #005f2c;
  transform: translateY(-2px);
}

.page-contact__privacy-note {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
  color: #cccccc;
}

.page-contact__privacy-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

.page-contact__privacy-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-contact__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background: #eaf7ed;
  border-bottom: 1px solid #d0e7d7;
  user-select: none;
  list-style: none; /* Remove default marker for details summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-contact__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #017439;
  width: 25px;
  text-align: center;
}

.page-contact__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #555555;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: 1px solid #d0e7d7;
}

/* CTA Banner Section */
.page-contact__cta-banner {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2c);
  color: #ffffff;
}

.page-contact__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for titles on dark background */
}

.page-contact__cta-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-contact__description {
    font-size: 1rem;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin for single column */
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-buttons-group {
    flex-direction: column;
    gap: 0; /* Adjust gap for vertical stacking */
  }

  .page-contact__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-contact__section-intro {
    font-size: 1rem;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    padding: 40px 0;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-contact__form-label {
    font-size: 1rem;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
    font-size: 0.95rem;
  }

  .page-contact__form-submit-button {
    font-size: 1.1rem;
  }

  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  .page-contact__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-contact__cta-description {
    font-size: 1rem;
  }
  
  /* Force responsive for all images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__hero-image-wrapper,
  .page-contact__contact-methods,
  .page-contact__method-card,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__faq-item,
  .page-contact__cta-banner,
  .page-contact__cta-buttons-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-contact__cta-buttons-group {
    gap: 10px;
  }
}

@media (min-width: 769px) {
  .page-contact__cta-button + .page-contact__cta-button {
    margin-left: 20px;
  }
}