/* style/contact.css */
/* Base styles for the contact page, scoped within .page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: transparent; /* body background is handled by shared.css */
}

/* Container for consistent spacing */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Headings */
.page-contact h1,
.page-contact h2,
.page-contact h3 {
  color: #1a0033; /* Primary brand color for headings */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact h1 {
  font-size: 3.2em;
  text-align: center;
}

.page-contact h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-contact h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-contact p {
  margin-bottom: 15px;
}

/* Buttons - General styles */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary,
.page-contact__cta-button {
  background-color: #1a0033; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #1a0033;
}

.page-contact__btn-primary:hover,
.page-contact__cta-button:hover {
  background-color: #2e0055; /* Slightly darker primary */
  border-color: #2e0055;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background-color: #ffcc00; /* Auxiliary brand color */
  color: #1a0033; /* Dark text for contrast on bright background */
  border: 2px solid #ffcc00;
}

.page-contact__btn-secondary:hover {
  background-color: #e6b800; /* Slightly darker auxiliary */
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image styles - General */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  /* FORBIDDEN: filter properties for color change */
  /* filter: none !important; */
}

/* Section specific styles */
.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 header offset */
  background: #f4f4f4; /* Match body background for consistency */
}

.page-contact__hero-section .page-contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0; /* Remove container padding here, handled by hero-section */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  margin-top: 30px;
}

/* Info Section */
.page-contact__info-section {
  background-color: #ffffff; /* White background for contrast */
  padding: 60px 0;
}

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

.page-contact__info-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__info-card h3 {
  color: #1a0033;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-contact__info-card p {
  color: #555555;
  margin-bottom: 20px;
}

.page-contact__info-card strong {
  color: #1a0033;
}

/* Form Section */
.page-contact__form-section {
  background-color: #1a0033; /* Dark background */
  color: #ffffff; /* White text for contrast */
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-contact__form-section h2 {
  color: #ffcc00; /* Auxiliary color for heading */
  margin-bottom: 40px;
}

.page-contact__form-section p {
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #2e0055; /* Slightly lighter dark color for form background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

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

.page-contact__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffcc00; /* Auxiliary color for labels */
}

.page-contact__form-group input[type="text"],
.page-contact__form-group input[type="email"],
.page-contact__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #4a0077; /* Darker border */
  border-radius: 5px;
  background-color: #3f0066; /* Even darker input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-group input[type="text"]::placeholder,
.page-contact__form-group input[type="email"]::placeholder,
.page-contact__form-group textarea::placeholder {
  color: #cccccc;
  opacity: 0.7;
}

.page-contact__form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-illustration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  opacity: 0.1;
  width: 400px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #f4f4f4; /* Light background */
}

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

/* FAQ container styles */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.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;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and a sufficiently large max-height to ensure it can expand */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light background */
}

/* Question styles */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  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;
}

/* Question title styles */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em; /* Adjusted for better mobile readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #1a0033;
}

/* Toggle icon */
.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; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #ffcc00; /* Auxiliary color when active */
  transform: rotate(45deg); /* Example: rotate for minus sign */
}

/* Social Section */
.page-contact__social-section {
  background-color: #1a0033; /* Dark background */
  color: #ffffff; /* White text */
  padding: 60px 0;
  text-align: center;
}

.page-contact__social-section h2 {
  color: #ffcc00; /* Auxiliary color for heading */
  margin-bottom: 30px;
}

.page-contact__social-section p {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-icon {
  display: block; /* Ensure block-level for image */
  width: 80px; /* Larger size for social icons */
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

/* CTA Section */
.page-contact__cta-section {
  background-color: #ffffff; /* Light background */
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__cta-section h2 {
  color: #1a0033;
  margin-bottom: 30px;
}

.page-contact__cta-section p {
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__cta-image {
  max-width: 80%;
  margin: 0 auto;
  opacity: 0.2;
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact h1 {
    font-size: 2.8em;
  }
  .page-contact h2 {
    font-size: 2em;
  }
  .page-contact h3 {
    font-size: 1.6em;
  }
  .page-contact__container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 15px;
  }

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

  .page-contact h1 {
    font-size: 2.2em;
  }
  .page-contact h2 {
    font-size: 1.8em;
  }
  .page-contact h3 {
    font-size: 1.4em;
  }

  .page-contact__container {
    padding: 20px 15px;
  }

  /* 🚨 Mobile image adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}