/* style/contact.css */

/* Root variables for consistent styling */
:root {
  --primary-color: #0A2463; /* Deep Tech Blue */
  --secondary-color: #FFD700; /* Bright Gold */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --light-bg-color: #f8f9fa; /* Light background for sections */
  --dark-bg-color-section: #1a3a70; /* Darker blue for sections */
  --border-color: #e0e0e0;
  --form-bg-color: rgba(255, 255, 255, 0.1);
  --input-border-color: rgba(255, 255, 255, 0.3);
  --input-focus-border-color: var(--secondary-color);
}

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-text-color); /* Default text color for light sections */
  background: var(--light-bg-color); /* Default page background */
}

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

/* Fixed navigation bar spacing */
.page-contact__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
}

.page-contact__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--light-text-color);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--dark-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

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

/* Section headings */
.page-contact__section-heading {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px; /* Spacing for sections */
}

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

/* Contact Info Section */
.page-contact__contact-info {
  background: var(--light-bg-color);
  padding-bottom: 60px;
}

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

.page-contact__info-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark-text-color);
}

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

.page-contact__info-icon {
  width: 120px; /* Visually appropriate for an illustrative 'icon' */
  height: auto;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__info-text,
.page-contact__info-address,
.page-contact__info-hours {
  font-size: 1em;
  margin-bottom: 10px;
  color: var(--dark-text-color);
}

.page-contact__info-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__info-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

.page-contact__form-intro {
  text-align: center;
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--form-bg-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-contact__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
  margin-top: 20px;
}

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

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

.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; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--dark-text-color);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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; /* Allow click on parent div */
  color: var(--primary-color);
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Allow click on parent div */
  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); /* Change color when active */
}

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

.page-contact__social-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.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(--light-text-color);
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease, transform 0.3s ease;
}

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

.page-contact__social-icon {
  width: 120px; /* Visually appropriate for an illustrative 'icon' */
  height: auto;
  margin-bottom: 10px;
  max-width: 100%; /* Responsive image */
  display: block;
}

.page-contact__social-text {
  margin-top: 5px;
}

/* Copyright Info */
.page-contact__copyright-info {
  background: var(--primary-color); /* Match header/footer dark background */
  color: var(--light-text-color);
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
}

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

@media (max-width: 768px) {
  .page-contact__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }
  .page-contact__main-heading {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-contact__section-heading {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__info-card {
    padding: 20px;
  }
  .page-contact__info-icon {
    width: 80px;
  }
  .page-contact__info-title {
    font-size: 1.3em;
  }
  .page-contact__form {
    padding: 30px 20px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 0.95em;
  }
  .page-contact__submit-button {
    padding: 15px;
    font-size: 1.1em;
  }

  /* FAQ Mobile adjustments */
  .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;
  }

  .page-contact__social-links {
    gap: 20px;
  }
  .page-contact__social-icon {
    width: 100px;
  }
  .page-contact__social-text {
    font-size: 0.95em;
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__info-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Color contrast enforcement - based on body dark background assumption */
/* Main page content is light background, so dark text */
.page-contact__light-bg {
  background: var(--light-bg-color);
  color: var(--dark-text-color);
}
.page-contact__dark-bg {
  background: var(--primary-color);
  color: var(--light-text-color);
}
/* Ensure form inputs and textareas have readable text */
.page-contact__form-input,
.page-contact__form-textarea {
  color: var(--light-text-color); /* Text inside input on dark background */
}
.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6); /* Placeholder text color */
}

/* Overrides for specific elements to ensure contrast */
.page-contact p,
.page-contact li {
  color: inherit; /* Inherit from parent, which is set by dark/light bg classes */
}
.page-contact__info-text,
.page-contact__info-address,
.page-contact__info-hours {
  color: var(--dark-text-color); /* Explicitly dark text on light cards */
}
.page-contact__faq-answer p {
  color: var(--dark-text-color); /* Dark text on light FAQ answer background */
}
.page-contact__faq-answer a {
  color: var(--primary-color); /* Links on light background */
}
.page-contact__faq-answer a:hover {
  color: var(--secondary-color);
}