:root {
  --tct-primary: #ff5a00;
  --tct-bg: #ffffff;
  --tct-muted: #6b7280;
  --tct-dark: #0b1220;
  --tct-card: #ffffff;
  --tct-radius: 14px;
  --tct-maxw: 1280px;
  --tct-pad: clamp(14px, 2.4vw, 28px);
  --tct-shadow-lg: 0 30px 70px rgba(11, 18, 32, 0.12);
  --tct-shadow-sm: 0 12px 30px rgba(11, 18, 32, 0.06);
  --tct-focus: 3px solid rgba(255, 90, 0, 0.18);
  --tct-ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
}

* {
  box-sizing: border-box;
}

.tct-wrapper {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
}

/* HERO BAND */

.tct-hero-band {
  width: 100%;
  background: #fff;
  padding: calc(var(--tct-pad) * 1.1) 0;
}

.tct-wrap {
  max-width: var(--tct-maxw);
  margin: 0 auto;
  padding: 0 4vw;
}

.tct-hero-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 28px;
  align-items: center;
}

/* LEFT PANEL */

.tct-panel {
  background: var(--tct-primary);
  color: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--tct-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tct-meta-badge {
  background: rgba(255, 255, 255, 0.08);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.tct-headline {
  margin: 6px 0 0;
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 48px);
  line-height: 1.02;
}

.tct-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  max-width: 62ch;
  font-size: 1.02rem;
}

.tct-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tct-btn-hero-primary {
  background: #fff;
  color: var(--tct-primary);
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--tct-shadow-sm);
  transition: transform 0.14s var(--tct-ease), box-shadow 0.14s var(--tct-ease);
}

.tct-btn-hero-primary:active {
  transform: translateY(1px);
}

.tct-btn-hero-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.tct-hero-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* RIGHT VISUAL */

.tct-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tct-hero-card {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  background: var(--tct-card);
  padding: 16px;
  box-shadow: var(--tct-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tct-hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tct-hero-label {
  margin: 0;
  font-weight: 800;
  color: var(--tct-muted);
  font-size: 13px;
}

.tct-hero-label-sub {
  margin: 6px 0 0;
  color: var(--tct-muted);
  font-size: 13px;
}

.tct-hero-number-wrap {
  text-align: right;
}

.tct-hero-number {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  color: var(--tct-primary);
}

.tct-hero-number-sub {
  margin: 6px 0 0;
  color: var(--tct-muted);
  font-size: 13px;
  font-weight: 800;
}

.tct-hero-tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tct-hero-tag {
  background: #f6f6f6;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

/* PILAR GRID */

.tct-pilar-section {
  padding: 28px 0 64px;
}

.tct-pilar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tct-pilar-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.tct-pilar-head p {
  margin: 6px 0 0;
  color: var(--tct-muted);
  max-width: 60ch;
  font-size: 14px;
}

.tct-pilar-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tct-p-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--tct-card);
  box-shadow: var(--tct-shadow-sm);
  border-left: 6px solid var(--tct-primary);
  transition: transform 0.18s var(--tct-ease), box-shadow 0.18s var(--tct-ease);
}

.tct-p-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 36px 80px rgba(11, 18, 32, 0.08);
}

.tct-p-card h4 {
  margin: 0;
  color: var(--tct-primary);
  font-size: 12px;
  font-weight: 900;
}

.tct-p-card h3 {
  margin: 8px 0 10px;
  font-size: 15px;
}

.tct-p-card p {
  margin: 0;
  color: var(--tct-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* FIXED CTA mobile */

.tct-fixed-cta {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 1200;
}

.tct-fixed-inner {
  background: var(--tct-primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--tct-shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
}

.tct-fixed-inner button {
  margin-left: 10px;
  background: #fff;
  color: var(--tct-primary);
  border-radius: 999px;
  border: 0;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

/* MODAL */

.tct-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 10, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1300;
}

.tct-backdrop.is-open {
  display: flex;
}

.tct-modal {
  width: 100%;
  max-width: 1320px;
  max-height: 90vh;
  background: var(--tct-card);
  border-radius: 16px;
  padding: 18px 18px 24px;
  box-shadow: var(--tct-shadow-lg);
  overflow-y: auto;
  position: relative;
}

.tct-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tct-no-scroll {
  overflow: hidden;
}

/* INNER (steps) */

.tct-inner {
  margin: 0 auto;
  padding: 16px 2px 32px;
}

.tct-step-indicator {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.tct-inner h3 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #111827;
  text-align: center;
}

.tct-step-note {
  margin: 0 0 20px;
  font-size: 14px;
  color: #4b5563;
  text-align: center;
}

/* GRID FORM */

.tct-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 18px;
}

@media (min-width: 768px) {
  .tct-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card data diri */

.tct-card {
  background: transparent;
  border-radius: 24px;
  padding: 0;
  box-shadow: none;
  border: 0;
  margin-bottom: 20px;
}

.tct-field {
  position: relative;
  background: radial-gradient(circle at top left, #fff7ed 0%, #ffffff 55%);
  border-radius: 20px;
  padding: 14px 16px 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid #fed7aa;
}

.tct-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0b1220;
}

.tct-field input,
.tct-field select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  font-size: 14px;
  background: #ffffff;
}

/* Field amount */

.tct-field-amount .tct-amount-group {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid #fecaca;
}

.tct-field-amount select {
  width: auto;
  min-width: 110px;
  border: 0;
  background: transparent;
  padding-left: 4px;
  font-weight: 600;
  color: #0b1220;
}

.tct-field-amount input {
  flex: 1;
  border: 0;
  background: transparent;
  padding-right: 8px;
}

.tct-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

/* PERTANYAAN – gaya besar ala MBTI */

.tct-question {
  margin: 26px auto 0;
  /* max-width: 900px; */
  padding: 24px 24px 20px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, #fff7ed 0%, #ffffff 55%);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.09);
  border: 0;
}

.tct-question-label {
  font-size: 18px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.tct-q-emoji {
  width: 64px;
  height: 64px;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffedd5, #fefce8);
  box-shadow: 0 18px 42px rgba(248, 113, 113, 0.4);
  font-size: 32px;
  flex-shrink: 0;
}

.tct-qmeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tct-qnum {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tct-qtext {
  font-size: 17px;
  font-weight: 600;
  color: #0b1220;
}
/* RADIO OPTIONS – 1 pill saja, angka tanpa kotak sendiri */

.tct-radio-group {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.tct-radio {
  position: relative;
}

.tct-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* pill utama */
.tct-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background-color 0.15s ease;
}

/* angka 1–5 = teks biasa, tanpa kotak */
.tct-radio-number {
  font-weight: 700;
  font-size: 14px;
  margin-right: 2px;
  background: transparent;
  border: 0;
  padding: 0;
}

/* teks jawaban */
.tct-radio-label {
  font-size: 14px;
  white-space: nowrap;
}

/* hover & checked */
.tct-radio:hover span {
  transform: translateY(-1px);
  border-color: #fed7aa;
  background: #fff7ed;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
}

.tct-radio input:checked + span {
  border-color: #f97316;
  background: radial-gradient(circle at top left, #ffedd5, #ffffff);
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.25);
  color: #7c2d12;
}

/* MOBILE: jawaban menurun ke bawah */
@media (max-width: 768px) {
  .tct-radio-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tct-radio span {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal; /* boleh 2 baris di hp */
  }
}

/* error */

.tct-field-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.tct-radio-group-error {
  border-radius: 28px;
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.7);
}

/* NAV BUTTONS */

.tct-nav {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tct-btn-primary,
.tct-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;
}

.tct-btn-primary {
  background: var(--tct-primary);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

.tct-btn-primary:hover {
  background: #ea580c;
}

.tct-btn-ghost {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* STEPS VISIBILITY */

.tct-step {
  display: none;
}

.tct-step.is-active {
  display: block;
}

/* HASIL */

.tct-result-header {
  border-radius: 24px;
  padding: 18px 18px 16px;
  background: #111827;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.tct-result-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #f9fafb;
}

.tct-result-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.tct-zone-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.tct-zone-red {
  background: #fee2e2;
  color: #b91c1c;
}

.tct-zone-yellow {
  background: #fef9c3;
  color: #92400e;
}

.tct-zone-green {
  background: #dcfce7;
  color: #166534;
}

.tct-zone-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.tct-result-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 900px) {
  .tct-result-main {
    flex-direction: row;
  }
}

.tct-result-left,
.tct-result-right {
  flex: 1 1 0;
}

/* TABLE DIAGNOSIS */

.tct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tct-table th,
.tct-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.tct-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.tct-pill-score {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tct-pill-red {
  background: #fee2e2;
  color: #b91c1c;
}

.tct-pill-yellow {
  background: #fef9c3;
  color: #92400e;
}

.tct-pill-green {
  background: #dcfce7;
  color: #166534;
}

.tct-pill-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

/* RADAR CARD */

.tct-chart-card {
  border-radius: 20px;
  padding: 16px;
  background: #f9fafb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.tct-chart-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

/* WEAK PILLARS LIST */

.tct-weak-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

/* CTA BUTTONS HASIL */

.tct-result-cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tct-result-cta .tct-btn-primary {
  font-size: 14px;
}

.tct-result-cta .tct-btn-ghost {
  font-size: 13px;
}

/* LOADING */

.tct-result-loading {
  font-size: 14px;
  color: #6b7280;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .tct-hero-layout {
    grid-template-columns: 1fr 1fr;
  }
  .tct-pilar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tct-hero-card {
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .tct-question {
    padding: 20px 16px 16px;
  }
  .tct-radio span {
    min-width: 140px;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .tct-hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tct-hero-visual {
    order: -1;
  }
  .tct-fixed-cta {
    display: block;
  }
}

@media (max-width: 420px) {
  .tct-pilar-grid {
    grid-template-columns: 1fr;
  }
}
/* === PERBAIKAN LAYOUT PERTANYAAN & JAWABAN === */

/* Card pertanyaan: tetap besar tapi isi rata kiri */
.tct-question {
  margin: 26px auto 0;
  padding: 20px 22px 18px;
}

/* Judul pertanyaan rata kiri */
.tct-question-label {
  justify-content: flex-start;
  text-align: left;
}

/* Teks meta di kiri */
.tct-qmeta {
  align-items: flex-start;
}

.tct-qtext {
  text-align: left;
}

/* Grup jawaban: mulai dari kiri, satu baris di desktop */
.tct-radio-group {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

/* Jawaban dibuat lebih kecil & 1 baris */
.tct-radio span {
  flex-direction: row;           /* angka + teks sejajar */
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border-width: 1px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* Nomor sedikit lebih kecil */
.tct-radio-number {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

/* Teks jawaban 1 baris */
.tct-radio-label {
  font-size: 13px;
  white-space: nowrap;
}

/* Hover & checked tetap halus tapi tidak terlalu besar efeknya */
.tct-radio:hover span {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.tct-radio input:checked + span {
  background: #fffbeb;
  border-color: #f97316;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.2);
}

/* Mobile sedikit rapat supaya tetap muat */
@media (max-width: 600px) {
  .tct-radio-group {
    gap: 8px;
  }
  .tct-radio span {
    padding: 7px 12px;
  }
  .tct-radio-label {
    white-space: normal; /* boleh turun 2 baris kalau layar sempit */
  }
}
/* === Opsi jawaban: 1 baris, bentuk tombol jelas === */

/* baris opsi – rata kiri & rapi */
.tct-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 14px;
}

/* di layar lebar, usahakan 1 baris */
@media (min-width: 900px) {
  .tct-radio-group {
    flex-wrap: nowrap;
  }
}

/* tiap opsi = 1 tombol dengan lebar sama */
.tct-radio {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.tct-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* tampilan “pill” utama */
.tct-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background-color 0.15s ease;
}

/* angka di depan dibuat bulat kecil */
.tct-radio span strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

/* hover */
.tct-radio:hover span {
  transform: translateY(-1px);
  border-color: #fed7aa;
  background: #fff7ed;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.16);
}

/* keadaan terpilih – sangat jelas sebagai pilihan aktif */
.tct-radio input:checked + span {
  border-color: #f97316;
  background: radial-gradient(circle at top left, #ffedd5, #fff);
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.25);
  color: #7c2d12;
}

.tct-radio input:checked + span strong {
  background: #f97316;
  color: #fff;
  border-color: transparent;
}

/* mobile: boleh turun 2 baris kalau sempit */
@media (max-width: 600px) {
  .tct-radio span {
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* ===== PERAPIHAN OPSI AGAR TIDAK NUMPUK ===== */

/* Opsi = 1 baris, konten rata kiri */
.tct-radio span {
  justify-content: flex-start;
  padding: 10px 16px;
}

/* Angka jadi teks biasa (bukan pill di dalam pill) */
.tct-radio span strong {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  margin-right: 8px;
  padding: 0;
  border-radius: 0;
}

/* Untuk jaga-jaga, hilangkan bayangan/border ganda di angka */
.tct-radio input:checked + span strong {
  background: transparent;
  color: inherit;
  border: 0;
}
.tct-radio span {
  font-size: 13px;
  padding: 8px 14px;
}

/* === TWEAK UKURAN OPSI JAWABAN === */

/* desktop: 1 baris, tapi pill sedikit lebih kecil */
.tct-radio span {
  padding: 6px 10px;
  font-size: 12px;
  gap: 6px;
}

.tct-radio span strong {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

/* mobile: opsi turun ke bawah (1 kolom) */
@media (max-width: 600px) {
  .tct-radio-group {
    justify-content: flex-start;
    gap: 8px;
  }

  .tct-radio {
    flex: 1 1 100%;
  }

  .tct-radio span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
/* ====== 1. MODAL LEBIH FULL ====== */
.tct-modal {
  max-width: 1320px;      /* dari 960px jadi lebih lebar */
  width: 96vw;            /* hampir full lebar layar */
}

/* di layar besar, modal benar2 lebar tapi tetap ada margin */
@media (min-width: 1400px) {
  .tct-modal {
    max-width: 1280px;
  }
}

/* ====== 2. OPSI JAWABAN TURUN (VERTIKAL) DI MOBILE ====== */
@media (max-width: 768px) {
  .tct-radio-group {
    display: flex;
    flex-direction: column;    /* jadi kolom */
    gap: 10px;
    align-items: stretch;
  }

  .tct-radio {
    flex: 1 0 auto;
    width: 100%;
  }

  .tct-radio span {
    width: 100%;
    justify-content: center;   /* teks & angka di tengah */
    text-align: center;
    padding: 10px 14px;
  }
}
/* === MODAL LEBIH FULL DI DESKTOP === */
.tct-modal {
  max-width: 1320px;
  width: 98%;
  max-height: 95vh;
}

/* === OPSI JAWABAN – 1 PILL SAJA, ANGKA TANPA KOTAK === */

/* baris opsi */
.tct-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 14px;
}

/* item */
.tct-radio {
  position: relative;
  flex: 1 1 160px;
  min-width: 0;
}

.tct-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* pill utama (satu kotak saja) */
.tct-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background-color 0.15s ease;
}

/* ANGKA 1–5: cuma teks, tidak ada kotak lagi */
.tct-radio-number,
.tct-radio span strong {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}

/* teks jawaban – boleh 1–2 baris */
.tct-radio-label {
  font-size: 13px;
  white-space: normal;
}

/* hover & terpilih */
.tct-radio:hover span {
  transform: translateY(-1px);
  border-color: #fed7aa;
  background: #fff7ed;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.16);
}

.tct-radio input:checked + span {
  border-color: #f97316;
  background: radial-gradient(circle at top left, #ffedd5, #fff);
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.25);
  color: #7c2d12;
}

/* === MOBILE: JAWABAN MENURUN === */
@media (max-width: 768px) {
  .tct-radio-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tct-radio {
    flex: 1 0 auto;
    width: 100%;
  }

  .tct-radio span {
    justify-content: center;
    text-align: center;
  }
}
/* === FINAL: PERKECIL WRAPPER OPSI & RESPONSIVE === */

/* baris opsi – rata kiri, boleh lebih dari 1 baris */
.tct-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 14px;
}

/* HAPUS flex:1, biar lebar = sesuai konten */
.tct-radio {
  position: relative;
  flex: 0 0 auto;     /* <— ini kuncinya, tidak dipaksa melebar */
}

/* input hidden */
.tct-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* pill utama: 1 kotak kecil berisi angka + teks */
.tct-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  cursor: pointer;
  width: auto;           /* <— lebar sesuai isi */
  max-width: 230px;      /* batasi kalau teks panjang */
}

/* angka 1–5 */
.tct-radio-number,
.tct-radio span strong {
  font-weight: 700;
  font-size: 13px;
  margin-right: 2px;
}

/* label */
.tct-radio-label {
  white-space: normal;
}

/* hover & checked */
.tct-radio:hover span {
  transform: translateY(-1px);
  border-color: #fed7aa;
  background: #fff7ed;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.16);
}

.tct-radio input:checked + span {
  border-color: #f97316;
  background: radial-gradient(circle at top left, #ffedd5, #fff);
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.25);
  color: #7c2d12;
}

/* MOBILE: opsi menurun (1 kolom) */
@media (max-width: 768px) {
  .tct-radio-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .tct-radio span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===================================================
   JAWABAN SKALA 1–5  (versi rapi seperti referensi)
   =================================================== */

/* Card pertanyaan */
.tct-question {
  margin: 26px auto 0;
  /* max-width: 980px; */
  padding: 24px 24px 20px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, #fff7ed 0%, #ffffff 55%);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.09);
  border: 1px solid #ffe4c4;
}

.tct-question-label {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
}

.tct-q-emoji {
  width: 64px;
  height: 64px;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffedd5, #fefce8);
  box-shadow: 0 18px 42px rgba(248, 113, 113, 0.35);
  font-size: 32px;
  flex-shrink: 0;
}

.tct-qmeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.tct-qnum {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tct-qtext {
  font-size: 17px;
  font-weight: 600;
  color: #0b1220;
}

/* ====== Opsi jawaban (1–5) ====== */

.tct-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 16px;
}

/* setiap opsi = 1 pill, lebar mengikuti konten */
.tct-radio {
  position: relative;
  flex: 0 0 auto;
}

.tct-radio input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* pill utama */
.tct-radio > span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 2px 2px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  font-size: 14px;
  width: auto;
  max-width: 260px;
  transition:
    transform 0.15s var(--tct-ease),
    box-shadow 0.15s var(--tct-ease),
    border-color 0.15s var(--tct-ease),
    background-color 0.15s var(--tct-ease);
}

/* angka 1–5: lingkaran kecil di dalam pill */
.tct-radio-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  font-weight: 700;
  font-size: 14px;
  color: #0b1220;
  background: #ffffff;
  flex-shrink: 0;
}

/* teks jawaban */
.tct-radio-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: normal;
  text-align: left;
}

/* hover */
.tct-radio:hover > span {
  transform: translateY(-2px);
  border-color: #fed7aa;
  background: #fff7ed;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
}

/* checked */
.tct-radio input:checked + span {
  border-color: #fb923c;
  background: radial-gradient(circle at top left, #ffedd5, #ffffff);
  box-shadow: 0 26px 60px rgba(249, 115, 22, 0.28);
  color: #7c2d12;
}

.tct-radio input:checked + span .tct-radio-number {
  background: #ffedd5;
  border-color: #fb923c;
  color: #9a3412;
}

/* error outline utk 1 grup */
.tct-radio-group-error {
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.8);
}

/* ====== mobile: opsi turun ke bawah ====== */
@media (max-width: 768px) {
  .tct-radio-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tct-radio {
    width: 100%;
  }

  .tct-radio > span {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
  }
}
/* ===== MOBILE TCT: layout jawaban lebih rapi ===== */
@media (max-width: 768px) {
  /* kartu pertanyaan sedikit diringkas */
  .tct-question {
    max-width: 100%;
    padding: 18px 14px 16px;
  }

  /* tiap jawaban jadi 1 baris full width */
  .tct-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: 16px;
  }

  .tct-radio {
    width: 100%;
    flex: 0 0 auto;
  }

  /* wrapper utama: grid 2 kolom (angka + label) */
  .tct-radio > span {
    width: 100%;
    padding: 8px 10px;
    border-radius: 999px;
    border: 2px solid #fee2c5;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    background: radial-gradient(circle at top left, #fff7ed 0%, #ffffff 55%);
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 8px;
    align-items: stretch;
    justify-content: stretch;
    font-size: 14px;
  }

  /* sisi kiri: angka (seperti pill besar) */
  .tct-radio-number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #fed7aa;
    background: #fff7ed;
    font-weight: 700;
    font-size: 14px;
    color: #7c2d12;
  }

  /* sisi kanan: teks jawaban, pill sendiri */
  .tct-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    padding: 6px 8px;
    white-space: normal;
  }

  /* hover (optional di mobile, tapi aman kalau dipakai di tablet) */
  .tct-radio:hover > span {
    transform: none;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.12);
  }

  /* state terpilih: border & background lebih orange */
  .tct-radio input:checked + span {
    border-color: #f97316;
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.22);
    background: radial-gradient(circle at top left, #ffedd5 0%, #ffffff 55%);
  }

  .tct-radio input:checked + span .tct-radio-number {
    border-color: #f97316;
    background: #fed7aa;
    color: #9a3412;
  }

  .tct-radio input:checked + span .tct-radio-label {
    border-color: #f97316;
    background: #fff7ed;
    color: #7c2d12;
  }
}
/* =========================================
   MOBILE TCT (≤ 768px): layout pertanyaan & jawaban
   ========================================= */
@media (max-width: 768px) {
  /* Kartu pertanyaan lebih compact */
  .tct-question {
    max-width: 100%;
    padding: 20px 14px 18px;
    border-radius: 28px;
  }

  /* Emoji DI ATAS, teks di bawah */
  .tct-question-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tct-q-emoji {
    margin: 0 auto;
  }

  .tct-qtext {
    font-size: 16px;
    line-height: 1.55;
  }

  /* ===== JAWABAN 1–5: full width, seperti kartu ===== */

  .tct-radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
    align-items: stretch;
  }

  .tct-radio {
    width: 100%;
    flex: 0 0 auto;
  }

  .tct-radio input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  /* wrapper luar (kotak besar oranye lembut) */
  .tct-radio > span {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 2px solid #fed7aa;
    background: radial-gradient(circle at top left, #fff7ed 0%, #ffffff 55%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    font-size: 14px;
  }

  /* sisi kiri: ANGKA (pill bulat) */
  .tct-radio-number {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    font-weight: 700;
    font-size: 14px;
    color: #7c2d12;
  }

  /* sisi kanan: TEKS (pill juga) */
  .tct-radio-label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    padding: 6px 10px;
    text-align: center;
    white-space: normal;
  }

  /* hover (opsional) */
  .tct-radio:hover > span {
    transform: none;
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.14);
  }

  /* keadaan TERPILIH */
  .tct-radio input:checked + span {
    border-color: #f97316;
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.22);
    background: radial-gradient(circle at top left, #ffedd5 0%, #ffffff 55%);
  }

  .tct-radio input:checked + span .tct-radio-number {
    border-color: #f97316;
    background: #ffedd5;
    color: #9a3412;
  }

  .tct-radio input:checked + span .tct-radio-label {
    border-color: #f97316;
    background: #fff7ed;
    color: #7c2d12;
  }

  /* error outline 1 grup */
  .tct-radio-group-error {
    border-radius: 24px;
    padding: 2px;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.8);
  }
}
/* === SOFT ORANGE PALETTE (lebih tipis) === */
:root {
  --tct-o-bg: #fff8f2;                 /* dasar lembut */
  --tct-o-border: rgba(255, 90, 0, .14);
  --tct-o-border-strong: rgba(255, 90, 0, .28);
  --tct-o-ring: rgba(255, 90, 0, .16); /* focus/ring tipis */
  --tct-neutral-border: #eaecf0;       /* netral utk pill */
  --tct-shadow-soft: 0 12px 28px rgba(11,18,32,.06);
  --tct-shadow-hover: 0 18px 40px rgba(11,18,32,.08);
}

/* === KARTU PERTANYAAN: kurangi oranye === */
.tct-question{
  background: linear-gradient(180deg, var(--tct-o-bg) 0%, #fff 60%);
  border: 1px solid var(--tct-o-border);
  box-shadow: var(--tct-shadow-soft);
}

/* Emoji: glow oranye diperkecil */
.tct-q-emoji{
  background: linear-gradient(135deg, var(--tct-o-bg), #fffdf6);
  box-shadow: 0 12px 26px rgba(249, 115, 22, .18);
}

/* === OPSI JAWABAN (default): netral, bukan oranye === */
.tct-radio > span{
  border: 1px solid var(--tct-neutral-border);
  background: #fff;
  box-shadow: var(--tct-shadow-soft);
}
.tct-radio-number{
  border: 1px solid var(--tct-neutral-border);
  background: #fff;
  color: #0b1220;
}

/* Hover: efek ringan, bukan kuning pekat */
.tct-radio:hover > span{
  transform: translateY(-1px);
  border-color: #e7e9ee;
  background: #fff;
  box-shadow: var(--tct-shadow-hover);
}

/* Checked: ring halus + sedikit warm, teks tetap gelap */
.tct-radio input:checked + span{
  border-color: var(--tct-o-border-strong);
  background: linear-gradient(180deg, #fff, var(--tct-o-bg));
  box-shadow: 0 0 0 3px var(--tct-o-ring), var(--tct-shadow-hover);
  color: #111827;
}
.tct-radio input:checked + span .tct-radio-number{
  background: #fff;
  border-color: var(--tct-o-border-strong);
  color: #111827;
}

/* === MOBILE CARD (≤768px): hilangkan bingkai oranye tebal === */
@media (max-width:768px){
  .tct-radio > span{
    border: 1px solid var(--tct-neutral-border);
    background: #fff;                /* bukan gradient oranye */
    box-shadow: var(--tct-shadow-soft);
  }
  .tct-radio input:checked + span{
    border-color: var(--tct-o-border-strong);
    background: #fff;
    box-shadow: 0 0 0 3px var(--tct-o-ring), var(--tct-shadow-hover);
  }
  .tct-radio input:checked + span .tct-radio-label{
    border-color: transparent;
    background: transparent;
    color: #111827;
  }
}

/* Fokus keyboard: ring lembut */
.tct-radio input:focus-visible + span{
  outline: none;
  box-shadow: 0 0 0 3px var(--tct-o-ring), var(--tct-shadow-soft);
}
/* ========= TCT: HERO ORANGE -> GRADIENT LEMBUT ========= */

/* palet oranye lembut */
:root {
  --tct-orange-0:  #fffaf5;   /* paling terang */
  --tct-orange-1:  #fff3e6;
  --tct-orange-2:  #ffe6cf;
  --tct-orange-3:  #ffd7b3;   /* paling “pekat” tapi tetap tipis */
  --tct-orange-ring: rgba(255, 90, 0, .16);
  --tct-orange-brd:  rgba(255, 90, 0, .18);
}

/* panel kiri (hero card) – gradient mirip FCI tapi oranye */
.tct-panel{
  /* layer 1: highlight radial lembut di kiri-atas */
  background:
    radial-gradient(1200px 300px at 15% -20%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 60%),
    /* layer 2: gradasi vertikal tipis */
    linear-gradient(180deg, var(--tct-orange-0) 0%, var(--tct-orange-1) 38%, var(--tct-orange-2) 70%, var(--tct-orange-3) 100%);
  color:#0b1220;                 /* teks gelap biar kontras di gradient lembut */
  border:1px solid var(--tct-orange-brd);
}

/* supaya judul & sub tetap jelas di panel gradasi */
.tct-panel .tct-meta-badge{ background: rgba(255,255,255,.65); color:#0b1220; }
.tct-panel .tct-headline{ color:#0b1220; }
.tct-panel .tct-sub{ color:#374151; }
.tct-panel .tct-hero-hint{ color:#4b5563; }

/* tombol di hero: primary tetap oranye, ghost lebih netral */
.tct-btn-hero-primary{
  background: var(--tct-primary);
  color:#fff;
  box-shadow: 0 14px 32px rgba(249,115,22,.22);
}
.tct-btn-hero-primary:hover{ background:#ea580c; }

.tct-btn-hero-ghost{
  border-color: rgba(11,18,32,.12);
  color:#0b1220;
  background: rgba(255,255,255,.6);
}

/* angka “Pilar” di kartu kanan tetap oranye brand */
.tct-hero-number{ color: var(--tct-primary); }

/* ring fokus tipis ala contoh hijau */
.tct-panel :where(input,select,button):focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px var(--tct-orange-ring);
}

/* ========= HILANGKAN FLOATING CTA DI MOBILE ========= */
.tct-fixed-cta{ display:none !important; }
@media (max-width:760px){
  .tct-fixed-cta{ display:none !important; }
}
