/* style/contact.css */

/* Base styles for .page-contact */
.page-contact {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
}

.page-contact__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-contact__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-contact__description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 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;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
  background-color: #1a8cc2;
  border-color: #1a8cc2;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 15px;
}

.page-contact__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Card styles */
.page-contact__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white over dark body */
  color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Section Backgrounds */
.page-contact__dark-section {
  background-color: #0a0a0a; /* Explicitly dark for content areas */
  color: #ffffff;
  padding: 80px 0;
}

.page-contact__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #ffffff;
  padding: 80px 0;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-contact__method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px;
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 40px;
  position: relative;
  display: grid;
  gap: 20px;
}

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter card for FAQ */
  border-left: 5px solid #26A9E0;
  text-align: left;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-contact__faq-question:hover {
  color: #26A9E0;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #e0e0e0;
}

.page-contact__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
}

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

.page-contact__commitment-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-contact__commitment-heading {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-contact__commitment-item p {
  color: #e0e0e0;
  font-size: 1em;
}

.page-contact__commitment-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #222;
  color: #FFFFFF;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #aaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: auto;
  padding: 15px 40px;
  margin-top: 20px;
  background-color: #EA7C07; /* Login color for submit button */
  border-color: #EA7C07;
}

.page-contact__form-submit-btn:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-contact__form-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
}

/* CTA Section */
.page-contact__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

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

/* Global image settings to prevent small icons */
.page-contact img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distorting */
  filter: none; /* Absolutely no CSS filters allowed */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
  }
  .page-contact__hero-image-wrapper {
    max-height: 400px;
  }
  .page-contact__methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-contact__commitment-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-contact__text-block {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

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

  .page-contact__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-contact__main-title {
    font-size: clamp(1.5em, 5vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-contact__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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-left: 0 !important;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__btn-secondary {
    margin-left: 0;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__commitment-section,
  .page-contact__contact-form-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card {
    min-height: auto;
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  .page-contact__commitment-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-contact__container or individual elements */
  }
  
  /* Ensure video and its container are responsive */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__main-title {
    font-size: clamp(1.2em, 6vw, 2em);
  }
  .page-contact__hero-image-wrapper {
    max-height: 250px;
  }
  .page-contact__method-title {
    font-size: 1.3em;
  }
  .page-contact__faq-question {
    font-size: 1em;
  }
  .page-contact__commitment-heading {
    font-size: 1.2em;
  }
}