:root {
  --primary-color: #0047AB; /* Deep Ocean Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-light: #f1f3f5;
  --background-dark: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 */
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

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

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

/* Sections */
.page-contact__intro-section,
.page-contact__cta-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-contact__dark-section {
  background: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-contact__heading {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section */
}

.page-contact__title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-contact__description,
.page-contact__text-block {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-contact__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary:hover {
  background: #003a8d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-contact__method-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__method-icon {
  width: 120px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  max-width: 100%;
}

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

.page-contact__method-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-contact__email-address, .page-contact__phone-number {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-contact__social-link {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.page-contact__social-link:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
}

.page-contact__contact-form {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 700px;
  margin: 40px auto 0;
  text-align: left;
  color: var(--text-color-dark);
}

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

.page-contact__form-group label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.page-contact__form-group input,
.page-contact__form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-group input:focus,
.page-contact__form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.2);
  outline: none;
}

.page-contact__form-group textarea {
  resize: vertical;
}

.page-contact__submit-button {
  width: auto;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__submit-button:hover {
  background: #003a8d;
  transform: translateY(-2px);
}

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

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

.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: var(--card-background);
  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;
  color: var(--text-color-dark);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__title {
    font-size: 36px;
  }
  .page-contact__heading {
    font-size: 30px;
  }
  .page-contact__description, .page-contact__text-block {
    font-size: 16px;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-contact__intro-section,
  .page-contact__cta-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 40px 15px;
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__title {
    font-size: 30px;
  }

  .page-contact__heading {
    font-size: 26px;
  }

  .page-contact__description, .page-contact__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__method-icon {
    width: 100px;
    margin-bottom: 15px;
  }

  .page-contact__method-title {
    font-size: 20px;
  }

  .page-contact__method-description {
    font-size: 14px;
  }

  .page-contact__contact-form {
    padding: 30px 20px;
  }

  .page-contact__form-group label {
    font-size: 15px;
  }

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

  .page-contact__submit-button {
    padding: 12px 25px;
    font-size: 16px;
  }

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

  /* Ensure all images are responsive and do not cause horizontal scroll */
  .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;
  }
}

/* Contrast Fixes - if needed */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}