/* style/contact.css */

/* General page styles */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Ensure consistency with body background */
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-contact__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.page-contact__hero-section {
  padding: 120px 0 60px 0; /* Fixed header padding for desktop */
  background: linear-gradient(135deg, #002B49, #121212);
  text-align: center;
}

.page-contact__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button--primary {
  background: #FFD700;
  color: #002B49;
}

.page-contact__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--secondary {
  background: #002B49;
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-contact__cta-button--secondary:hover {
  background: #001f33;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__info-card {
  background: #002B49; /* Dark blue background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text for dark card background */
}

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

.page-contact__info-card-icon {
  width: 100px; /* Ensure images are large enough, not small icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__info-card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__info-card-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-contact__info-card-detail,
.page-contact__info-card-hours {
  font-size: 16px;
  margin-bottom: 10px;
}

.page-contact__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
  background: #FFD700;
  color: #002B49;
  border-radius: 5px;
  margin-top: 15px;
}

.page-contact__cta-button--small:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background: #002B49; /* Dark blue background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff; /* Light text for dark form background */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #004066;
  border-radius: 5px;
  background: #001f33; /* Slightly lighter dark background for input */
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: #FFD700;
  color: #002B49;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-contact__commitment-item {
  background: #002B49;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-contact__commitment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-contact__commitment-icon {
  width: 100px; /* Ensure images are large enough */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__commitment-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__commitment-text {
  font-size: 16px;
  color: #f0f0f0;
}

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

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

/* FAQ container styles */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: #002B49; /* Dark blue background for FAQ items */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer 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 25px;
  opacity: 0;
  color: #f0f0f0; /* Light text for FAQ answer */
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
  padding: 20px 25px !important; /* 🚨 Use!important for padding */
  opacity: 1;
  background: #001f33; /* Slightly lighter dark background for active answer */
  border-top: 1px solid #004066;
  border-radius: 0 0 10px 10px;
}

/* Question styles */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #002B49;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* Light text for question */
}

.page-contact__faq-question:hover {
  background: #004066; /* Slightly lighter hover for dark blue */
}

.page-contact__faq-question:active {
  background: #001f33;
}

/* Question title style */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #FFD700; /* Accent color for question titles */
}

/* Toggle icon */
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #ffffff;
}

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-contact__location-details {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: #f0f0f0;
}

.page-contact__location-address,
.page-contact__location-working-hours {
  margin-bottom: 10px;
}

.page-contact__map-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 40px;
  }
  .page-contact__section-title {
    font-size: 30px;
  }
  .page-contact__hero-description,
  .page-contact__section-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 100px 0 40px 0 !important; /* Fixed header padding for mobile */
  }

  .page-contact__hero-title {
    font-size: 32px;
  }
  .page-contact__section-title {
    font-size: 26px;
  }
  .page-contact__hero-description,
  .page-contact__section-description {
    font-size: 16px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__commitment-section,
  .page-contact__faq-section,
  .page-contact__location-section {
    padding: 60px 0;
  }

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

  .page-contact__info-card,
  .page-contact__commitment-item {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-contact__info-card-icon,
  .page-contact__commitment-icon {
    width: 80px;
    height: 80px;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-contact__info-card-title,
  .page-contact__commitment-title {
    font-size: 20px;
  }

  .page-contact__form {
    padding: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
    padding: 10px 12px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__submit-button {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

  .page-contact__faq-question h3 {
    font-size: 16px;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  .page-contact__map-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-contact__map-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All images responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 28px;
  }
  .page-contact__section-title {
    font-size: 22px;
  }
  .page-contact__info-card-title,
  .page-contact__commitment-title {
    font-size: 18px;
  }
  .page-contact__info-card-text,
  .page-contact__commitment-text,
  .page-contact__info-card-detail,
  .page-contact__info-card-hours {
    font-size: 14px;
  }
  .page-contact__faq-question h3 {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 22px;
    width: 24px;
    height: 24px;
  }
}