/* ============================================
   KaisySales — Pages (Help, Privacy, Terms)
   ============================================ */

/* --- Page Header --- */
.page-header {
  padding: 140px 0 48px;
  background: var(--color-bg);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}

.page-header__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Terracotta variant (terms, privacy, help, pricing) */
.page-header--terracotta {
  background: var(--color-primary);
}

.page-header--terracotta .section-label {
  color: var(--color-accent);
}

.page-header--terracotta h1 {
  color: var(--color-bg);
}

.page-header--terracotta .page-header__desc {
  color: var(--color-bg);
  opacity: 0.85;
}

/* --- Page Content --- */
.page-content {
  padding-top: 0;
  background: var(--color-bg-card);
}

/* Breathing room above the first item (terms, privacy, help, pricing) */
.page-content--top-gap {
  padding-top: 15px;
}

.page-container {
  max-width: 780px;
  margin: 0 auto;
}

/* Text content (privacy, terms) */
.page-text h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.page-text h2:first-child {
  margin-top: 0;
}

.page-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-text ul {
  margin: 0 0 20px 24px;
  list-style: disc;
}

.page-text ul li {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}

.page-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.page-text a:hover {
  color: var(--color-primary-container);
}

.page-text strong {
  color: var(--color-text);
  font-weight: 700;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-light);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Contact CTA (help page) --- */
.page-cta {
  background: var(--color-bg-alt);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .page-header {
    padding: 120px 0 32px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-item.open .faq-answer {
    padding: 0 18px 16px;
  }

  .page-text h2 {
    font-size: 20px;
    margin-top: 32px;
  }
}

/* --- Pricing plan card --- */
.plan-card {
  background: var(--color-white);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.plan-card__price {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 76px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary);
  margin: 8px 0 6px;
}

.plan-card__note {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.plan-card__list {
  text-align: left;
  max-width: 420px;
  margin: 24px auto 0;
}

@media (max-width: 640px) {
  .plan-card {
    padding: 32px 22px;
  }
}

/* --- Contact form (contact page) --- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.contact-form__field label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: var(--transition-fast);
}

.contact-form__field textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(111, 36, 10, 0.12);
}

.contact-form__hint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Honeypot: moved off-screen rather than hidden with display:none, so a bot
   that skips hidden fields still fills it in. */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form__status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  min-height: 20px;
}

.contact-form__status[data-tone="error"] {
  color: var(--color-error);
}

.contact-success {
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 32px;
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
}

.contact-success h2 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.contact-success p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.contact-note {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  text-align: center;
}

.contact-note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .contact-form__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form__status {
    width: 100%;
  }
}
