/* style/contact.css */
:root {
  --primary-color: #0A246A;
  --secondary-color: #F3C72B;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

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

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

/* Top padding for fixed header */
.page-contact__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

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

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

.page-contact__hero-title {
  font-size: 44px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
}

.page-contact__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit from parent section */
}

.page-contact__intro-text {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-contact__btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-contact__form-content {
  flex: 1;
}

.page-contact__form-intro-text {
  font-size: 17px;
  margin-bottom: 30px;
  color: var(--text-dark);
  text-align: left;
}

.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-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-dark);
  background-color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-contact__form-submit-btn {
  align-self: flex-start;
  margin-top: 10px;
}

.page-contact__form-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Direct Contact Section */
.page-contact__direct-contact-section {
  padding: 80px 0;
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__method-icon {
  width: 120px; /* Larger icon for content, not small */
  height: 120px;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain;
}

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

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

.page-contact__method-link {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__method-link:hover {
  color: #e0b426;
  border-color: #e0b426;
}

.page-contact__operating-hours-text {
  text-align: center;
  margin-top: 50px;
  font-size: 17px;
  opacity: 0.9;
}

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

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  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: var(--bg-light);
  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(--text-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 rotate for visual cue */
}

.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;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-contact__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-contact__commitment-text {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

.page-contact__commitment-cta .page-contact__btn-primary {
  background: var(--secondary-color);
  color: var(--text-dark);
}

/* Image responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 38px;
  }

  .page-contact__section-title {
    font-size: 30px;
  }

  .page-contact__form-container {
    flex-direction: column;
    align-items: center;
  }

  .page-contact__form-image-wrapper {
    margin-top: 40px;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 100px !important; /* Mobile padding for fixed header */
    padding-bottom: 40px;
  }

  .page-contact__hero-title {
    font-size: 32px;
  }

  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-contact__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-contact__intro-text,
  .page-contact__form-intro-text,
  .page-contact__commitment-text,
  .page-contact__operating-hours-text {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 10px; /* Add some padding to text blocks */
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

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

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

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

  .page-contact__form-submit-btn {
    align-self: stretch;
  }

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

  .page-contact__method-icon {
    width: 100px;
    height: 100px;
  }

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

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

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

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 28px;
  }

  .page-contact__section-title {
    font-size: 22px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    font-size: 15px;
    padding: 10px 20px;
  }
}