.sti-hero {
  background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 60%);
  padding: 72px 16px 56px;
  border-bottom: 1px solid #e4efe7;
}
.sti-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.sti-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: #3f5b4d;
  margin-bottom: 18px;
}
.sti-hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}
.sti-hero-title {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #111827;
}
@media (min-width: 768px) {
  .sti-hero-title {
    font-size: 48px;
  }
}
.sti-hero-subtitle {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 16px;
  color: #4b5563;
}
.sti-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.sti-btn-primary,
.sti-btn-ghost {
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sti-btn-primary {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}
.sti-btn-primary:hover {
  background: #16a34a;
}
.sti-btn-ghost {
  background: #ecfdf3;
  color: #166534;
}
.sti-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.sti-hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.04);
  text-align: left;
}
.sti-hero-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #111827;
}
.sti-hero-card p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

/* Form */
.sti-form-section {
  padding: 40px 16px 64px;
  background: #ffffff;
}
.sti-form-inner {
  max-width: 960px;
  margin: 0 auto;
}
.sti-form-inner h2 {
  font-size: 26px;
  margin: 0 0 8px;
}
.sti-form-note {
  margin: 0 0 24px;
  font-size: 14px;
  color: #4b5563;
}
.sti-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  border: 1px solid #e5e7eb;
  margin-bottom: 18px;
}
.sti-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.sti-card-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}
.sti-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 18px;
}
@media (min-width: 768px) {
  .sti-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sti-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.sti-field input,
.sti-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 7px 10px;
  font-size: 14px;
}
.sti-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.sti-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.sti-checkbox input {
  margin: 0;
}

.sti-question {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}
.sti-question-label {
  font-size: 14px;
  margin: 0 0 6px;
}
.sti-qcode {
  font-weight: 600;
  color: #6b7280;
}
.sti-radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sti-radio {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
}
.sti-radio input {
  margin-top: 3px;
}

.sti-form-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sti-form-loading {
  font-size: 13px;
  color: #6b7280;
}

/* Result */
.sti-result {
  margin-top: 24px;
}
.sti-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (min-width: 768px) {
  .sti-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sti-result-card {
  border-radius: 16px;
  padding: 14px 14px 12px;
  color: #111827;
  font-size: 13px;
}
.sti-result-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
}
.sti-result-score {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.sti-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* colors */
.sti-green {
  background: #ecfdf3;
}
.sti-green .sti-pill {
  background: #bbf7d0;
  color: #166534;
}
.sti-yellow {
  background: #fffbeb;
}
.sti-yellow .sti-pill {
  background: #facc15;
  color: #854d0e;
}
.sti-red {
  background: #fef2f2;
}
.sti-red .sti-pill {
  background: #fecaca;
  color: #b91c1c;
}

.sti-result-final {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #0f172a;
  color: #e5e7eb;
  margin-bottom: 16px;
}
.sti-result-final h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.sti-result-final p {
  margin: 0;
  font-size: 14px;
}

.sti-result-cta {
  text-align: center;
  margin-top: 6px;
}
.sti-result-cta .sti-btn-primary {
  font-size: 14px;
}

/* ==== RADIO & CHECKBOX AS CHIPS ==== */

/* Group: sejajar & bisa wrap */
.sti-radio-group,
.sti-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Reset default */
.sti-radio,
.sti-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Sembunyikan input bawaan */
.sti-radio input,
.sti-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Tampilan chip */
.sti-radio span,
.sti-checkbox span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

/* Hover */
.sti-radio:hover span,
.sti-checkbox:hover span {
  border-color: #9ca3af;
  background: #f3f4f6;
}

/* Checked state */
.sti-radio input:checked + span,
.sti-checkbox input:checked + span {
  background: #ecfdf3;
  border-color: #22c55e;
  color: #065f46;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

/* Fokus (klik via keyboard) */
.sti-radio input:focus-visible + span,
.sti-checkbox input:focus-visible + span {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Untuk teks pilihan panjang biar boleh multiline tapi tetap chip */
.sti-radio span,
.sti-checkbox span {
  white-space: normal;
  text-align: left;
}

/* ===========================
   THEME MERAH (override)
   Tempelkan DI BAWAH semua CSS STI
   =========================== */

/* Hero lebih ke merah muda */
.sti-hero {
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 60%);
  border-bottom-color: #fee2e2;
}

.sti-hero-badge {
  color: #7f1d1d;
}

.sti-hero-badge .dot {
  background: #ef4444; /* merah */
}

/* Tombol utama & ghost */
.sti-btn-primary {
  background: #ef4444;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
}

.sti-btn-primary:hover {
  background: #dc2626;
}

.sti-btn-ghost {
  background: #fef2f2;
  color: #b91c1c;
}

/* Chip radio/checkbox saat terpilih → merah */
.sti-radio input:checked + span,
.sti-checkbox input:checked + span {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

/* Fokus keyboard */
.sti-radio input:focus-visible + span,
.sti-checkbox input:focus-visible + span {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* ====== Q: badge nomor dan heading domain lebih tegas ====== */
.sti-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.sti-question {
  position: relative;
  padding: 12px 12px 10px 44px; /* ruang untuk badge */
  margin-top: 12px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.03);
}

.sti-question-label {
  margin: 0 0 8px;
  font-size: 15px;
  color: #0f172a;
}

.sti-qcode {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ecfdf3;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

/* radio chips: sedikit lebih tebal saat hover/checked */
.sti-radio:hover span,
.sti-checkbox:hover span {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.sti-radio input:checked + span,
.sti-checkbox input:checked + span {
  transform: translateY(-1px);
}

/* ====== Hasil: kartu pop + progress bar ====== */
.sti-result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.08s ease;
}
.sti-result-card:hover {
  transform: translateY(-2px);
}

.sti-result-score {
  font-size: 20px;
  margin-bottom: 8px;
}

.sti-gauge {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
  margin: 6px 0 10px;
  position: relative;
}
.sti-gauge span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 380ms ease;
}

/* warna bar progres disesuaikan kartu */
.sti-green .sti-gauge span {
  background: #22c55e;
}
.sti-yellow .sti-gauge span {
  background: #f59e0b;
}
.sti-red .sti-gauge span {
  background: #ef4444;
}

/* Final panel: lebih elegan */
.sti-result-final {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sti-result-final p {
  color: #cbd5e1;
}

/* Tombol CTA: sedikit lebih besar */
.sti-result-cta .sti-btn-primary {
  padding: 12px 24px;
  font-size: 15px;
}
/* Banner status akhir – versi soft */
.sti-result-final {
  padding: 18px 22px;
  border-radius: 22px;
  margin-bottom: 22px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid transparent;
}

/* HIJAU – tipis */
.sti-final-green {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #064e3b;
}

/* KUNING – tipis */
.sti-final-yellow {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

/* MERAH – tipis */
.sti-final-red {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

/* chip & teks di dalam banner */
.sti-result-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: inherit;
  margin-bottom: 8px;
}

.sti-result-final h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: inherit;
}

.sti-result-final p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: inherit;
}
