/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

/* Section general styling */
.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-title--light {
  color: #FFF3E6; /* For sections with dark backgrounds */
}

.page-contact__section-description {
  font-size: 1.1em;
  color: rgba(255, 243, 230, 0.8); /* Lighter version of Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-description--light {
  color: rgba(255, 243, 230, 0.8);
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12; /* Ensure dark background for hero */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1; /* Ensure content is above image (if any overlap due to layout) */
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 size, prevent too large */
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: rgba(255, 243, 230, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

/* Form Section */
.page-contact__form-section {
  background-color: #0D0E12; /* Background */
  padding: 80px 0;
}

.page-contact__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-contact__form-illustration {
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-contact__contact-form {
  background-color: #17191F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  flex-grow: 1;
  text-align: left;
  border: 1px solid #A84F0C; /* Border */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 5px;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFA53A; /* Auxiliary color */
  outline: none;
}

.page-contact__submit-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 165, 58, 0.4);
  max-width: 100%; /* Ensure responsiveness */
  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__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 165, 58, 0.6);
}

/* Other Methods Section */
.page-contact__other-methods-section {
  background-color: #0D0E12; /* Background */
  padding: 80px 0;
}

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

.page-contact__method-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #A84F0C; /* Border */
}

.page-contact__method-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
}

.page-contact__method-text {
  color: rgba(255, 243, 230, 0.7);
  text-align: center;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 8px rgba(255, 165, 58, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  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 {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 165, 58, 0.5);
}

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

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

.page-contact__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-contact__faq-item[open] {
  background-color: #1a1c23; /* Slightly lighter when open */
  border-color: #FFA53A; /* Auxiliary color */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  cursor: pointer;
  list-style: none; /* Remove default summary marker */
  transition: color 0.3s ease;
}

.page-contact__faq-question:hover {
  color: #FFA53A; /* Auxiliary color */
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFA53A; /* Auxiliary color */
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: rgba(255, 243, 230, 0.7);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding: 0 25px 20px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}


/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
}

.page-contact__dark-section {
  background-color: #17191F; /* Card BG */
  padding: 60px 40px;
  border-radius: 15px;
  border: 1px solid #A84F0C; /* Border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-button {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-contact__form-illustration {
    max-width: 40%;
  }
  .page-contact__contact-form {
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header offset */
  }

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

  .page-contact__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-contact__hero-description {
    font-size: 1em;
  }

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

  .page-contact__form-illustration,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-contact__method-icon {
    width: 100px;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-contact__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }

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

  .page-contact__cta-button {
    font-size: 1.1em;
    padding: 15px 25px;
  }

  /* Mobile image, video, and button responsive adaptations */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width 100% on mobile */
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no filter changes image color */
  }

  .page-contact video,
  .page-contact__video { /* If video were present */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers that hold images, videos, or buttons */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__methods-grid,
  .page-contact__faq-list,
  .page-contact__dark-section,
  .page-contact__cta-buttons, /* If multiple buttons */
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important; /* Add padding to prevent content touching edges */
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific button styles for mobile */
  .page-contact__btn-primary,
  .page-contact__submit-button,
  .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 !important; /* Ensure button text has padding */
    padding-right: 15px !important;
  }

  /* If multiple buttons are in a flex container, ensure they wrap or stack */
  .page-contact__methods-grid {
    flex-direction: column; /* Stack cards vertically */
    gap: 20px;
  }
}

/* Ensure no filter on images globally within page-contact */
.page-contact img {
  filter: none !important;
}