/* style/contact.css */

/* General page styling */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default text color from custom palette */
  background: var(--background, #F5F7FA); /* Default background from custom palette */
}

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

/* Section titles and descriptions */
.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #333333);
}

.page-contact__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main, #333333);
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Brand colors for hero background */
}

.page-contact__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 400px; /* Adjust as needed */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(30px, 4vw, 48px); /* Clamp for responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact a[class*="button"],
.page-contact a[class*="btn"],
.page-contact button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-contact__btn-primary,
.page-contact button[type="submit"] {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button color */
  color: #ffffff;
  border: none;
}

.page-contact__btn-primary:hover,
.page-contact button[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-contact__btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background: var(--background, #F5F7FA); /* Background from custom palette */
}

.page-contact__contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.page-contact__card {
  background: var(--card-bg, #FFFFFF); /* Card BG from custom palette */
  border: 1px solid var(--border, #E0E0E0); /* Border from custom palette */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #333333);
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__card-icon {
  width: 100%; /* Ensure images take full card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-contact__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #333333);
}

.page-contact__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-main, #333333);
}

.page-contact__contact-detail {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
  color: #E53935; /* Highlight contact details with primary color */
}

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

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

.page-contact__social-icon:hover {
  background: #FF5A4F;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background: #E53935; /* Dark background from brand color */
  color: #ffffff;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white background for form */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FF5A4F;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.page-contact__contact-form .page-contact__btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background: var(--background, #F5F7FA); /* Light background */
  color: var(--text-main, #333333);
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px; /* Increased border-radius for modern look */
  border: 1px solid var(--border, #E0E0E0);
  overflow: hidden;
  background: var(--card-bg, #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; /* Increased padding */
  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: #fcfcfc;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px; /* Increased font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #333333);
}
.page-contact__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #E53935; /* Primary color for toggle */
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px; /* Larger toggle area */
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 12px 12px;
  color: var(--text-main, #333333);
}
details.page-contact__faq-item .page-contact__faq-answer p {
  margin: 0;
  font-size: 16px;
}


/* Responsive styles for 1024px */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
  }
  .page-contact__hero-image-wrapper {
    height: 350px;
  }
  .page-contact__main-title {
    font-size: clamp(28px, 5vw, 42px);
  }
  .page-contact__intro-text {
    font-size: 17px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__section-description {
    font-size: 17px;
    margin-bottom: 30px;
  }
  .page-contact__contact-cards {
    grid-template-columns: 1fr; /* Stack cards on smaller desktops/tablets */
    gap: 25px;
  }
  .page-contact__card-title {
    font-size: 22px;
  }
  .page-contact__card-text {
    font-size: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 17px;
  }
  .page-contact__faq-toggle {
    font-size: 26px;
  }
}

/* Responsive styles for 768px (Mobile) */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-contact__container {
    padding: 0 15px !important;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 30px;
  }
  .page-contact__hero-image-wrapper {
    height: 250px;
    margin-bottom: 20px;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-contact__hero-content {
    padding: 0 15px;
  }
  .page-contact__main-title {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-contact__intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }

  /* Section titles and descriptions */
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Buttons */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact button[type="submit"] {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-contact__hero-content .page-contact__btn-primary {
    max-width: 300px !important; /* Limit width for single CTA in hero */
    width: 100% !important;
    margin: 0 auto;
  }
  .page-contact__contact-cards .page-contact__btn-secondary {
    max-width: 250px !important; /* Limit width for card buttons */
    width: 100% !important;
    margin: 0 auto;
  }
  .page-contact__contact-form .page-contact__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-contact__social-links {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-contact__social-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Info Section */
  .page-contact__info-section {
    padding: 50px 0;
  }
  .page-contact__contact-cards {
    gap: 20px;
    margin-top: 30px;
  }
  .page-contact__card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-contact__card-icon {
    height: 150px;
    margin-bottom: 20px;
  }
  .page-contact__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-contact__card-text {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .page-contact__contact-detail {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Form Section */
  .page-contact__form-section {
    padding: 50px 0;
  }
  .page-contact__contact-form {
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
  }
  .page-contact__form-group {
    margin-bottom: 20px;
  }
  .page-contact__form-label {
    font-size: 15px;
    margin-bottom: 8px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }

  /* FAQ Section */
  .page-contact__faq-section {
    padding: 50px 0;
  }
  .page-contact__faq-list {
    margin-top: 30px;
  }
  details.page-contact__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 28px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
  }
  details.page-contact__faq-item .page-contact__faq-answer p {
    font-size: 14px;
  }
  
  /* Image responsiveness for all content images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right already set for container */
  }
}