/* style/contact.css */

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

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

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

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

.page-contact__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%; /* Ensure image is responsive */
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-contact__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--kc6-gold); /* Gold color for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--kc6-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1em;
  color: var(--kc6-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Info Section (Contact Methods) */
.page-contact__info-section {
  padding: 80px 0;
  background-color: var(--kc6-card-bg); /* Darker background for contrast */
}

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

.page-contact__method-card {
  background-color: var(--kc6-bg-dark); /* Card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--kc6-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon {
  width: 200px; /* Minimum display size 200x200px */
  height: 200px; /* Ensure aspect ratio is maintained, or set to auto if content allows */
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: var(--kc6-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-description {
  font-size: 0.95em;
  color: var(--kc6-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button is responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-contact__btn-primary {
  background: var(--kc6-btn-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

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

.page-contact__btn-secondary {
  background-color: transparent;
  color: var(--kc6-primary); /* Primary color text for secondary button */
  border: 2px solid var(--kc6-primary);
}

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

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--kc6-bg-dark);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: var(--kc6-card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--kc6-border);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--kc6-text-main);
  font-weight: bold;
}

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

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

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

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

.page-contact__form-submit-btn {
  width: auto; /* Allow button to size itself, not 100% */
  min-width: 180px;
  margin-top: 15px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--kc6-card-bg);
}

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

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

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--kc6-text-main);
  background-color: var(--kc6-deep-green);
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-item summary:hover {
  background-color: var(--kc6-primary);
}

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

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

.page-contact__faq-answer {
  padding: 20px 25px;
  border-top: 1px solid var(--kc6-border);
  background-color: var(--kc6-bg-dark);
  font-size: 0.95em;
  color: var(--kc6-text-secondary);
}

.page-contact__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: var(--kc6-bg-dark);
  text-align: center;
}

.page-contact__cta-button {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 15px 35px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__hero-image {
    margin-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-contact__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

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

  .page-contact__contact-methods {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

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

  .page-contact__method-icon {
    width: 200px !important; /* Min size 200px */
    height: 200px !important;
  }

  .page-contact__contact-form {
    padding: 30px 20px;
  }

  .page-contact__form-label {
    font-size: 1em;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* All images must be responsive and not overflow */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/buttons must be responsive */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-contact__faq-item summary {
    font-size: 1em;
    padding: 18px 20px;
  }

  .page-contact__faq-answer {
    padding: 18px 20px;
  }
}

/* Color Contrast Enforcement */
/* body background is dark via shared.css, so main text color is light */
.page-contact {
  color: var(--kc6-text-main); /* #F2FFF6 */
}

.page-contact__hero-content {
  color: var(--kc6-text-secondary); /* #A7D9B8 */
}

.page-contact__method-card {
  background-color: var(--kc6-bg-dark); /* #08160F */
  color: var(--kc6-text-main); /* #F2FFF6 */
}

.page-contact__contact-form {
  background-color: var(--kc6-card-bg); /* #11271B */
  color: var(--kc6-text-main); /* #F2FFF6 */
}

.page-contact__faq-item {
  background-color: var(--kc6-bg-dark); /* #08160F */
  color: var(--kc6-text-main); /* #F2FFF6 */
}

.page-contact__faq-item summary {
  background-color: var(--kc6-deep-green); /* #0A4B2C */
  color: var(--kc6-text-main); /* #F2FFF6 */
}

.page-contact__faq-answer {
  background-color: var(--kc6-bg-dark); /* #08160F */
  color: var(--kc6-text-secondary); /* #A7D9B8 */
}

/* Ensure contrast for buttons */
.page-contact__btn-primary {
  color: #ffffff; /* White text on gradient background */
}

.page-contact__btn-secondary {
  color: var(--kc6-primary); /* #11A84E text on transparent/dark background */
}
.page-contact__btn-secondary:hover {
  color: #ffffff; /* White text on primary color background */
}

/* Specific content area image CSS size lower bound */
.page-contact__hero-image,
.page-contact__method-icon {
  min-width: 200px;
  min-height: 200px;
  height: auto; /* Allow height to adjust naturally */
}