/* style/contact.css */
/* body is expected to have padding-top: var(--header-offset) from shared.css */

.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color */
  background-color: #0A0A0A; /* Main background color */
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.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 */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__main-title {
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

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

.page-contact__section-title {
  text-align: center;
  color: #F2C14E;
  margin-top: 60px;
  margin-bottom: 30px;
  font-size: 2.5em;
  position: relative;
}

.page-contact__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #F2C14E;
  margin: 10px auto 0;
}

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

.page-contact__contact-methods,
.page-contact__contact-form-section,
.page-contact__faq-section,
.page-contact__location-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-contact__method-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px #FFD36B; /* Glow */
}

.page-contact__method-icon {
  width: 150px;
  height: 112px; /* Maintain aspect ratio for 400x300 */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-contact__method-title {
  color: #FFD36B;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-contact__method-text {
  margin-bottom: 25px;
  color: #FFF6D6;
}

.page-contact__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff; /* White text on button */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%); /* Reverse gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 0 10px #FFD36B; /* Glow on hover */
}

.page-contact__form-container {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-contact__form-intro {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  color: #FFD36B;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 5px;
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FFD36B;
  box-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

.page-contact__form-submit-btn {
  width: auto;
  padding: 15px 40px;
  font-size: 1.1em;
  margin-top: 20px;
}

.page-contact__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contact__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #FFD36B;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #1a1a1a;
}

.page-contact__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #FFD36B;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 1em;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
}

.page-contact__faq-answer a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #FFD36B;
}

.page-contact__location-content {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-contact__location-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-contact__location-map {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #3A2A12;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 30px;
  }

  .page-contact__main-title {
    font-size: 2.2em;
  }

  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding: 10px 15px 40px;
  }

  .page-contact__hero-content {
    padding: 25px;
  }

  .page-contact__main-title {
    font-size: 1.8em;
  }

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

  .page-contact__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-contact__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__contact-methods,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__location-section {
    padding: 30px 15px;
  }

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

  .page-contact__method-card,
  .page-contact__form-container,
  .page-contact__faq-item,
  .page-contact__location-content {
    padding: 25px;
  }

  .page-contact__method-title {
    font-size: 1.5em;
  }

  .page-contact__form-intro {
    font-size: 1em;
  }

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

  .page-contact__form-submit-btn {
    width: 100% !important;
    padding: 12px 25px;
  }

  .page-contact__faq-question {
    padding: 18px 20px;
  }

  .page-contact__faq-title {
    font-size: 1.1em;
  }

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

  /* Mobile responsive image adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__hero-section,
  .page-contact__methods-grid,
  .page-contact__method-card,
  .page-contact__form-container,
  .page-contact__faq-item,
  .page-contact__location-content,
  .page-contact__btn-primary,
  .page-contact__form-submit-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons specific mobile adaptation */
  .page-contact__cta-button,
  .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;
  }

  .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;
    gap: 10px;
  }

  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}