/* style/contact.css */

/* Base styles for page-contact */
.page-contact {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Ensure consistency with body background */
}

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

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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

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

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

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

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

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

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

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

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

.page-contact__channel-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__channel-icon {
  width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-contact__channel-description {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__availability-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1rem;
  color: #cccccc;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-intro {
  color: #ffffff;
}

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

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

.page-contact__form-label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__form-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #e0e0e0;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #1f1f1f;
  color: #ffffff;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #26A9E0;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-item-title {
  margin: 0;
  color: inherit;
  font-size: 1.2rem;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 1rem;
  color: #e0e0e0;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  text-align: center;
  color: #ffffff;
}

.page-contact__cta-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-contact__cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Image specific styles */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3rem;
  }
  .page-contact__hero-description {
    font-size: 1.2rem;
  }
  .page-contact__section-title {
    font-size: 2rem;
  }
  .page-contact__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-contact__hero-title {
    font-size: 2.5rem;
  }
  .page-contact__hero-description {
    font-size: 1.1rem;
  }
  .page-contact__section-title {
    font-size: 1.8rem;
  }
  .page-contact__section-intro {
    font-size: 1rem;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 100% !important;
    margin: 10px 0;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__hero-content .page-contact__btn-primary {
    width: auto; /* Allow hero button to resize if multiple */
  }
  .page-contact__contact-channels {
    grid-template-columns: 1fr;
  }
  .page-contact__channel-icon {
    width: 150px;
  }
  .page-contact__channel-title {
    font-size: 1.5rem;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-contact__faq-item-title {
    font-size: 1.1rem;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px 20px;
  }
  .page-contact__cta-title {
    font-size: 1.8rem;
  }
  .page-contact__cta-description {
    font-size: 1.1rem;
  }

  /* Mobile image and container responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section,
  .page-contact__container,
  .page-contact__channel-card,
  .page-contact__contact-form,
  .page-contact__faq-item {
    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__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-contact__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__contact-channels {
    padding-left: 0;
    padding-right: 0;
  }
  .page-contact__contact-form {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__cta-section .page-contact__btn-primary,
  .page-contact__cta-section .page-contact__btn-secondary {
    display: block;
    margin: 10px auto;
  }
}