/* style/contact.css */

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

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

/* Section Styling */
.page-contact__hero-section,
.page-contact__contact-form-section,
.page-contact__location-section,
.page-contact__support-video-section {
  padding: 80px 0;
  color: #ffffff; /* Light text for dark sections */
}

.page-contact__contact-methods,
.page-contact__faq-section,
.page-contact__commitment-section {
  padding: 80px 0;
  color: #333333; /* Dark text for light sections */
}

/* Color Contrast Specifics */
.page-contact__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-contact__light-bg {
  background-color: #ffffff; /* Ensure light background */
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #0a0a0a; /* Dark background from shared */
}

.page-contact__hero-section .page-contact__container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-contact__hero-content {
  flex: 1;
  text-align: left;
}

.page-contact__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #26A9E0; /* Brand color for main heading */
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

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

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Titles and Descriptions */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for section titles */
}

.page-contact__section-title.page-contact__dark-bg {
  color: #26A9E0; /* Ensure brand color on dark background */
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit; /* Inherit color from parent section */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
  background-color: #1a8cc7; /* Darker shade on hover */
  border-color: #1a8cc7;
}

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

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-contact__btn-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-link:hover {
  color: #1a8cc7;
}

/* Contact Methods Grid */
.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__method-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333; /* Dark text for light card */
}

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

.page-contact__method-text,
.page-contact__email-address,
.page-contact__phone-number {
  margin-bottom: 10px;
  color: #555555;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: #1a8cc7;
}

/* Contact Form Section */
.page-contact__contact-form-section .page-contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-contact__contact-form {
  width: 100%;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.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 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #1a1a1a;
  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;
  box-shadow: 0 0 0 2px rgba(38, 169, 224, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  min-width: 150px;
  display: block;
  margin-top: 30px;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__faq-item details {
  border: none;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #eaf6fd; /* Light blue background for summary */
  color: #26A9E0;
  border-bottom: 1px solid #d0e7f5;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #d0e7f5;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-question::marker {
  display: none;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
}

/* Location Section */
.page-contact__location-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  color: #ffffff;
}

.page-contact__address-card,
.page-contact__hours-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__address-text,
.page-contact__hours-text,
.page-contact__hours-note {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-contact__location-image {
  margin-top: 50px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Video Section */
.page-contact__support-video-section .page-contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for video */
  margin-top: 40px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-contact__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer; /* Indicate video is clickable */
}

.page-contact__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(0, 0, 0, 0); /* Invisible overlay for click */
  display: block;
}

.page-contact__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #f0f0f0;
  text-align: center;
}

.page-contact__video-cta {
  margin-top: 30px;
}

/* Commitment Section */
.page-contact__commitment-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__commitment-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-contact__commitment-text {
  color: #555555;
}

.page-contact__commitment-image {
  margin-top: 50px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-heading {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__hero-section .page-contact__container {
    flex-direction: column;
    text-align: center;
  }
  .page-contact__hero-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__support-video-section,
  .page-contact__commitment-section {
    padding: 40px 0;
  }

  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-contact__main-heading {
    font-size: 2em;
  }

  .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__methods-grid,
  .page-contact__location-details,
  .page-contact__commitment-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact__form-label,
  .page-contact__form-input,
.page-contact__form-textarea {
    font-size: 0.95em;
  }

  /* Image responsive enforcement */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive enforcement */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsive enforcement for images and videos */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Button responsive enforcement */
  .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;
    padding-left: 15px; /* Add padding to prevent text touching edges */
    padding-right: 15px; /* Add padding to prevent text touching edges */
  }
  
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}