/* style/contact.css */

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding, body handles header offset */
  background-color: #F4F7FB; /* Match page background */
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  min-width: 200px;
  min-height: 200px;
}

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #2F6BFF; /* Main brand color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* General Section Styling */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #2F6BFF; /* Main brand color */
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main color */
  text-align: center;
  margin-bottom: 40px;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background color */
}

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

.page-contact__card {
  background-color: #FFFFFF; /* Card Background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border color */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
}

.page-contact__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-contact__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-contact__card-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #2F6BFF; /* Main brand color */
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1em;
  color: #1F2D3D; /* Text Main color */
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button down */
}

.page-contact__phone-number,
.page-contact__email-address {
  font-size: 1.1em;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
}

.page-contact__phone-link,
.page-contact__email-link {
  color: #2F6BFF; /* Main brand color */
  text-decoration: none;
}

.page-contact__phone-link:hover,
.page-contact__email-link:hover {
  text-decoration: underline;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button does not overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-contact__btn-secondary {
  background: #FFFFFF; /* Card Background */
  color: #2F6BFF; /* Main brand color */
  border: 2px solid #2F6BFF; /* Main brand color */
}

.page-contact__btn-secondary:hover {
  background: #2F6BFF; /* Main brand color */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main brand color for dark background */
  color: #ffffff; /* White text for dark background */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff; /* White text for dark background */
}

.page-contact__contact-form {
  background-color: #FFFFFF; /* Card Background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid #D6E2FF; /* Border color */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main color */
  background-color: #F4F7FB; /* Background color */
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(31, 45, 61, 0.6); /* Lighter version of Text Main */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2F6BFF; /* Main brand color on focus */
  outline: none;
}

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto; /* Allow button to size itself */
  padding-left: 40px;
  padding-right: 40px;
  margin-top: 15px;
}

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

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

.page-contact__faq-item {
  background-color: #FFFFFF; /* Card Background */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main color */
  cursor: pointer;
  background-color: #FFFFFF; /* Card Background */
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #F4F7FB; /* Lighter background on hover */
}

/* For details tag */
.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #2F6BFF; /* Main brand color */
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main color */
  line-height: 1.6;
  max-height: 0; /* Hidden by default for JS fallback */
  overflow: hidden; /* Hide overflow for JS fallback */
  transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth transition for JS fallback */
}

/* For details tag, answer is visible by default */
.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

/* For JS active class, answer is visible */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 500px !important; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    content: '−'; /* Change to minus sign */
}

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

.page-contact__faq-answer .page-contact__btn-secondary {
  margin-top: 10px;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main brand color for dark background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-contact__commitment-section .page-contact__section-title,
.page-contact__commitment-section .page-contact__section-description {
  color: #ffffff; /* White text for dark background */
}

.page-contact__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-width: 900px;
    height: auto;
  }
}

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

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
  }

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }

  .page-contact__section-description {
    font-size: 1em;
  }

  .page-contact__contact-methods,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 50px 0;
  }

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

  .page-contact__method-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }

  .page-contact__card {
    padding: 25px;
  }

  .page-contact__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__form-input,
  .page-contact__form-textarea,
  .page-contact__form-group,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__contact-form {
    padding: 30px;
  }

  /* Responsive button styles */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to prevent text touching edges */
    padding-right: 15px;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 15px; /* Adjust gap for stacked buttons */
    flex-direction: column; /* Stack buttons vertically */
  }

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

  .page-contact__faq-answer {
    padding: 0 20px 18px;
  }
}