:root {
  --primary-color: #0A2463; /* Midnight Blue */
  --secondary-color: #E3B505; /* Golden Yellow */
  --dark-bg-1: #1a1a2e; /* Example dark background */
  --secondary-color-rgb: 227, 181, 5; /* RGB for secondary color for rgba usage */
}

/* --- Base Styles for Contact Page --- */
.page-contact {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
  padding-top: 120px; /* Desktop: Space for fixed header */
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Ensure content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Using brand colors */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image-main {
  width: 100%;
  max-width: 800px; /* Adjust as needed for visual balance */
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* Light text for dark background */
}

.page-contact__main-heading {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-contact__intro-text strong {
  color: var(--secondary-color); /* Highlight keywords */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Golden yellow for CTA */
  color: var(--primary-color); /* Dark text for bright button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background: #f0c94a; /* Slightly darker yellow on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}

/* --- General Sections and Containers --- */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color); /* Dark blue for titles on light backgrounds */
}

.page-contact__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555; /* Slightly darker grey for descriptions */
}

.page-contact__light-bg {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text on light background */
}

.page-contact__dark-bg {
  background-color: var(--primary-color); /* Primary brand color for dark sections */
  color: #ffffff; /* White text on dark background */
}

.page-contact__text-white {
  color: #ffffff !important; /* Force white text */
}

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

.page-contact__contact-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-contact__contact-icon {
  width: 120px; /* Larger icon size as per requirement */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
}

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

.page-contact__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-contact__contact-link {
  display: inline-block;
  color: var(--secondary-color); /* Golden yellow for links */
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__contact-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* --- Contact Form Section --- */
.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3); /* Darker input background */
  color: #ffffff;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), 0.3);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  font-weight: bold;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background: #f0c94a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding-bottom: 60px; /* Add more padding at bottom for consistency */
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.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 20px; /* Adjusted padding for desktop */
  opacity: 0;
  color: #333333;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Important for JS functionality */
  padding: 20px 20px !important; /* Important for JS functionality */
  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 #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color);
}

.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: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-contact__faq-answer p a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-contact__faq-answer p a:hover {
  color: var(--primary-color);
}

.page-contact__faq-toggle {
  font-size: 28px; /* Slightly larger toggle for better visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Brand color for toggle */
  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: 32px; /* Adjusted size */
  height: 32px; /* Adjusted size */
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color); /* Darker color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
  border-color: var(--primary-color);
}

/* --- Additional Info Section --- */
.page-contact__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-contact__feature-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent card on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-contact__feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-contact__feature-icon {
  width: 100px; /* Larger icon size */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
}

.page-contact__cta-block {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__cta-text {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-contact__cta-inline-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__cta-inline-link:hover {
    color: #f0c94a;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__main-heading {
    font-size: 36px;
  }
  .page-contact__section-title {
    font-size: 30px;
  }
  .page-contact__intro-text,
  .page-contact__section-description {
    font-size: 17px;
  }
  .page-contact__cta-button {
    font-size: 18px;
    padding: 12px 30px;
  }
  .page-contact__contact-card,
  .page-contact__feature-card {
    padding: 25px;
  }
  .page-contact__card-title {
    font-size: 22px;
  }
  .page-contact__card-text {
    font-size: 15px;
  }
  .page-contact__contact-link {
    font-size: 16px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
  }
  .page-contact__submit-button {
    padding: 15px;
    font-size: 18px;
  }
  .page-contact__faq-question h3 {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Mobile: Space for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust hero padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-image-main {
    margin-bottom: 20px;
  }
  .page-contact__hero-content {
    padding: 0 10px;
  }
  .page-contact__main-heading {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-contact__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }

  .page-contact__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-contact__contact-grid,
  .page-contact__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__contact-card,
  .page-contact__feature-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__contact-icon,
  .page-contact__feature-icon {
    width: 80px;
    margin-bottom: 15px;
  }
  .page-contact__card-title {
    font-size: 20px;
  }
  .page-contact__card-text {
    font-size: 14px;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-group {
    margin-bottom: 20px;
  }
  .page-contact__form-label {
    font-size: 15px;
    margin-bottom: 5px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }
  .page-contact__submit-button {
    padding: 14px;
    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;
  }

  /* Mobile image responsive optimization */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure images within sections and cards are responsive */
.page-contact__hero-section img,
.page-contact__contact-card img,
.page-contact__feature-card img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Contrast fix if needed, though designed for good contrast */
.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;
}