/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-contact__hero-content {
  max-width: 800px;
  z-index: 1;
  background-color: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Pull content up over image slightly for visual interest */
  position: relative; /* Ensure z-index works */
}

.page-contact__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  color: #2F6BFF; /* Primary color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

/* General Section Styling */
.page-contact__section {
  padding: 60px 20px;
  text-align: center;
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width up to max-width */
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 20px;
}

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

.page-contact__section-description {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-description--white {
  color: #f0f0f0;
}

/* Contact Methods Grid */
.page-contact__contact-methods {
  background-color: #F4F7FB; /* Background */
}

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

.page-contact__method-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-icon {
  width: 100%; /* Ensure large enough */
  max-width: 150px; /* Limit icon size */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__method-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: #2F6BFF; /* Primary color for dark background */
  color: #ffffff;
  padding: 80px 20px;
}

.page-contact__contact-form-section .page-contact__section-description {
  color: #A5C4FF; /* Glow color for description */
}

.page-contact__form-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.page-contact__form-image {
  flex: 1 1 400px; /* Allow image to grow/shrink, min-width 400px */
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
}

.page-contact__form {
  flex: 1 1 450px; /* Allow form to grow/shrink, min-width 450px */
  background-color: #FFFFFF; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  min-width: 280px; /* Ensure minimum size */
}

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

.page-contact__form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2D3D; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  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: #6FA3FF; /* Auxiliary color for placeholders */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2F6BFF; /* Primary color on focus */
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  outline: none;
}

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

/* FAQ Section */
.page-contact__faq-section {
  background-color: #F4F7FB; /* Background */
  padding-bottom: 80px;
}

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

.page-contact__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-item[open] {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: #2F6BFF; /* Primary color when open */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #ffffff;
  position: relative;
  list-style: none; /* Remove default marker for summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: 500;
  color: #2F6BFF; /* Primary color */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus */
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
  line-height: 1.7;
}

.page-contact__faq-answer p {
  margin-bottom: 0;
}

.page-contact__faq-answer a {
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  font-weight: 500;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Bottom Section */
.page-contact__cta-bottom {
  padding-top: 0;
}

.page-contact__cta-box {
  background-color: #2F6BFF; /* Primary color */
  border-radius: 12px;
  padding: 50px 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__cta-box .page-contact__section-title {
  color: #ffffff;
  margin-bottom: 15px;
}

.page-contact__cta-box .page-contact__section-description {
  color: #A5C4FF; /* Glow color */
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  width: auto; /* Default width */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF; /* Primary color border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-contact__btn-secondary:hover {
  background-color: #F4F7FB; /* Background color on hover */
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    margin-top: -60px;
    padding: 25px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }

  .page-contact__section-title {
    font-size: clamp(1.6em, 3vw, 2.2em);
  }

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

  .page-contact__form-wrapper {
    flex-direction: column;
  }

  .page-contact__form-image,
  .page-contact__form {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-contact__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-contact__hero-content {
    margin-top: -40px;
    padding: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 10px;
  }

  .page-contact__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-contact__section {
    padding: 40px 15px;
  }

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

  .page-contact__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    margin-bottom: 30px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact__method-icon {
    max-width: 120px;
  }

  .page-contact__contact-form-section {
    padding: 60px 15px;
  }

  .page-contact__form-wrapper {
    gap: 20px;
  }

  .page-contact__form {
    padding: 30px;
  }

  .page-contact__faq-list {
    margin-top: 30px;
  }

  .page-contact__faq-question {
    padding: 18px 20px;
    font-size: 1em;
  }

  .page-contact__faq-answer {
    padding: 0 20px 18px;
    font-size: 0.9em;
  }

  .page-contact__cta-box {
    padding: 40px 20px;
  }

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

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* All containers with images must be responsive */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__method-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-contact__container */
  }
  
  /* Specific padding for sections if needed, but container padding is primary */
  .page-contact__contact-methods .page-contact__container,
  .page-contact__contact-form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__cta-bottom .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color contrast enforcement - applied where needed */
/* Dark background sections */
.page-contact__dark-bg {
  background-color: #2F6BFF; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
}

/* Light background sections (default for most elements) */
.page-contact__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #1F2D3D; /* Dark text for contrast */
}

/* Ensure text in general sections maintains contrast */
.page-contact p,
.page-contact li,
.page-contact label {
  color: #1F2D3D; /* Main text color for readability */
}

.page-contact__dark-bg p,
.page-contact__dark-bg li,
.page-contact__dark-bg label {
  color: #ffffff;
}

/* Specific button text colors are already defined in button styles */