/* style/contact.css */
/* Colors */
:root {
  --jili168-primary: #F2C14E;
  --jili168-secondary: #FFD36B;
  --jili168-card-bg: #111111;
  --jili168-background: #0A0A0A;
  --jili168-text-main: #FFF6D6;
  --jili168-border: #3A2A12;
  --jili168-glow: #FFD36B;
  --header-offset: 0px; /* This will be set by shared.css */
}

.page-contact {
  color: var(--jili168-text-main); /* Ensure text is visible on dark background */
  background-color: var(--jili168-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the very first section */
}

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

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 450px; /* Ensure hero section has a minimum height */
  padding-bottom: 40px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 675px; /* Max height for the hero image */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 800px;
  margin-top: 60px; /* Adjust as needed to ensure space below image */
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: var(--jili168-secondary);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: var(--jili168-text-main);
  margin-bottom: 30px;
}

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Dark text for bright button */
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__introduction-section,
.page-contact__channels-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__location-section,
.page-contact__final-cta-section {
  padding: 60px 0;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: var(--jili168-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-contact__text-block {
  font-size: 1em;
  color: var(--jili168-text-main);
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__channel-card {
  background: var(--jili168-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--jili168-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-contact__channel-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.page-contact__card-title {
  font-size: 1.5em;
  color: var(--jili168-secondary);
  margin-bottom: 10px;
}

.page-contact__card-description {
  font-size: 0.95em;
  color: var(--jili168-text-main);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Dark text for bright button */
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.4);
}

.page-contact__btn-secondary {
  display: inline-block;
  background: var(--jili168-card-bg);
  color: var(--jili168-primary);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--jili168-primary);
  cursor: pointer;
}

.page-contact__btn-secondary:hover {
  background: var(--jili168-primary);
  color: var(--jili168-card-bg);
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.4);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: var(--jili168-card-bg);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--jili168-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--jili168-primary);
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--jili168-border);
  border-radius: 5px;
  background-color: #000000; /* Darker input background */
  color: var(--jili168-text-main);
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #666;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  margin-top: 10px;
}

.page-contact__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-item {
  background: var(--jili168-card-bg);
  border: 1px solid var(--jili168-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: var(--jili168-primary);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.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); /* Plus to X / Minus */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--jili168-text-main);
}

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

.page-contact__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-contact__location-section .page-contact__text-block {
  margin-bottom: 40px;
}

.page-contact__address-block {
  background: var(--jili168-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--jili168-border);
  max-width: 600px;
  margin: 0 auto;
  color: var(--jili168-text-main);
}

.page-contact__address-block p {
  margin-bottom: 10px;
}

.page-contact__address-block p:last-child {
  margin-bottom: 0;
}

.page-contact__text-link {
  color: var(--jili168-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__text-link:hover {
  text-decoration: underline;
  color: var(--jili168-primary);
}

.page-contact__final-cta-section .page-contact__text-block {
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

  .page-contact__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

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

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

  .page-contact__hero-section {
    min-height: 400px;
    padding-bottom: 20px;
  }

  .page-contact__hero-content {
    margin-top: 40px;
    max-width: 90%;
  }

  .page-contact__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

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

  .page-contact__introduction-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__final-cta-section {
    padding: 40px 0;
  }

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

  .page-contact__contact-form {
    padding: 25px;
    margin: 20px auto 0;
  }

  .page-contact__faq-question,
  .page-contact__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

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

  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure first section has padding-top and not var(--header-offset) */
  .page-contact__hero-section {
    padding-top: 10px !important;
  }
}