/* style/contact.css */

/* Variables from shared.css (assuming they are defined there) */
/* :root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-light: #f1f3f5;
} */

.page-contact {
  /* Default text color for dark body background */
  color: var(--text-light, #ffffff); 
  background-color: var(--bg-dark, #0a0a0a);
}

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

/* Fixed Header Padding */
.page-contact__hero-contact-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 60px;
}

.page-contact__main-heading {
  font-size: 3.2em;
  color: var(--text-light, #ffffff);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-contact__sub-heading {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--primary-color, #0A2463); /* Default for light backgrounds */
  margin-bottom: 30px;
  text-align: left;
}

.page-contact__sub-heading--center {
  text-align: center;
}

/* Color contrast classes */
.page-contact__dark-bg {
  background-color: var(--primary-color, #0A2463);
  color: var(--text-light, #ffffff);
}

.page-contact__light-bg {
  background-color: var(--bg-light, #f1f3f5);
  color: var(--text-dark, #333333);
}

.page-contact__hero-contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color, #0A2463), #2c4a8a); /* Darker gradient for hero-like section */
}

.page-contact__hero-contact-section .page-contact__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-contact__hero-content {
  flex: 1;
}

.page-contact__hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__hero-image .page-contact__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 30px;
  background-color: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 80px 0;
}

.page-contact__contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: flex-start;
}

.page-contact__card {
  background: var(--text-light, #ffffff); /* White background for cards */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--text-dark, #333333); /* Dark text on light card background */
}

.page-contact__card--info .page-contact__sub-heading {
  color: var(--primary-color, #0A2463);
}

.page-contact__info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.page-contact__icon {
  width: 32px; /* Placeholder for actual icons */
  height: 32px;
  background-color: var(--secondary-color, #FFD700);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* Placeholder icons - in a real scenario these would be SVGs or proper image icons */
.page-contact__icon--phone::before { content: "📞"; font-size: 1.2em; color: var(--primary-color); }
.page-contact__icon--email::before { content: "📧"; font-size: 1.2em; color: var(--primary-color); }
.page-contact__icon--address::before { content: "📍"; font-size: 1.2em; color: var(--primary-color); }
.page-contact__icon--hours::before { content: "⏰"; font-size: 1.2em; color: var(--primary-color); }

.page-contact__info-text {
  font-size: 1.1em;
  line-height: 1.5;
}

.page-contact__info-link {
  color: var(--primary-color, #0A2463);
  text-decoration: none;
  font-weight: bold;
}

.page-contact__info-link:hover {
  text-decoration: underline;
}

.page-contact__info-description {
  margin-top: 30px;
  font-style: italic;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Contact Form */
.page-contact__card--form .page-contact__sub-heading {
  color: var(--primary-color, #0A2463);
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

.page-contact__form-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-dark, #333333);
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  color: var(--text-dark, #333333);
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color, #0A2463);
  box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.2);
  outline: none;
}

.page-contact__submit-button {
  margin-top: 20px;
  align-self: flex-start; /* Align button to the left */
}

/* Social Media Section */
.page-contact__social-media-section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__social-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-contact__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-light, #ffffff);
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-contact__social-link:hover {
  transform: translateY(-5px);
  color: var(--secondary-color, #FFD700);
}

.page-contact__social-icon {
  width: 80px; /* Larger size for social icons as per requirement */
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  object-fit: cover; /* Ensure image fits well */
}


/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
}

.page-contact__faq-intro {
  text-align: center;
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-dark, #333333);
}

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

.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: var(--text-dark, #333333);
}

.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: var(--text-dark, #333333);
}

.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(--text-dark, #333333);
}

.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, #0A2463);
  transform: rotate(45deg); /* Change '+' to 'x' or similar for active state */
}

.page-contact__faq-cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--primary-color, #0A2463);
  color: var(--text-light, #ffffff);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__faq-cta-button:hover {
  background-color: #071b4a; /* Darker primary color */
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-contact__hero-contact-section .page-contact__container {
    flex-direction: column;
    text-align: center;
  }
  .page-contact__hero-content, .page-contact__hero-image {
    flex: none;
    width: 100%;
  }
  .page-contact__main-heading {
    font-size: 2.5em;
  }
  .page-contact__sub-heading {
    font-size: 1.8em;
  }
  .page-contact__contact-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__card {
    padding: 30px;
  }
  .page-contact__submit-button {
    align-self: center; /* Center button on smaller screens */
  }
}

@media (max-width: 768px) {
  /* Mobile padding-top for fixed header */
  .page-contact__hero-contact-section {
    padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
    padding-bottom: 40px;
  }
  
  .page-contact__container {
    padding: 0 15px;
  }
  
  .page-contact__main-heading {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  
  .page-contact__sub-heading {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-contact__contact-info-section,
  .page-contact__social-media-section,
  .page-contact__faq-section {
    padding: 40px 0;
  }

  .page-contact__card {
    padding: 25px;
  }

  .page-contact__info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
  }
  .page-contact__icon {
    width: 28px;
    height: 28px;
  }
  .page-contact__icon::before {
    font-size: 1em;
  }
  .page-contact__info-text {
    font-size: 0.95em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .page-contact__social-links {
    gap: 20px;
  }
  .page-contact__social-icon {
    width: 60px;
    height: 60px;
  }
  .page-contact__social-link {
    font-size: 1em;
  }

  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    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;
  }

  /* Mobile image responsive 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;
  }
}