/* style/contact.css */

/* Base styles for the contact page to ensure text visibility on dark body background */
.page-contact {
  color: #ffffff; /* Light text for readability on dark body background */
  background-color: #0a0a0a; /* Ensure the main page content also has a dark background if needed, but sections will have specific backgrounds */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Padding for fixed header */
.page-contact__hero-banner {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  padding-bottom: 60px;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.4); /* Darken image for text readability, not changing color */
}

.page-contact__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffc107; /* Highlight with secondary color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__hero-description a {
  color: #ffc107;
  text-decoration: underline;
}

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

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #0056b3, #003d7a);
  color: #ffffff;
  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 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background: linear-gradient(135deg, #003d7a, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-button--bottom {
  margin-top: 40px;
}

/* General section styling */
.page-contact__section-title {
  font-size: 2.5em;
  color: #ffc107;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-description a {
  color: #ffc107;
  text-decoration: underline;
}

.page-contact__section-description a:hover {
  color: #e0a800;
}

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

/* Contact Info Section */
.page-contact__info-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-contact__contact-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  flex: 1 1 calc(33% - 60px); /* Three cards per row, with gap */
  min-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-contact__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__contact-card p {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-contact__contact-detail {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 25px !important; /* Override default p margin */
}

.page-contact__card-button {
  display: inline-block;
  background: #0056b3;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__card-button:hover {
  background-color: #003d7a;
  transform: translateY(-1px);
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #0a0a0a; /* Dark background */
  padding: 60px 0;
}

.page-contact__contact-form {
  background-color: #ffffff; /* White background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 0 auto;
  color: #333333; /* Dark text for form content */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  color: #333333;
  background-color: #f9f9f9;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
  outline: none;
}

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #0056b3, #003d7a);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background: linear-gradient(135deg, #003d7a, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Commitment Section */
.page-contact__commitment-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-contact__commitment-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-contact__commitment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-contact__commitment-icon {
  width: 100px; /* Ensure images are not small icons */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.page-contact__commitment-heading {
  font-size: 1.8em;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__commitment-item p {
  font-size: 1.05em;
  color: #cccccc;
}

.page-contact__commitment-item p a {
  color: #ffc107;
  text-decoration: underline;
}

.page-contact__commitment-item p a:hover {
  color: #e0a800;
}

.page-contact__commitment-footer-text {
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #0a0a0a;
  padding: 60px 0;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.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; /* Ensure it expands sufficiently */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9; /* Light background for FAQ answers */
  color: #333333; /* Dark text for answers */
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-item.active .page-contact__faq-answer a {
  color: #0056b3;
  text-decoration: underline;
}

.page-contact__faq-item.active .page-contact__faq-answer a:hover {
  color: #003d7a;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a; /* Darker background for questions */
  color: #ffffff; /* Light text for questions */
  border: 1px solid #3a3a3a;
  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: #3a3a3a;
  border-color: #4a4a4a;
}

.page-contact__faq-question:active {
  background: #4a4a4a;
}

.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 event to pass through to parent */
  color: #ffc107; /* Highlight question text */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107;
  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: #ffffff; /* White toggle when active */
  transform: rotate(45deg); /* Rotate '+' to 'x' */
}

/* Quick Links Section */
.page-contact__quick-links-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-contact__link-item {
  display: block;
  background-color: #2a2a2a;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a3a3a;
}

.page-contact__link-item:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__contact-card {
    flex: 1 1 calc(50% - 30px); /* Two cards per row */
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-contact__hero-container {
    padding: 0 15px;
  }
  .page-contact__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__container {
    padding: 30px 15px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__contact-card {
    flex: 1 1 100%; /* One card per row */
    min-width: unset;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
    font-size: 0.95em;
  }
  .page-contact__submit-button {
    padding: 12px 15px;
    font-size: 1.1em;
  }
  .page-contact__commitment-grid {
    gap: 20px;
  }
  .page-contact__commitment-item {
    padding: 25px;
  }
  .page-contact__commitment-icon {
    width: 80px;
  }
  .page-contact__commitment-heading {
    font-size: 1.5em;
  }
  .page-contact__commitment-item 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;
  }
  .page-contact__links-grid {
    grid-template-columns: 1fr;
  }
  .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;
  }
}