/* style/contact.css */

/* --- General Styles --- */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background: #F4F7FB; /* Custom background color */
}

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__text {
  font-size: 16px;
  line-height: 1.6;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

.page-contact__btn-primary,
.page-contact__btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
  max-width: 100%; /* Ensure button max-width */
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

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

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

/* --- Hero Section --- */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #F4F7FB;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 60px;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.page-contact__hero-content {
  max-width: 800px;
  padding: 40px 20px 60px;
  z-index: 1;
}

.page-contact__main-title {
  font-size: 44px;
  font-weight: 800;
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 18px;
  color: #1F2D3D;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Contact Info Section --- */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-contact__contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-contact__method-card {
  background: #F4F7FB;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact__method-description {
  font-size: 15px;
  color: #1F2D3D;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__phone-number {
  font-size: 22px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-top: 15px;
  margin-bottom: 0;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #2F6BFF;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon:hover {
  background: #6FA3FF;
  transform: translateY(-3px);
}

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

.page-contact__form-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-contact__form-image {
  flex: 1;
  border-radius: 8px;
  object-fit: cover;
  min-width: 0; /* Allow image to shrink */
}

.page-contact__contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0; /* Allow form to shrink */
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

.page-contact__form-label {
  font-size: 15px;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  font-size: 16px;
  color: #1F2D3D;
  background-color: #F4F7FB;
  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: #666;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #6FA3FF;
  box-shadow: 0 0 0 3px rgba(111, 163, 255, 0.2);
  outline: none;
}

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

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #F4F7FB;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #F4F7FB;
  border-radius: 0 0 12px 12px;
}
.page-contact__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2D3D;
  text-align: left;
}


/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-contact__container {
    padding: 0 25px;
  }

  .page-contact__main-title {
    font-size: 38px;
  }

  .page-contact__description {
    font-size: 17px;
  }

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

  .page-contact__text {
    font-size: 15px;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
  }

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

  .page-contact__form-image {
    max-height: 300px;
  }

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

  .page-contact__faq-qtext {
    font-size: 17px;
  }

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

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


/* Mobile Styles (max-width: 768px) - All required sections MUST be present */
@media (max-width: 768px) {
  /* Hero Section - padding and general image rules */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
  }

  .page-contact__main-title {
    font-size: 28px;
  }

  .page-contact__description {
    font-size: 15px;
  }

  /* General Images & Containers - max-width: 100% !important */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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: 15px;
    padding-right: 15px;
  }

  /* Contact Info Section */
  .page-contact__info-section {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-contact__text {
    font-size: 14px;
    margin-bottom: 30px;
  }

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

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

  .page-contact__phone-number {
    font-size: 20px;
  }

  .page-contact__social-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

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

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

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

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

  /* Buttons & Button Containers - max-width: 100% !important */
  .page-contact__btn-primary,
  .page-contact__btn-submit,
  .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;
    padding-right: 15px;
  }

  /* Specific button containers, if any, for flex wrapping */
  .page-contact__cta-buttons, /* Example if used */
  .page-contact__button-group, /* Example if used */
  .page-contact__btn-container { /* Example if used */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex context for wrapping */
    flex-direction: column; /* Often better for mobile buttons */
  }

  /* FAQ Section - padding and font size */
  .page-contact__faq-section {
    padding: 40px 0;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }
  .page-contact__faq-answer p {
    font-size: 14px;
  }

  /* Ensure no horizontal overflow for any section */
  .page-contact {
    overflow-x: hidden;
  }
}