/* ===== Help Center / Contact page – Wise-style layout, Swix violet branding ===== */
/* 8pt grid: 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 128 */

:root {
  --help-violet: #6C3BFF;
  --help-violet-end: #8A5CFF;
  --help-violet-light: rgba(108, 59, 255, 0.08);
  --help-violet-border: rgba(108, 59, 255, 0.25);
  --help-violet-glow: rgba(108, 59, 255, 0.2);
  --help-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --help-text: #0f172a;
  --help-muted: #64748b;
  --help-bg-card: #f1f5f9;
  --help-shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.08);
  --help-shadow-btn: 0 4px 16px rgba(108, 59, 255, 0.35);
}

.help-main {
  padding-top: 72px;
  min-height: 100vh;
  font-family: var(--help-font);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 1) Hero Section ---------- */
.help-hero {
  padding: 48px 24px 40px;
}

.help-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.help-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--help-text);
  margin: 0 0 32px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.help-search-form {
  position: relative;
  display: block;
}

.help-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--help-muted);
  pointer-events: none;
}

.help-search-icon svg {
  width: 100%;
  height: 100%;
}

.help-search-input {
  width: 100%;
  padding: 16px 24px 16px 56px;
  font-size: 1rem;
  font-family: var(--help-font);
  color: var(--help-text);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  box-shadow: var(--help-shadow-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.help-search-input::placeholder {
  color: var(--help-muted);
}

.help-search-input:hover {
  border-color: var(--help-violet-border);
}

.help-search-input:focus {
  outline: none;
  border-color: var(--help-violet);
  box-shadow: 0 0 0 3px var(--help-violet-glow);
}

/* ---------- 2) Login CTA Section ---------- */
.help-login-cta {
  padding: 32px 24px 48px;
}

.help-login-cta-inner {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.help-login-text {
  font-size: 1rem;
  color: var(--help-muted);
  margin: 0 0 24px 0;
}

.help-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--help-font);
  color: #fff;
  background: linear-gradient(135deg, var(--help-violet) 0%, var(--help-violet-end) 100%);
  border: none;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--help-shadow-btn);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.help-login-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 59, 255, 0.4);
}

.help-login-btn:focus-visible {
  outline: 2px solid var(--help-violet);
  outline-offset: 2px;
}

.help-trouble-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--help-muted);
  text-decoration: underline;
  transition: color 0.25s ease;
}

.help-trouble-link:hover {
  color: var(--help-violet);
}

/* ---------- 3) Explore All Topics ---------- */
.help-topics {
  padding: 32px 24px 56px;
  background: #fff;
}

.help-topics-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.help-topics-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--help-text);
  margin: 0 0 24px 0;
}

.help-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--help-bg-card);
  border-radius: 20px;
  text-decoration: none;
  color: var(--help-text);
  border: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.help-topic-card:hover {
  background: var(--help-violet-light);
  box-shadow: var(--help-shadow-soft);
  border-color: var(--help-violet-border);
}

.help-topic-card:focus-visible {
  outline: 2px solid var(--help-violet);
  outline-offset: 2px;
}

.help-topic-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--help-text);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.help-topic-icon svg {
  width: 24px;
  height: 24px;
}

.help-topic-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--help-text);
}

.help-topic-desc {
  font-size: 0.875rem;
  color: var(--help-muted);
  line-height: 1.45;
  margin: 0;
}

/* ---------- 4) Still Need Help ---------- */
.help-contact {
  padding: 40px 24px 64px;
}

.help-contact-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}

.help-contact-text {
  font-size: 1rem;
  color: var(--help-text);
  margin: 0;
}

.help-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--help-font);
  color: var(--help-violet);
  background: transparent;
  border: 2px solid var(--help-violet);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.help-contact-btn:hover {
  background: var(--help-violet);
  color: #fff;
}

.help-contact-btn:focus-visible {
  outline: 2px solid var(--help-violet);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .help-hero {
    padding: 64px 32px 48px;
  }
  .help-login-cta {
    padding: 40px 32px 56px;
  }
  .help-topics {
    padding: 48px 32px 72px;
  }
  .help-topics-title {
    margin-bottom: 32px;
  }
  .help-contact {
    padding: 48px 32px 80px;
  }
}

@media (max-width: 991px) {
  .help-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .help-hero {
    padding: 40px 16px 32px;
  }
  .help-hero-title {
    margin-bottom: 24px;
  }
  .help-search-input {
    padding: 14px 16px 14px 48px;
    border-radius: 14px;
  }
  .help-search-icon {
    left: 16px;
    width: 20px;
    height: 20px;
  }
  .help-login-cta {
    padding: 24px 16px 40px;
  }
  .help-login-btn {
    min-height: 52px;
    width: 100%;
    max-width: 320px;
  }
  .help-trouble-link {
    margin-top: 12px;
  }
  .help-topics {
    padding: 32px 16px 48px;
  }
  .help-topics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .help-topic-card {
    padding: 24px 20px;
    border-radius: 16px;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
  }
  .help-topic-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .help-contact {
    padding: 32px 16px 56px;
  }
  .help-contact-inner {
    flex-direction: column;
    gap: 16px;
  }
  .help-contact-btn {
    min-height: 52px;
    min-width: 160px;
  }
}
