/* style/contact.css */

/* Root variables for consistent colors */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B23C;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a2e; /* From shared.css body background */
  --bg-light: #f8f9fa;
  --border-color-dark: #3a3a4e; /* Adjusted for dark background */
  --border-color-light: #e0e0e0;
}

/* Base styles for the contact page content */
.page-contact {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if main is not inheriting body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 80px 20px;
  overflow: hidden;
  color: var(--text-light); /* Text light for dark background */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-contact__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 10px;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold color for main title */
  font-weight: bold;
}

.page-contact__hero-description,
.page-contact__hero-sub-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-contact__hero-sub-description {
  font-size: 1.05em;
  margin-top: -15px; /* Adjust spacing */
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__cta-button--primary {
  background-color: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark blue text on gold */
}

.page-contact__cta-button--primary:hover {
  background-color: #D1A537; /* Darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--secondary {
  background-color: var(--primary-color); /* Dark blue button */
  color: var(--text-light); /* White text on dark blue */
  border: 2px solid var(--secondary-color); /* Gold border */
}

.page-contact__cta-button--secondary:hover {
  background-color: #1A3473; /* Lighter dark blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General section styles */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__location-section {
  padding: 80px 20px;
  text-align: center;
  position: relative; /* For image positioning */
  overflow: hidden;
}

.page-contact__info-section,
.page-contact__faq-section {
  background-color: var(--bg-light); /* Light background */
  color: var(--text-dark); /* Dark text for light background */
}

.page-contact__form-section,
.page-contact__location-section {
  background-color: var(--primary-color); /* Dark blue background */
  color: var(--text-light); /* Light text for dark blue background */
}

.page-contact__info-container,
.page-contact__form-container,
.page-contact__faq-container,
.page-contact__location-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit; /* Inherit color from section */
}

.page-contact__section-description,
.page-contact__section-sub-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-sub-description {
  font-size: 1em;
  margin-bottom: 40px;
}

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

.page-contact__detail-item {
  background-color: var(--text-light); /* White background for detail items */
  color: var(--text-dark); /* Dark text on white */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-contact__detail-item:hover {
  transform: translateY(-5px);
}

.page-contact__detail-title {
  font-size: 1.5em;
  color: var(--primary-color); /* Dark blue for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__detail-item p {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-contact__btn-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__btn-link:hover {
  background-color: #D1A537; /* Darker gold on hover */
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  justify-content: flex-start;
}

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-contact__info-image {
  position: absolute;
  top: 50%;
  right: -100px; /* Position off-screen slightly */
  transform: translateY(-50%);
  opacity: 0.1;
  z-index: 0;
  width: 800px; /* Ensure minimum size */
  height: 600px;
  object-fit: contain;
}

/* Contact Form */
.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color-dark);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.page-contact__submit-button {
  width: auto;
  padding: 15px 40px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

/* FAQ Section - Provided styles, adapted to BEM and colors */
.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.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;
  color: var(--text-dark); /* Dark text for light background */
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important as required */
  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(--text-light); /* White background */
  border: 1px solid var(--border-color-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark); /* Dark text for light background */
}

.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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color); /* Dark blue for FAQ question titles */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Dark blue for toggle icon */
  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(--secondary-color); /* Gold for active toggle */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Location Section */
.page-contact__map-placeholder {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  height: auto; /* Ensure responsiveness */
}

.page-contact__map-image {
  width: 100%;
  height: auto; /* Ensures image scales with container */
  display: block;
  object-fit: cover;
}

.page-contact__address-text,
.page-contact__address-sub-text {
  margin-top: 30px;
  font-size: 1.1em;
  font-weight: 500;
}

.page-contact__address-sub-text {
  font-size: 0.95em;
  margin-top: 15px;
}

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

@media (max-width: 768px) {
  .page-contact {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }

  .page-contact__hero-container {
    padding: 30px 20px;
  }

  .page-contact__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-contact__hero-description,
  .page-contact__hero-sub-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
}