/* style/contact.css */

/* --- Base Styles for Contact Page (Scoped to .page-contact) --- */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Main content area will inherit body background or have specific section backgrounds */
}

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

.page-contact__title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
}

.page-contact__title--main {
  padding-top: 20px; /* Adjusted to blend with section padding-top */
}

.page-contact__subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly lighter for dark sections */
}

.page-contact__highlight {
  color: var(--secondary-color, #FFD700); /* Gold highlight */
}

.page-contact__link {
  color: var(--secondary-color, #FFD700); /* Gold links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Section Backgrounds and Text Colors for Contrast --- */
.page-contact__dark-section {
  background: var(--primary-color, #003366); /* Main brand color */
  color: #ffffff;
  padding: 60px 0;
}

.page-contact__light-bg {
  background: #f8f9fa; /* Light background for contrast */
  color: #333333;
  padding: 60px 0;
}

.page-contact__light-bg .page-contact__title,
.page-contact__light-bg .page-contact__subtitle {
  color: #333333; /* Dark text for light background */
}

/* --- Fixed Header Padding (Crucial for non-homepage) --- */
.page-contact__info-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  /* Other styles for info section */
}

/* --- Contact Info Section --- */
.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

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

.page-contact__info-heading {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color, #003366);
}

.page-contact__info-text {
  font-size: 16px;
  margin-bottom: 25px;
}

.page-contact__contact-detail {
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
}

.page-contact__contact-note {
  font-size: 14px;
  color: #666666;
}

/* --- Contact Form Section --- */
.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #555555;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #aaaaaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color, #FFD700);
  background-color: rgba(255, 255, 255, 0.25);
  outline: none;
}

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

/* --- Buttons --- */
.page-contact__btn-contact,
.page-contact__btn-submit,
.page-contact__btn-readmore,
.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-contact__btn-contact {
  background: var(--secondary-color, #FFD700);
  color: #000000; /* Black text for gold button */
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-contact__btn-contact:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-contact__btn-submit,
.page-contact__btn-primary {
  background: var(--primary-color, #003366);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 18px;
}

.page-contact__btn-submit:hover,
.page-contact__btn-primary:hover {
  background: #004488;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 51, 102, 0.4);
}

.page-contact__btn-readmore {
  background: #666666;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
}

.page-contact__btn-readmore:hover {
  background: #888888;
  transform: translateY(-1px);
}

/* --- FAQ Section (using provided styles with BEM) --- */
.page-contact__faq-section {
  padding: 60px 0;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: 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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light answer background */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
  color: #333333; /* Ensure dark text on light question background */
}