/* style/contact.css */

/* Variables for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background sections */
  background-color: var(--background-dark); /* Default background for the page */
}

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

/* Section common styles */
.page-contact__hero-section,
.page-contact__contact-methods,
.page-contact__contact-form-section,
.page-contact__faq-section,
.page-contact__additional-info {
  padding: 60px 0;
  text-align: center;
}

.page-contact__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-contact__light-bg {
  background-color: var(--text-main);
  color: #333333; /* Dark text for light background */
}

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles header offset, this is just internal spacing */
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height to prevent image being too tall */
  margin-bottom: 40px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-contact__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

/* 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: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-contact__btn-secondary {
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: var(--text-main);
  color: #333333;
}

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

.page-contact__method-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333333;
}

.page-contact__method-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__method-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__method-link:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-contact__social-media {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.page-contact__social-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333333;
}

.page-contact__social-description {
  font-size: 16px;
  color: #666666;
  margin-bottom: 30px;
}

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

.page-contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-contact__form-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-contact__form-image-wrapper {
  flex: 1 1 400px;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__form {
  flex: 1 1 450px;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--divider-color);
  background-color: var(--deep-green);
  color: var(--text-main);
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.3);
}

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

.page-contact__form-submit {
  width: auto;
  padding: 15px 40px;
  cursor: pointer;
  border: none;
  font-size: 18px;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: var(--text-main);
  color: #333333;
}

.page-contact__faq-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.page-contact__faq-image-wrapper {
  flex: 1 1 400px;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__faq-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__faq-list {
  flex: 1 1 500px;
  min-width: 300px;
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-contact__faq-item[open] > .page-contact__faq-question,
.page-contact__faq-item.active .page-contact__faq-question {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-contact__faq-item[open] > .page-contact__faq-question .page-contact__faq-toggle,
.page-contact__faq-item.active .page-contact__faq-question .page-contact__faq-toggle {
  color: #ffffff;
}

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

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
  text-align: left;
  background-color: #ffffff;
}

.page-contact__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* Additional Info Section */
.page-contact__additional-info {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-contact__info-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 600px;
  text-align: left;
}

.page-contact__info-list li {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 25px;
}

.page-contact__info-list li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-contact__info-list li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-contact__info-list li a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.page-contact__final-cta {
  font-size: 20px;
  font-weight: bold;
  margin-top: 50px;
  color: var(--gold-color);
}

.page-contact__text-link {
  color: var(--glow-color);
  text-decoration: none;
  border-bottom: 2px solid var(--glow-color);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__text-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-contact__hero-image {
    max-height: 400px;
  }
  .page-contact__section-title {
    font-size: clamp(24px, 4vw, 40px);
  }
  .page-contact__section-description {
    font-size: clamp(15px, 2vw, 17px);
  }
  .page-contact__method-grid {
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__form-content,
  .page-contact__faq-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-contact__form,
  .page-contact__faq-list {
    width: 100%;
    flex: none;
  }
  .page-contact__form-image-wrapper,
  .page-contact__faq-image-wrapper {
    order: -1; /* Image above form/FAQ list on smaller screens */
    width: 100%;
    flex: none;
  }
  .page-contact__form-image,
  .page-contact__faq-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__additional-info {
    padding: 40px 0;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__hero-image {
    max-height: 300px;
  }
  .page-contact__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-contact__hero-description {
    font-size: clamp(16px, 2.5vw, 18px);
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__method-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__social-links {
    gap: 15px;
  }
  .page-contact__social-link {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  .page-contact__form-image-wrapper,
  .page-contact__faq-image-wrapper {
    padding: 0 15px;
  }
  .page-contact__form-image,
  .page-contact__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__form {
    padding: 30px 20px;
  }
  .page-contact__form-submit {
    width: 100%;
  }
  .page-contact__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
  .page-contact__info-list {
    margin: 30px auto;
    padding: 0 15px;
  }
  .page-contact__info-list li {
    font-size: 16px;
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    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;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-image {
    max-height: 250px;
  }
  .page-contact__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-contact__hero-description {
    font-size: clamp(14px, 3vw, 16px);
  }
  .page-contact__section-title {
    font-size: clamp(22px, 5vw, 32px);
  }
  .page-contact__section-description {
    font-size: clamp(14px, 3vw, 16px);
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__form-image,
  .page-contact__faq-image {
    max-width: 90%;
  }
  .page-contact__social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .page-contact__info-list li {
    font-size: 15px;
  }
  .page-contact__final-cta {
    font-size: 18px;
  }
}