/* style/contact.css */

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

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: var(--hi2999-text-main); /* Default text color for the page */
  background-color: var(--hi2999-bg); /* Page background from custom colors */
  line-height: 1.6;
}

/* Sections */
.page-contact__hero-section,
.page-contact__channels-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__why-choose-section,
.page-contact__cta-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Specific section backgrounds */
.page-contact__dark-section {
  background-color: var(--hi2999-card-bg); /* Darker background for contrast */
  color: var(--hi2999-text-main);
}

.page-contact__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum height */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly for visual flow */
  background-color: rgba(17, 39, 27, 0.9); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-contact__main-title {
  color: var(--hi2999-gold);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.page-contact__hero-description {
  color: var(--hi2999-text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-contact__section-title {
  color: var(--hi2999-gold);
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  color: var(--hi2999-text-secondary);
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin: 10px;
  min-width: 180px;
}

.page-contact__btn-primary {
  background: var(--hi2999-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-contact__btn-secondary:hover {
  background: var(--hi2999-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.3);
}

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

/* Channels Section */
.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(--hi2999-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px;
}

.page-contact__channel-title {
  color: var(--hi2999-gold);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-contact__channel-text {
  color: var(--hi2999-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__channel-btn {
  width: 100%;
  max-width: 200px;
}

/* Form Section */
.page-contact__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.page-contact__form-content {
  padding: 20px;
}

.page-contact__form-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px;
}

.page-contact__contact-form {
  margin-top: 30px;
  background-color: var(--hi2999-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--hi2999-secondary);
  box-shadow: 0 0 0 3px rgba(34, 199, 104, 0.3);
}

.page-contact__form-submit-btn {
  width: auto;
  padding: 12px 30px;
  margin-top: 10px;
  cursor: pointer;
}

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-contact__faq-item {
  background-color: var(--hi2999-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--hi2999-deep-green);
  color: var(--hi2999-text-main);
  font-weight: bold;
  font-size: 1.15em;
  cursor: pointer;
  border-bottom: 1px solid var(--hi2999-divider);
  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(--hi2999-primary);
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--hi2999-gold);
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  color: var(--hi2999-text-secondary);
  font-size: 1em;
  line-height: 1.7;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  max-height: 0; /* For JS-based accordion */
  overflow: hidden; /* For JS-based accordion */
}

/* For <details> tag, answer is visible by default when open */
.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding: 0 25px 20px;
}

/* FAQ image */
.page-contact__faq-image-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.page-contact__faq-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px;
}

/* Why Choose Section */
.page-contact__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-contact__benefit-item {
  background-color: var(--hi2999-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--hi2999-primary);
}

.page-contact__benefit-title {
  color: var(--hi2999-gold);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-contact__benefit-text {
  color: var(--hi2999-text-secondary);
  font-size: 0.95em;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 20px;
}

.page-contact__cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.page-contact__cta-content {
  text-align: left;
}

.page-contact__cta-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__cta-image {
  width: 100%;
  height: auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    margin-top: -100px;
    padding: 30px;
  }
  .page-contact__main-title {
    font-size: 2.2em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__form-grid,
  .page-contact__cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-contact__form-content,
  .page-contact__cta-content {
    order: 2;
    text-align: center;
  }
  .page-contact__form-image-wrapper,
  .page-contact__cta-image-wrapper {
    order: 1;
  }
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__channel-icon {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important;
  }
  .page-contact__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
    max-width: calc(100% - 30px);
  }
  .page-contact__main-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__why-choose-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

  .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,
  .page-contact__hero-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__why-choose-section,
  .page-contact__cta-section,
  .page-contact__hero-image-wrapper,
  .page-contact__hero-content,
  .page-contact__channels-grid,
  .page-contact__channel-card,
  .page-contact__form-grid,
  .page-contact__form-content,
  .page-contact__form-image-wrapper,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__faq-item,
  .page-contact__faq-image-wrapper,
  .page-contact__benefits-list,
  .page-contact__benefit-item,
  .page-contact__cta-grid,
  .page-contact__cta-content,
  .page-contact__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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;
    margin: 10px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-contact__channel-btn {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 1.5em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__hero-content {
    margin-top: -60px;
  }
  .page-contact__hero-image {
    min-height: 250px;
  }
}

/* Ensure contrast for text on card backgrounds */
.page-contact__channel-card,
.page-contact__contact-form,
.page-contact__faq-item,
.page-contact__benefit-item {
  color: var(--hi2999-text-main);
}

.page-contact__faq-answer p {
  color: var(--hi2999-text-secondary);
}

/* Special styles for text within dark sections to ensure contrast */
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__channel-text {
  color: var(--hi2999-text-secondary);
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__channel-title {
  color: var(--hi2999-gold);
}

/* Ensure form labels are visible */
.page-contact__form-label {
  color: var(--hi2999-text-main);
}