/* style/contact.css */

/* --- General Styles for Page Contact --- */
.page-contact {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Use clamp for H2 */
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-contact a:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure nothing spills out */
  box-sizing: border-box;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 40px; /* Space between image and content */
  max-width: 100%;
}

.page-contact__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-contact__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Use clamp for H1 */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-contact__hero-description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(87, 227, 141, 0.3); /* Glow */
}

/* --- Contact Info Section --- */
.page-contact__info-section {
  padding: 60px 0;
  background: #08160F; /* Background */
}

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

.page-contact__method-card {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Push button to bottom */
  box-sizing: border-box;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.4); /* Glow */
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-width: 150px; /* Control icon size within card */
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
  min-width: 200px;
}

.page-contact__method-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow */
}

.page-contact__method-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__method-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  padding: 60px 0;
  background: #0A4B2C; /* Deep Green */
}

.page-contact__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  background: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-contact__form-image {
  flex: 1 1 400px; /* Allow image to grow/shrink */
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
  min-width: 200px;
}

.page-contact__contact-form {
  flex: 1 1 400px; /* Allow form to grow/shrink */
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.page-contact__form-label {
  font-size: 16px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  background: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 6px;
  color: #F2FFF6; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #57E38D; /* Glow */
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3); /* Glow */
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(87, 227, 141, 0.4); /* Glow */
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 60px 0;
  background: #08160F; /* Background */
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contact__faq-item {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-contact__faq-item[open] {
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.2); /* Glow */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-contact__faq-item[open] > .page-contact__faq-question {
  background: #0A4B2C; /* Deep Green */
}

.page-contact__faq-question:hover {
  background: rgba(87, 227, 141, 0.1); /* Glow with transparency */
}

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

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: normal;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

/* --- Call to Action Section (Bottom) --- */
.page-contact__cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
  text-align: center;
}

.page-contact__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
  border-radius: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    width: 100%;
    height: auto; /* Adjust height for medium screens, but keep auto for responsiveness */
  }

  .page-contact__form-image {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .page-contact__contact-form {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .page-contact__form-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-contact__hero-description {
    font-size: 18px;
  }

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

  .page-contact__section-description {
    font-size: 16px;
  }

  /* Universal mobile responsiveness for images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Universal mobile responsiveness for containers with images/content */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__methods-grid,
  .page-contact__faq-list,
  .page-contact__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  /* Buttons mobile responsiveness */
  .page-contact__cta-button,
  .page-contact__method-button,
  .page-contact__submit-button,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Ensure text doesn't touch edges */
    padding-right: 15px !important;
  }

  /* If multiple buttons in a row, make them stack or wrap */
  .page-contact__cta-buttons,
  .page-contact__button-group { /* Add specific classes if needed */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Space between stacked buttons */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__method-icon {
    max-width: 120px; /* Adjust max-width for smaller icons in mobile view */
    min-width: 100px; /* Ensure minimum size is still met for mobile */
    min-height: 100px;
  }

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

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

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(24px, 10vw, 32px);
  }
  .page-contact__hero-image {
    height: auto; /* Further adjust height for small screens, but keep auto for responsiveness */
  }
}