/* style/contact.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-light-gray: #f9f9f9;
  --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Ensure page content starts below fixed header */
.page-contact__hero-contact-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color-light);
  text-align: center;
}

.page-contact__hero-contact-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-contact__hero-description a {
  color: var(--text-color-light);
  text-decoration: underline;
  font-weight: bold;
}

.page-contact__hero-description a:hover {
  color: #e0e0e0;
}

.page-contact__cta-button {
  display: inline-block;
  background: #ffc107; /* A contrasting color for CTA */
  color: #333333;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--small {
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-contact__card {
  background: #ffffff; /* White background for cards */
  border-radius: 10px;
  box-shadow: var(--box-shadow-light);
  padding: 30px;
  margin-bottom: 30px;
  color: var(--text-color-dark);
}

.page-contact__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-contact__section-description a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-contact__section-description a:hover {
  color: var(--secondary-color);
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background: var(--bg-light-gray);
}

.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-color-dark);
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.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(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.page-contact__submit-button {
  background: var(--primary-color);
  color: var(--text-color-light);
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__submit-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__info-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow-light);
  background: var(--bg-light-gray);
}

.page-contact__info-icon {
  width: 100px; /* Larger size for illustrative icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-contact__info-text {
  color: #555555;
  margin-bottom: 8px;
}

.page-contact__link-text {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Social Section */
.page-contact__social-section {
  padding: 60px 0;
  background: var(--bg-light-gray);
  text-align: center;
}

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

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

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

.page-contact__social-icon {
  width: 80px; /* Larger size for illustrative social icons */
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 60px 0;
  background: #ffffff;
}

.page-contact__why-contact-section h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__why-contact-section p {
  margin-bottom: 15px;
  color: #444444;
  line-height: 1.7;
}

.page-contact__why-contact-section p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-contact__why-contact-section p a:hover {
  color: var(--secondary-color);
}

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

.page-contact__faq-list {
  margin-top: 40px;
}

.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;
}

.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: bold;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark);
}

.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);
  transform: rotate(45deg); /* Change + to X or - */
}

/* General text contrast fix for cards on potentially dark body background */
.page-contact__card.page-contact__light-bg {
  background: #ffffff;
  color: var(--text-color-dark);
}

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

@media (max-width: 768px) {
  .page-contact__hero-contact-section {
    padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
    padding-bottom: 40px;
  }
  .page-contact__main-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__container {
    padding: 20px 15px;
  }
  .page-contact__card {
    padding: 20px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__info-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__info-title {
    font-size: 1.3em;
  }
  .page-contact__social-links {
    gap: 20px;
  }
  .page-contact__social-icon {
    width: 60px;
    height: 60px;
  }
  .page-contact__social-icon-link {
    font-size: 1em;
  }
  .page-contact__why-contact-section h3 {
    font-size: 1.5em;
  }
  .page-contact__why-contact-section p {
    font-size: 0.95em;
  }
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
    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 adaptations */
  .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;
  }
}

/* Global image responsive adaptations for all images within .page-contact */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}