/* style/contact.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Assuming body background is light */
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), #4db9e7); /* Gradient background for visual appeal */
  color: var(--text-light);
  overflow: hidden;
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image width for better layout */
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-contact__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color); /* Use login color for primary CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background: #d66f06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styling --- */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-title--light {
  color: var(--text-light);
}

.page-contact__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-contact__section-description--light {
  color: #e0e0e0;
}

.page-contact__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

/* --- Contact Info Section --- */
.page-contact__info-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
}

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

.page-contact__method-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-card img {
  
  
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-contact__contact-detail {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-dark);
  margin-top: 15px;
  margin-bottom: 20px;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto; /* Push button to bottom of card */
}

.page-contact__btn-primary:hover {
  background: #1f8ec4;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  margin-top: auto;
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

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

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1em;
  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: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.page-contact__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
  background: var(--login-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-weight: bold;
}

.page-contact__submit-button:hover {
  background: #d66f06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large enough value */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

/* --- Social Section --- */
.page-contact__social-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
}

.page-contact__social-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-contact__social-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.5em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__intro-text {
    font-size: 1em;
  }

  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__form-section, .page-contact__social-section, .page-contact__faq-section {
    padding: 40px 0;
  }

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

  .page-contact__form-input, .page-contact__form-textarea {
    padding: 12px;
  }

  .page-contact__submit-button {
    padding: 15px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ specific mobile styles */
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-contact__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section, .page-contact__card, .page-contact__container, .page-contact__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__social-links {
    gap: 20px;
  }

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }
}