/* style/contact.css */

/* Base styles for the contact page, ensuring light text on dark body background */
.page-contact {
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__section {
  padding: 60px 20px;
  background-color: #0d0d1a; /* Inherits from body, or explicit for clarity */
}

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

.page-contact__section-title,
.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3em); /* H1 font size with clamp, no fixed large value */
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  background-color: #0d0d1a;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for image within container */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
  border-radius: 8px;
}

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

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-contact__btn-primary {
  background-color: #26A9E0; /* Brand color */
  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;
}

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

.page-contact__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-contact__btn-text:hover {
  color: #1a8cc2;
  text-decoration: underline;
}

/* Card styles */
.page-contact__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Ensure light text on card background */
}

/* Channels Section */
.page-contact__channels-grid,
.page-contact__issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

.page-contact__channel-description,
.page-contact__issue-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-contact__social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap; /* Ensure social buttons wrap on small screens */
}

/* Contact Form Section */
.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker card background for form */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #26A9E0;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1a1a2e; /* Darker input background */
  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 3px rgba(38, 169, 224, 0.3);
}

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  font-weight: 700;
  background-color: #EA7C07; /* Login color for submit button */
  border: 2px solid #EA7C07;
  color: #ffffff;
}

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

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border: none; /* Card already has background and shadow */
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

details[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or simply change to minus */
  content: "−"; /* Change to minus sign */
}

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

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

/* Image Display */
.page-contact__image-display {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__form-image {
  max-width: 800px; /* Adjust max-width for form image */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-contact__section {
    padding: 40px 15px;
  }

  .page-contact__section-title,
  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 20px;
  }

  .page-contact__text-block {
    font-size: 1em;
  }

  .page-contact__hero-section {
    padding-bottom: 40px;
  }

  .page-contact__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-contact__channels-grid,
  .page-contact__issues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__channel-item,
  .page-contact__issue-item,
  .page-contact__faq-item {
    padding: 20px;
  }

  .page-contact__channel-title,
  .page-contact__issue-title {
    font-size: 1.3em;
  }

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

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
    font-size: 0.9em;
  }

  .page-contact__form-submit-btn {
    padding: 12px;
    font-size: 1em;
  }

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

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

/* Mobile responsive images, videos, and buttons (mandatory) */
@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* For video/image containers */
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-contact__video-section {
    padding-top: 10px !important;
  }

  .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-bottom: 10px; /* Space out stacked buttons */
  }

  .page-contact__social-links {
    flex-direction: column; /* Stack social buttons */
    gap: 10px;
  }

  .page-contact__social-btn {
    width: 100%;
  }
}