/* style/contact.css */

/* Custom Colors */
:root {
  --page-contact-primary: #11A84E;
  --page-contact-secondary: #22C768;
  --page-contact-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-contact-card-bg: #11271B;
  --page-contact-background: #08160F;
  --page-contact-text-main: #F2FFF6;
  --page-contact-text-secondary: #A7D9B8;
  --page-contact-border: #2E7A4E;
  --page-contact-glow: #57E38D;
  --page-contact-gold: #F2C14E;
  --page-contact-divider: #1E3A2A;
  --page-contact-deep-green: #0A4B2C;
}

/* Base styles for the contact page, assuming a dark body background from shared.css */
.page-contact {
  background-color: var(--page-contact-background);
  color: var(--page-contact-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-contact-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-contact__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--page-contact-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact p {
  color: var(--page-contact-text-secondary);
  margin-bottom: 15px;
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

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

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

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

.page-contact__hero-title {
  font-size: clamp(32px, 5vw, 54px);
  color: var(--page-contact-text-main);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-contact__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-contact-text-secondary);
  margin-bottom: 30px;
}

.page-contact__hero-cta-button {
  display: inline-block;
  background: var(--page-contact-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-contact__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__introduction-section, 
.page-contact__form-section, 
.page-contact__commitment-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-contact-divider);
}

.page-contact__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-contact__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-contact__channels-section {
  padding: 60px 0;
  background-color: var(--page-contact-card-bg);
  border-bottom: 1px solid var(--page-contact-divider);
}

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

.page-contact__channel-card {
  background-color: var(--page-contact-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-contact-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__card-title {
  font-size: 24px;
  color: var(--page-contact-text-main);
  margin-bottom: 15px;
}

.page-contact__channel-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--page-contact-glow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__channel-link:hover {
  color: var(--page-contact-gold);
}

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

.page-contact__social-link {
  color: var(--page-contact-glow);
  text-decoration: none;
  font-weight: bold;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: var(--page-contact-card-bg);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--page-contact-border);
}

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

.page-contact__form-label {
  display: block;
  color: var(--page-contact-text-main);
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--page-contact-border);
  border-radius: 5px;
  background-color: var(--page-contact-background);
  color: var(--page-contact-text-main);
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--page-contact-text-secondary);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--page-contact-glow);
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  background: var(--page-contact-button-gradient);
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-contact__when-to-contact-section {
  padding: 60px 0;
  background-color: var(--page-contact-background);
  border-bottom: 1px solid var(--page-contact-divider);
}

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

.page-contact__list-item {
  background-color: var(--page-contact-card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--page-contact-border);
  color: var(--page-contact-text-secondary);
  font-size: 16px;
}

.page-contact__list-item strong {
  color: var(--page-contact-text-main);
}

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

.page-contact__point-item {
  background-color: var(--page-contact-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-contact-border);
}

.page-contact__point-title {
  font-size: 24px;
  color: var(--page-contact-text-main);
  margin-bottom: 15px;
}

.page-contact__point-item p {
  color: var(--page-contact-text-secondary);
}

.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--page-contact-card-bg);
}

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

.page-contact__faq-item {
  background-color: var(--page-contact-background);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-contact-border);
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: var(--page-contact-text-main);
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-question:hover {
  background-color: var(--page-contact-deep-green);
}

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: var(--page-contact-deep-green);
}

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  color: var(--page-contact-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-contact__hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .page-contact__hero-description {
    font-size: clamp(16px, 4vw, 18px);
  }

  .page-contact__hero-cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-contact__introduction-section, 
  .page-contact__channels-section, 
  .page-contact__form-section, 
  .page-contact__when-to-contact-section, 
  .page-contact__commitment-section, 
  .page-contact__faq-section {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-contact__section-description {
    font-size: clamp(15px, 3.5vw, 17px);
  }

  .page-contact__content-wrapper {
    flex-direction: column;
  }

  /* Images responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-contact__hero-image-wrapper, .page-contact__image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__channels-grid,
  .page-contact__contact-list,
  .page-contact__commitment-points {
    grid-template-columns: 1fr;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px) !important;
    padding: 10px !important;
    font-size: 15px !important;
  }

  .page-contact__submit-button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

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

/* Ensure all content containers have proper mobile padding and overflow */
.page-contact__hero-section,
.page-contact__introduction-section .page-contact__container,
.page-contact__channels-section .page-contact__container,
.page-contact__form-section .page-contact__container,
.page-contact__when-to-contact-section .page-contact__container,
.page-contact__commitment-section .page-contact__container,
.page-contact__faq-section .page-contact__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-contact__introduction-section .page-contact__container,
  .page-contact__channels-section .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__when-to-contact-section .page-contact__container,
  .page-contact__commitment-section .page-contact__container,
  .page-contact__faq-section .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}