/* Nihehe contact page. Colours are the brand tokens (ink #132d4c, accent #00aee7). */
.ct-main {
  --ct-ink: #132d4c;
  --ct-accent: #00aee7;
  --ct-light: #e8f6fd;
  --ct-muted: #5b6b7f;
  --ct-line: #e3e9f0;
  --ct-page: #f4f7fa;
  --ct-danger: #b42318;
  --ct-ease: cubic-bezier(.2, .8, .2, 1);
  background: var(--ct-page);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 24px 16px 48px;
  color: var(--ct-ink);
}
.ct-wrap { max-width: 640px; margin: 0 auto; }
.ct-card {
  background: #fff;
  border: 1px solid var(--ct-line);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(19, 45, 76, .08);
  padding: 24px 20px;
  animation: ct-rise .4s var(--ct-ease) both;
}
@keyframes ct-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ct-eyebrow {
  display: inline-block; background: var(--ct-light); color: var(--ct-ink);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 9999px; line-height: 1;
}
.ct-title { margin: 14px 0 8px; font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--ct-ink); }
.ct-lead { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ct-ink); }

.ct-topics { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.ct-topics legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 10px; }
.ct-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-pill { position: relative; display: inline-block; cursor: pointer; }
.ct-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ct-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ct-line); border-radius: 9999px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ct-ink);
  transition: background .2s var(--ct-ease), color .2s var(--ct-ease), border-color .2s var(--ct-ease), transform .15s var(--ct-ease);
}
.ct-pill:active span { transform: scale(.98); }
.ct-pill input:checked + span { background: var(--ct-ink); border-color: var(--ct-ink); color: #fff; }
.ct-pill input:focus-visible + span { outline: 3px solid var(--ct-accent); outline-offset: 2px; }

.ct-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ct-ease), opacity .3s var(--ct-ease); }
.ct-reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
.ct-reveal-inner { overflow: hidden; min-height: 0; }

.ct-field { margin-bottom: 16px; }
.ct-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ct-opt { font-weight: 500; color: var(--ct-muted); }
.ct-field input, .ct-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ct-ink);
  background: #fff; border: 1px solid #cdd5df; border-radius: 16px; padding: 0 16px; height: 52px;
  transition: border-color .2s var(--ct-ease), box-shadow .2s var(--ct-ease);
}
.ct-field textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--ct-accent); box-shadow: 0 0 0 4px var(--ct-light); }
.ct-field [aria-invalid="true"] { border-color: var(--ct-danger); }
.ct-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--ct-muted); }
.ct-err { color: var(--ct-danger); }
.ct-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ct-row .ct-hint { flex: 1; }
.ct-count { margin-top: 6px; font-size: 12px; color: var(--ct-muted); white-space: nowrap; margin-left: auto; }

/* spam trap: off screen, never display:none (some bots skip hidden fields) */
.ct-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.ct-banner {
  margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: #fef3f2; color: var(--ct-danger);
  font-size: 14px; line-height: 1.5; border: 1px solid #fecdca;
}
.ct-submit {
  position: relative; width: 100%; min-height: 52px; border: 0; border-radius: 9999px; cursor: pointer;
  background: var(--ct-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s var(--ct-ease), opacity .2s var(--ct-ease);
}
.ct-submit:active { transform: scale(.98); }
.ct-submit:focus-visible { outline: 3px solid var(--ct-accent); outline-offset: 3px; }
.ct-submit[disabled] { opacity: .75; cursor: progress; }
.ct-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: ct-spin .7s linear infinite; }
.ct-submit.is-busy .ct-spin { display: inline-block; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-fine { margin: 14px 0 0; font-size: 13px; color: var(--ct-muted); text-align: center; line-height: 1.5; }
.ct-fine a { color: var(--ct-ink); font-weight: 700; }

.ct-done { text-align: center; padding: 12px 0 4px; animation: ct-rise .4s var(--ct-ease) both; }
.ct-done .ct-title { margin-top: 12px; }
.ct-check-ring { stroke: var(--ct-accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ct-draw .6s var(--ct-ease) forwards; }
.ct-check-tick { stroke: var(--ct-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ct-draw .4s .35s var(--ct-ease) forwards; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
.ct-back {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 9999px; background: var(--ct-light); color: var(--ct-ink); font-weight: 700; text-decoration: none;
}

/* "Still stuck?" pill used at the end of the support page */
.ct-cta { max-width: 640px; margin: 8px auto 40px; padding: 0 16px; text-align: center; }
.ct-cta p { margin: 0 0 12px; font-size: 16px; color: #5b6b7f; }
.ct-cta a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 9999px; background: #132d4c; color: #fff; font-weight: 700; text-decoration: none;
}

@media (min-width: 640px) {
  .ct-main { padding: 40px 24px 72px; }
  .ct-card { padding: 36px 36px; }
  .ct-submit { width: auto; padding: 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-done, .ct-reveal, .ct-pill span, .ct-submit { animation: none; transition: none; }
  .ct-check-ring, .ct-check-tick { animation: none; stroke-dashoffset: 0; }
  .ct-spin { animation-duration: 2s; }
}
