/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Dark body background #0a0a0a, so text should be light */
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-contact__section-title {
  font-size: 3em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  background-color: #017439; /* Brand color as background */
}

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

.page-contact__hero-section .page-contact__container {
  position: relative;
  z-index: 2;
}

.page-contact__hero-title {
  font-size: 3.8em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-contact__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
  margin-right: 15px;
}

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

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

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

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-contact__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px;
}

.page-contact__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 240, 0, 0.1);
}

.page-contact__card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-contact__card-link,
.page-contact__card-address {
  color: #FFFF00; /* Highlight important links/info with custom yellow */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-contact__card-link:hover {
  color: #ffffff;
}

.page-contact__call-to-action {
  text-align: center;
  font-size: 1.2em;
  color: #f0f0f0;
  margin-top: 60px;
  padding: 20px;
  background: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
  border-radius: 10px;
}

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

.page-contact__dark-text {
  color: #333333;
}

.page-contact__form-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.page-contact__form-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-contact__form-illustration {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 300px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

.page-contact__form-label {
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

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

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

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

.page-contact__form-note {
  font-size: 0.9em;
  color: #666666;
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-contact__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-contact__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
  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;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
}

/* Social Media Section */
.page-contact__social-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  text-align: center;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-contact__social-link {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__social-link:hover {
  transform: translateY(-5px);
  background-color: #017439;
}

.page-contact__social-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__social-note {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 30px;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #017439;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__cta-section .page-contact__container {
  position: relative;
  z-index: 2;
}

.page-contact__cta-section .page-contact__section-title {
  color: #ffffff;
}

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

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure responsiveness */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included */
  overflow: hidden; /* Prevent overflow */
}

.page-contact__btn-register {
  background: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-contact__btn-register:hover {
  background: #a30606;
  border-color: #a30606;
}

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

.page-contact__btn-login:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

.page-contact__cta-image {
  position: absolute;
  bottom: -50px; /* Adjust as needed */
  right: -50px; /* Adjust as needed */
  width: 400px;
  height: auto;
  opacity: 0.1;
  z-index: 1;
  transform: rotate(15deg);
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__section-title {
    font-size: 2.5em;
  }
  .page-contact__form-content {
    flex-direction: column;
  }
  .page-contact__form-image-wrapper {
    order: -1; /* Move image above form on smaller screens */
  }
  .page-contact__card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__section-intro {
    font-size: 1em;
  }
  .page-contact__contact-cards {
    grid-template-columns: 1fr;
  }
  .page-contact__form-content {
    gap: 30px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 20px;
  }
  .page-contact__social-link {
    width: 60px;
    height: 60px;
  }
  .page-contact__social-icon {
    width: 48px;
    height: 48px;
  }

  /* Mobile image and video responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact video {
    max-width: 100% !important;
    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;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-contact__card-title {
    font-size: 1.5em;
  }
  .page-contact__card-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px;
  }
}