/* style/contact.css */

/* Global styles for page-contact scope */
.page-contact {
  background-color: var(--background-color, #140C0C); /* Main background from custom colors */
  color: var(--text-main-color, #FFF1E8); /* Main text color from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure no image overflow */
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.page-contact__hero-title {
  color: #FFF1E8; /* Text Main */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for H1, as allowed if necessary */
}

.page-contact__hero-description {
  color: #FFF1E8; /* Text Main */
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-contact__info-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px; /* Ensure cards have some height */
}

.page-contact__card-title {
  color: #F3C54D; /* Gold */
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-text {
  color: #FFF1E8; /* Text Main */
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
  color: #FFF1E8; /* Text Main */
  flex-grow: 1;
}

.page-contact__contact-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-contact__contact-list li strong {
  color: #F3C54D; /* Gold */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-submit {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  color: #FFF1E8; /* Text Main */
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover,
.page-contact__btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
  position: relative;
  overflow: hidden;
}

.page-contact__section-title {
  color: #F3C54D; /* Gold */
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-description {
  color: #FFF1E8; /* Text Main */
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__form-wrapper {
  display: flex;
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  min-height: 450px; /* Ensure form wrapper has a minimum height */
}

.page-contact__form-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.6); /* Darken image for form contrast */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-contact__contact-form {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F3C54D; /* Gold */
  font-weight: 600;
  font-size: 1rem;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF1E8; /* Text Main */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 241, 232, 0.6); /* Lighter placeholder */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #F3C54D; /* Gold */
  box-shadow: 0 0 0 3px rgba(243, 197, 77, 0.3);
}

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}
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: rgba(42, 18, 18, 0.8); /* Darker hover for Card BG */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8; /* Text Main */
}
.page-contact__faq-qtext a {
  color: #F3C54D; /* Gold for links in FAQ */
  text-decoration: none;
}
.page-contact__faq-qtext a:hover {
  text-decoration: underline;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  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: rgba(42, 18, 18, 0.7); /* Slightly darker than Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8; /* Text Main */
  font-size: 1rem;
}
details.page-contact__faq-item .page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}
details.page-contact__faq-item .page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

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

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  /* Global page adjustments */
  .page-contact {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-contact__hero-content {
    padding: 60px 15px;
  }

  .page-contact__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-contact__hero-description {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Info Section */
  .page-contact__info-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
  }

  .page-contact__info-card {
    padding: 25px;
    min-height: auto;
  }

  .page-contact__card-title {
    font-size: 1.5rem;
  }

  .page-contact__card-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-contact__contact-list li {
    font-size: 0.95rem;
  }

  /* Buttons - Mobile specific */
  .page-contact__btn-primary,
  .page-contact__btn-submit {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Button containers for mobile */
  .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; /* Allow buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
    display: flex;
    flex-direction: column; /* Stack buttons vertically by default */
  }


  /* Form Section */
  .page-contact__section-title {
    font-size: 2rem;
    padding: 0 15px;
  }

  .page-contact__section-description {
    font-size: 1rem;
    padding: 0 15px;
    margin-bottom: 30px;
  }

  .page-contact__form-wrapper {
    flex-direction: column; /* Stack image and form vertically */
    min-height: auto;
  }

  .page-contact__form-image {
    width: 100%;
    height: 250px; /* Fixed height for mobile image */
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__contact-form {
    width: 100%;
    padding: 30px 20px;
  }

  .page-contact__form-label {
    font-size: 0.95rem;
  }

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

  /* FAQ Section */
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 1rem; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }

  /* Generic image and container responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__info-card,
  .page-contact__form-wrapper,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Tablet responsiveness (adjust for larger tablets if needed, but 768px covers most mobiles) */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 70px 30px;
  }
  .page-contact__hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  .page-contact__info-grid {
    gap: 25px;
  }
  .page-contact__info-card {
    padding: 25px;
    min-height: 250px;
  }
  .page-contact__card-title {
    font-size: 1.6rem;
  }
  .page-contact__form-wrapper {
    flex-direction: column;
  }
  .page-contact__form-image {
    width: 100%;
    height: 300px;
  }
  .page-contact__contact-form {
    width: 100%;
    padding: 35px;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 16px 18px;
  }
  .page-contact__faq-qtext {
    font-size: 1.05rem;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 18px 18px;
  }
  .page-contact__container {
    padding: 0 30px;
  }
}