:root {
  --yellow: #f5c518;
  --yellow-light: #ffe65f;
  --yellow-soft: #fff8cc;
  --yellow-deep: #e6b800;
  --blue: #1a2c5b;
  --blue-mid: #243d7a;
  --blue-soft: #e8eff9;
  --white: #ffffff;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --border: #f3e8a1;
  --shadow: 0 10px 28px rgba(26, 44, 91, 0.08);
  --shadow-yellow: 0 6px 18px rgba(245, 197, 24, 0.22);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body {
  background: linear-gradient(180deg, var(--yellow-soft) 0%, #fffbe8 35%, var(--white) 100%);
  overflow-x: hidden;
  font-family: "Segoe UI", "Nunito", Arial, sans-serif;
  color: var(--text-main);
}

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

/* Hero */
.help-hero {
  background: linear-gradient(120deg, var(--yellow) 0%, var(--yellow-light) 55%, #fff0a8 100%);
  color: var(--blue);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 197, 24, 0.45);
  position: relative;
  overflow: hidden;
}

.help-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.help-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 44, 91, 0.08);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.help-hero-badge i {
  color: var(--blue);
}

.help-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}

.help-hero p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 640px;
  opacity: 0.85;
  line-height: 1.6;
}

/* Two-column layout */
.help-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.help-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.help-card-header {
  background: linear-gradient(135deg, var(--yellow-soft) 0%, #fffef5 100%);
  border-bottom: 2px solid var(--yellow);
  padding: 18px 22px;
}

.help-card-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-card-header h2 i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.help-card-body {
  padding: 20px 22px 24px;
}

.help-intro {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 18px;
  text-align: left;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.accordion-item:hover {
  border-color: var(--yellow-deep);
}

.accordion-item.active {
  border-color: var(--yellow);
  box-shadow: var(--shadow-yellow);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  transition: background 0.2s ease;
}

.accordion-header:hover,
.accordion-item.active .accordion-header {
  background: var(--yellow-soft);
}

.accordion-header .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--blue);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease, background 0.2s ease;
}

.accordion-item.active .accordion-header .icon {
  background: var(--blue);
  color: var(--yellow);
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  padding: 0 16px;
  background: #fffdf5;
}

.accordion-item.active .accordion-body {
  opacity: 1;
  padding: 0 16px 16px;
  max-height: 400px;
  overflow-y: auto;
}

.accordion-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row.full-width {
  grid-template-columns: 1fr;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  background: #fffef8;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}

.input-group textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 220px;
}

.contact-form button i {
  margin-right: 8px;
}

.contact-form button {
  align-self: stretch;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-yellow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 197, 24, 0.35);
}

.contact-form button:active {
  transform: translateY(0);
}

/* Contact links */
.contact-links {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-link-item i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow-soft);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.contact-link-item strong {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.contact-link-item a {
  color: var(--blue-mid);
  text-decoration: none;
  word-break: break-word;
}

.contact-link-item a:hover {
  color: var(--yellow-deep);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .help-page {
    margin-top: 80px;
    padding: 0 16px 40px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .help-contact {
    order: 2;
  }

  .help-faq {
    order: 1;
  }
}

@media (max-width: 576px) {
  .help-page {
    margin-top: 72px;
    padding: 0 12px 32px;
  }

  .help-hero {
    padding: 22px 20px;
  }

  .help-card-body {
    padding: 16px;
  }

  .help-card-header {
    padding: 14px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .accordion-header {
    font-size: 0.88rem;
    padding: 12px 14px;
  }
}
