/* style/contact.css */

/* Base Styles */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: #050505; /* Inherit from body or shared, ensure dark */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact a {
  color: #26A9E0;
  text-decoration: none;
}

.page-contact a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 1;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-contact__hero-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__hero-button:hover {
  background-color: #1a7fb0;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 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 8px rgba(38, 169, 224, 0.5);
}

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

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit-button:hover {
  background-color: #1a7fb0;
  transform: translateY(-2px);
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #050505;
  color: #ffffff;
}

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

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
}

.page-contact__channel-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 150px; /* Limit icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__channel-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-contact__channel-text {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 15px;
}

.page-contact__channel-detail {
  font-size: 1.1em;
  color: #f0f0f0;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-contact__channel-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-contact__channel-button:hover {
  background-color: #1a7fb0;
  text-decoration: none;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFFFFF;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−'; /* Changed by JS */
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #ccc;
  line-height: 1.7;
}

/* Why Contact Us Section (Deep Content) */
.page-contact__why-contact-us {
  padding: 80px 0;
  background-color: #050505;
  color: #ffffff;
}

.page-contact__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-contact__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-contact__text-block {
  flex: 1;
}

.page-contact__subtitle {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__text-block p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
  line-height: 1.8;
}

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

.page-contact__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-banner {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 50px 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  background-color: #EA7C07; /* Login button color for CTA */
  color: #FFFFFF;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background-color: #c96a06;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__subtitle {
    font-size: 1.8em;
  }
  .page-contact__content-grid {
    flex-direction: column;
  }
  .page-contact__content-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
  }
  .page-contact__contact-form {
    padding: 30px;
  }
  .page-contact__contact-channels {
    grid-template-columns: 1fr;
  }
  .page-contact__channel-card {
    padding: 20px;
  }
  .page-contact__faq-item summary {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px;
  }
  .page-contact__subtitle {
    font-size: 1.5em;
  }
  .page-contact__text-block p {
    font-size: 1em;
  }
  .page-contact__cta-title {
    font-size: 2em;
  }
  .page-contact__cta-description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  /* Force responsive images, videos, buttons */
  .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__contact-channels,
  .page-contact__faq-list,
  .page-contact__content-grid,
  .page-contact__cta-banner {
    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__form-submit-button,
  .page-contact__hero-button,
  .page-contact__channel-button,
  .page-contact__cta-button,
  .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 !important;
    padding-right: 15px !important;
  }
  .page-contact__button-group, .page-contact__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* Smart Color Contrast - Dark Background */
.page-contact__dark-bg {
  color: #ffffff; /* Deep dark background, use light text */
}

.page-contact__light-bg {
  color: #333333; /* Light background, use dark text */
  background: #ffffff;
}

/* Ensure specific elements maintain contrast */
.page-contact__contact-form {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
  color: #ffffff;
}

.page-contact__contact-form .page-contact__form-label {
  color: #f0f0f0;
}

.page-contact__contact-form .page-contact__form-input,
.page-contact__contact-form .page-contact__form-textarea {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #444;
}

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

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-contact__faq-item summary {
  color: #26A9E0;
}

.page-contact__faq-item .page-contact__faq-answer p {
  color: #ccc;
}

.page-contact__text-block p {
  color: #f0f0f0;
}