/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Body background is white */
}

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

/* Section general styles */
.page-contact__hero-section,
.page-contact__form-section,
.page-contact__methods-section,
.page-contact__faq-section,
.page-contact__about-section,
.page-contact__cta-banner {
  padding: 60px 0;
  text-align: center;
}

/* Top text / first block padding-top */
.page-contact__hero-section {
  padding-top: 10px; /* ~10px top padding for first block */
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-contact__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #f0f8ff; /* Light blue tint for hero background */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
}

.page-contact__hero-content {
  padding: 40px 15px;
  text-align: center;
  margin-top: 20px; /* Separate image from text */
}

.page-contact__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 font-size */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 20px;
  color: #333333;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-contact__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1f8ec4;
  transform: translateY(-2px);
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #f9f9f9;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  outline: none;
}

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

.page-contact__submit-button {
  width: auto;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  background-color: #EA7C07; /* Login color for submit */
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact__submit-button:hover {
  background-color: #c96500;
}

/* Other Contact Methods Section */
.page-contact__methods-section {
  background-color: #26A9E0; /* Dark section with brand color */
  color: #ffffff;
}

.page-contact__section-title--white,
.page-contact__section-description--white {
  color: #ffffff;
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

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

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__method-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #f9f9f9;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-contact__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin: 0;
}

/* About Section */
.page-contact__about-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-contact__about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-contact__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-contact__about-subtitle {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__about-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-contact__about-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-contact__about-list li {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-contact__about-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #f0f0f0; /* Checkmark color */
  font-size: 20px;
  line-height: 1;
}

/* CTA Banner Section */
.page-contact__cta-banner {
  background-color: #f0f8ff;
  padding: 80px 0;
}

.page-contact__cta-content {
  max-width: 900px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__description,
  .page-contact__section-description {
    font-size: 17px;
  }
  .page-contact__hero-content {
    padding: 30px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(26px, 5vw, 42px);
  }
  .page-contact__about-content {
    gap: 30px;
  }
  .page-contact__about-subtitle {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section,
  .page-contact__form-section,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__about-section,
  .page-contact__cta-banner {
    padding: 40px 0;
  }

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

  /* Top text / first block padding-top for mobile */
  .page-contact__hero-section {
    padding-top: 10px !important; /* ~10px top padding for first block */
  }

  /* Hero Section */
  .page-contact__hero-image {
    max-height: 400px;
  }
  .page-contact__hero-content {
    padding: 20px 15px;
    margin-top: 10px;
  }
  .page-contact__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-contact__description {
    font-size: 17px;
    margin-bottom: 20px;
  }
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Form Section */
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-label {
    font-size: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-contact__submit-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
  }

  /* Methods Section */
  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__method-text {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 16px; }
  .page-contact__faq-toggle { font-size: 20px; width: 24px; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }
  .page-contact__faq-answer p { font-size: 15px; }

  /* About Section */
  .page-contact__about-content {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    text-align: center;
  }
  .page-contact__about-text {
    order: 2; /* Text below image on mobile */
  }
  .page-contact__about-image {
    order: 1; /* Image above text on mobile */
  }
  .page-contact__about-subtitle {
    font-size: 22px;
  }
  .page-contact__about-text p,
  .page-contact__about-list li {
    font-size: 16px;
  }
  .page-contact__about-list {
    text-align: left;
    padding-left: 20px;
  }
  .page-contact__about-list li {
    padding-left: 25px;
  }
  .page-contact__about-list li::before {
    left: 0;
  }

  /* CTA Banner */
  .page-contact__cta-banner {
    padding: 50px 0;
  }
  .page-contact__cta-content .page-contact__cta-buttons {
    padding: 0;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__container,
  .page-contact__form-section,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__about-section,
  .page-contact__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}