/* style/contact.css */

/* Base styles for page-contact - ensuring light text on dark body background */
.page-contact {
  background-color: var(--bg-color); /* #0D0E12 from custom colors */
  color: var(--text-main); /* #FFF3E6 from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #0D0E12; /* Explicitly use background color */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
}

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

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

.page-contact__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFB04D; /* Glow color for title */
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.4);
  /* Flexible font sizing for H1 */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-contact__subtitle {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  text-align: center;
  color: #FF8C1A;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: bold;
}

.page-contact__section-description {
  text-align: center;
  color: #FFF3E6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05em;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-contact__method-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.2);
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  display: block;
}

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

.page-contact__method-text {
  color: #FFF3E6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__email-link {
  color: #FFA53A;
  text-decoration: underline;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
  width: auto; /* Default auto width */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #FF8C1A;
  border-color: #FF8C1A; /* Main color as border */
}

.page-contact__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #ffffff;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #17191F; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  color: #FFA53A;
  font-weight: bold;
  font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  background-color: #0D0E12;
  color: #FFF3E6;
  font-size: 1em;
  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: #A84F0C;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFA53A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
}

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

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

.page-contact__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-item[open] {
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.2);
}

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

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

.page-contact__faq-question:hover {
  background-color: rgba(255, 140, 26, 0.1);
}

.page-contact__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent click on text from interfering with summary toggle */
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: #FF8C1A;
  pointer-events: none; /* Prevent click on toggle from interfering with summary toggle */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  color: #FFF3E6;
  font-size: 1em;
}

.page-contact__faq-answer p {
  margin: 0;
}

/* Social Section */
.page-contact__social-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.page-contact__social-icon-link {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__social-icon-link:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 15px rgba(255, 140, 26, 0.4);
}

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

/* Location Section */
.page-contact__location-section {
  padding: 60px 0;
  background-color: #0D0E12;
  text-align: center;
}

.page-contact__location-info {
  background-color: #17191F;
  padding: 30px;
  border-radius: 12px;
  margin: 0 auto 40px auto;
  max-width: 800px;
  border: 1px solid #A84F0C;
  color: #FFF3E6;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__location-info p {
  margin-bottom: 10px;
}

.page-contact__location-info strong {
  color: #FFA53A;
}

.page-contact__location-map {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #A84F0C;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__method-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

  .page-contact__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    padding: 0 15px;
  }

  .page-contact__section-description {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-section,
  .page-contact__location-section {
    padding: 40px 0;
  }

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

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

  .page-contact__hero-image-wrapper,
  .page-contact__method-card,
  .page-contact__contact-form,
  .page-contact__faq-item,
  .page-contact__social-icon-link,
  .page-contact__location-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__method-card .page-contact__btn-primary,
  .page-contact__method-card .page-contact__btn-secondary {
    width: auto !important; /* Let buttons within cards adapt to content while respecting max-width */
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .page-contact__social-links {
    gap: 15px;
  }

  .page-contact__social-icon-link {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .page-contact__method-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__method-card {
    padding: 25px;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
  }

  .page-contact__form-submit-btn {
    padding: 12px;
    font-size: 1.1em;
  }
}