/* neurogram-en.css — English Neurogram Test frontend styles */

/* ── Wrap & progress ─────────────────────────────────────────────── */
.nge-wrap { max-width: 780px; margin: 0 auto; font-family: 'Helvetica Neue', Arial, sans-serif; }

.nge-progress-bar-wrap {
  height: 6px; background: #e8e8e8; border-radius: 3px;
  margin-bottom: 8px; overflow: hidden;
}
.nge-progress-bar {
  height: 100%; background: linear-gradient(90deg, #2980B9, #1ABC9C);
  border-radius: 3px; transition: width .4s ease;
}
.nge-progress-label {
  font-size: 12px; color: #999; margin-bottom: 24px; text-align: right;
}

/* ── Step titles ─────────────────────────────────────────────────── */
.nge-step-title {
  font-size: clamp(20px, 4vw, 28px); font-weight: 800;
  margin: 0 0 8px; color: #1a1a1a; letter-spacing: -0.3px;
}
.nge-step-intro { font-size: 15px; color: #555; margin: 0 0 28px; line-height: 1.6; }

/* ── Form fields ─────────────────────────────────────────────────── */
.nge-field { margin-bottom: 20px; }
.nge-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.nge-field input {
  width: 100%; padding: 12px 14px; border: 2px solid #ddd;
  border-radius: 8px; font-size: 15px; transition: border-color .2s;
  box-sizing: border-box;
}
.nge-field input:focus { outline: none; border-color: #2980B9; }
.nge-req { color: #E74C3C; }

/* ── Distribute 100 ──────────────────────────────────────────────── */
.nge-distribute-grid { display: flex; flex-direction: column; gap: 14px; }
.nge-dist-row {
  background: #fafafa; border: 1px solid #eee; border-radius: 10px;
  padding: 14px 16px;
}
.nge-dist-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.nge-dist-tagline { font-size: 13px; color: #666; margin: 0 0 10px; font-style: italic; }
.nge-dist-input-wrap { display: flex; align-items: center; gap: 8px; }
.nge-dist-input {
  width: 80px; padding: 8px 10px; border: 2px solid #ddd;
  border-radius: 6px; font-size: 16px; font-weight: 700;
  text-align: center;
}
.nge-dist-pts { font-size: 13px; color: #888; }
.nge-dist-total {
  margin-top: 16px; font-size: 15px; font-weight: 600;
  padding: 10px 14px; background: #f5f5f5; border-radius: 8px;
}
.nge-dist-sum-val { font-size: 18px; font-weight: 800; }
.nge-dist-sum-val.ok    { color: #27AE60; }
.nge-dist-sum-val.error { color: #E74C3C; }

/* ── Q&A scale ───────────────────────────────────────────────────── */
.nge-qa-grid { display: flex; flex-direction: column; gap: 20px; }
.nge-qa-item { background: #fafafa; border-radius: 10px; padding: 14px 16px; border: 1px solid #eee; }
.nge-qa-label { display: block; font-size: 14px; color: #333; margin-bottom: 10px; line-height: 1.5; }
.nge-qa-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.nge-qa-opt input[type="radio"] { display: none; }
.nge-qa-opt span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  border: 2px solid #ddd; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; color: #555;
}
.nge-qa-opt input:checked + span {
  background: #2980B9; border-color: #2980B9; color: #fff;
}
.nge-qa-opt span:hover { border-color: #2980B9; color: #2980B9; }

/* ── Panksepp ────────────────────────────────────────────────────── */
.nge-pank-block { margin-bottom: 28px; }
.nge-pank-q { font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.nge-pank-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border: 2px solid #eee; border-radius: 8px;
  margin-bottom: 8px; cursor: pointer; transition: all .15s;
}
.nge-pank-opt:hover { border-color: #2980B9; background: #f0f7fd; }
.nge-pank-opt input[type="radio"] { margin-top: 2px; accent-color: #2980B9; }
.nge-pank-opt input:checked ~ .nge-pank-opt-label { font-weight: 600; }
.nge-pank-opt:has(input:checked) { border-color: #2980B9; background: #ebf5fd; }
.nge-pank-opt-label { font-size: 14px; line-height: 1.5; }

/* ── Stress & relaxation ─────────────────────────────────────────── */
.nge-sr-block { margin-bottom: 24px; padding: 14px 16px; background: #fafafa; border-radius: 10px; border: 1px solid #eee; }
.nge-sr-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.nge-sr-label { display: block; font-size: 14px; color: #555; margin-bottom: 10px; }

/* ── Vice & Virtue ───────────────────────────────────────────────── */
.nge-vv-block { margin-bottom: 24px; padding: 14px 16px; background: #fafafa; border-radius: 10px; border: 1px solid #eee; }
.nge-vv-pair {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap; font-size: 14px;
}
.nge-vv-vice { color: #C0392B; }
.nge-vv-virtue { color: #27AE60; }
.nge-vv-arrow { color: #bbb; }

/* ── Navigation ──────────────────────────────────────────────────── */
.nge-nav { display: flex; gap: 12px; margin-top: 32px; justify-content: flex-end; }
.nge-btn {
  padding: 12px 28px; border-radius: 8px; font-size: 15px;
  font-weight: 700; cursor: pointer; border: none; transition: all .2s;
}
.nge-btn-primary {
  background: linear-gradient(135deg, #2980B9, #1ABC9C);
  color: #fff; box-shadow: 0 4px 12px rgba(41,128,185,.3);
}
.nge-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(41,128,185,.4); }
.nge-btn-secondary { background: #f0f0f0; color: #555; }
.nge-btn-secondary:hover { background: #e0e0e0; }

/* ── Loading & error ─────────────────────────────────────────────── */
.nge-loading { text-align: center; padding: 48px; }
.nge-spinner {
  width: 48px; height: 48px; border: 4px solid #eee;
  border-top-color: #2980B9; border-radius: 50%;
  animation: nge-spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes nge-spin { to { transform: rotate(360deg); } }
.nge-error { background: #fdecec; border: 1px solid #e74c3c; padding: 14px 18px; border-radius: 8px; color: #C0392B; }

/* ── Dot helper ──────────────────────────────────────────────────── */
.nge-dot {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; flex-shrink: 0;
}

/* ── Result report ───────────────────────────────────────────────── */
.nge-result {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.10); margin-top: 32px;
}
.nge-result-header {
  background: var(--nge-colour); padding: 36px 40px 28px; color: #fff;
}
.nge-result-label {
  display: block; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; opacity: .75; margin-bottom: 8px;
}
.nge-result-type {
  margin: 0 0 4px; font-size: clamp(22px, 5vw, 32px);
  font-weight: 900; letter-spacing: -0.5px;
}
.nge-result-code {
  display: inline-block; background: rgba(255,255,255,.2);
  padding: 2px 10px; border-radius: 12px; font-size: 13px;
  font-weight: 700; margin-bottom: 12px;
}
.nge-result-pct { font-size: 40px; font-weight: 900; }
.nge-result-pct span { font-size: 16px; font-weight: 400; opacity: .8; }

.nge-section { padding: 24px 32px; background: #fff; border-top: 1px solid #f0f0f0; }
.nge-section-h3 {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--nge-colour); margin: 0 0 12px; font-weight: 700;
}
.nge-tagline {
  background: color-mix(in srgb, var(--nge-colour) 8%, white);
  border-left: 4px solid var(--nge-colour);
}
.nge-tagline p { margin: 0; font-size: 16px; font-style: italic; font-weight: 600; color: var(--nge-colour); }

.nge-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .nge-two-col { grid-template-columns: 1fr; } }

.nge-card { padding: 14px 18px; border-radius: 10px; }
.nge-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #444; }
.nge-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.nge-card-red    { background: #fff3f3; } .nge-card-red .nge-card-label    { color: #C0392B; }
.nge-card-green  { background: #f3fff5; } .nge-card-green .nge-card-label  { color: #27AE60; }
.nge-card-neutral{ background: #f8f8f8; } .nge-card-neutral .nge-card-label{ color: #888; }

.nge-talent-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nge-talent-pill {
  background: color-mix(in srgb, var(--nge-colour) 10%, white);
  color: var(--nge-colour); border: 1px solid color-mix(in srgb, var(--nge-colour) 30%, white);
  padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500;
}

.nge-rank-list { display: flex; flex-direction: column; gap: 8px; }
.nge-rank-row {
  display: grid; grid-template-columns: 28px 1fr 60px 120px;
  align-items: center; gap: 10px; padding: 8px 12px;
  background: #f9f9f9; border-radius: 8px;
}
.nge-rank-row.nge-rank-top { background: color-mix(in srgb, var(--nge-colour) 8%, white); font-weight: 700; }
.nge-rank-num { font-size: 14px; text-align: center; }
.nge-rank-name { font-size: 13px; }
.nge-rank-pct { font-size: 14px; font-weight: 700; text-align: right; }
.nge-rank-bar-wrap { height: 8px; background: #e8e8e8; border-radius: 4px; overflow: hidden; }
.nge-rank-bar-inner { height: 100%; border-radius: 4px; transition: width .4s ease; }

.nge-footnote { font-size: 11px; color: #aaa; margin: 10px 0 0; }
.nge-cta { text-align: center; background: #f9f8f5; }
.nge-cta p { font-size: 15px; color: #555; margin: 0; line-height: 1.7; }
.nge-cta a { color: var(--nge-colour); font-weight: 600; }

/* ── Contact card ────────────────────────────────────────────────── */
.nge-cta { text-align: left; background: #f9f8f5; }
.nge-cta > p { font-size: 15px; color: #555; margin: 0 0 16px; line-height: 1.7; }

.nge-contact-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
  border-radius: 12px; padding: 20px 24px; color: #fff;
}
.nge-contact-card-full { margin-top: 8px; }
.nge-contact-avatar {
  font-size: 32px; width: 56px; height: 56px;
  background: rgba(255,255,255,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nge-contact-avatar-lg { font-size: 38px; width: 68px; height: 68px; }
.nge-contact-info { display: flex; flex-direction: column; gap: 3px; }
.nge-contact-info strong { font-size: 17px; font-weight: 800; color: #fff; }
.nge-contact-info span { font-size: 13px; color: rgba(255,255,255,.65); }
.nge-contact-info a {
  font-size: 16px; font-weight: 700; color: #fff;
  text-decoration: none; margin-top: 4px;
}
.nge-contact-info a:hover { text-decoration: underline; }
.nge-phone-link { font-size: 17px !important; margin-top: 6px !important; }
.nge-phone-sub { font-size: 12px !important; color: rgba(255,255,255,.5) !important; }

.nge-contact-extended { background: #fff; }
