/* ===== WRAPPER UMUM ===== */
.tdi-wrapper {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px 40px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #111827;
}

/* ===== HERO FULL WIDTH 100vh – PUTIH + GRADIENT BIRU TIPIS ===== */
.tdi-landing {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;
  padding: 0px 20px 120px;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(59, 130, 246, 0.13),
      transparent 55%
    ),
    radial-gradient(circle at 100% 0%, rgba(22, 163, 74, 0.1), transparent 55%),
    linear-gradient(180deg, #f9fafb 0%, #ffffff 55%, #edf2fb 100%);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* "gelombang" putih di bawah agar transisi ke konten */
.tdi-landing::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -42px;
  height: 160px;
  background: #ffffff;
  border-radius: 55% 55% 0 0;
}

.tdi-landing-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.tdi-landing h1 {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 18px;
  color: #111827;
}

.tdi-subtitle {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
  color: #4b5563;
}

.tdi-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #16a34a; /* hijau utama */
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(22, 101, 52, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tdi-cta:hover {
  transform: translateY(-2px);
  background: #15803d;
  box-shadow: 0 24px 60px rgba(22, 101, 52, 0.45);
}
.tdi-cta .dashicons {
  font-size: 22px;
}
.tdi-disclaimer {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.75;
}

/* elemen icon di bawah hero dihilangkan supaya tidak mengganggu */
.tdi-landing-illustration,
.tdi-avatar-row {
  display: none;
}

/* ===== SECTION QUIZ ===== */
.tdi-quiz {
  margin-top: 20px;
  background: #ffffff;
  border-radius: 26px;
  padding: 36px 32px 32px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

/* Header satu bab */
.tdi-step-header h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: #111827;
}
.tdi-step-header .dashicons {
  font-size: 26px;
  color: #1d4ed8; /* biru tua */
}
.tdi-step-chip {
  display: inline-block;
  background: #e0f2fe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.tdi-step-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* ===== PERTANYAAN & SKALA ===== */
.tdi-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid #e5e7eb;
}
.tdi-question:last-child {
  border-bottom: none;
}

.tdi-question-text {
  flex: 0 0 42%;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #111827;
}

/* Container skala */
.tdi-scale {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 0 34px;
}

/* Label "Setuju" / "Tidak setuju" di kiri & kanan */
.tdi-scale-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #9ca3af;
  pointer-events: none;
}

/* ===== RADIO CUSTOM – LINGKARAN BESAR ===== */
.tdi-scale-option {
  display: inline-flex;
}

.tdi-scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* base circle */
.tdi-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #d1d5db;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

/* angka (1–5) dari data-label, muncul saat selected */
.tdi-dot::after {
  content: attr(data-label);
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  opacity: 0;
  transform: translateY(1px);
  transition: opacity 0.12s ease, color 0.12s ease;
}

/* warna garis kiri (setuju) hijau – kanan (tidak setuju) biru tua */
.tdi-scale-option:nth-child(1) .tdi-dot,
.tdi-scale-option:nth-child(2) .tdi-dot {
  border-color: #16a34a;
}
.tdi-scale-option:nth-child(4) .tdi-dot,
.tdi-scale-option:nth-child(5) .tdi-dot {
  border-color: #1f3b57;
}

/* hover efek */
.tdi-dot:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

/* saat dipilih */
.tdi-scale-option input:checked + .tdi-dot {
  transform: scale(1.09);
  box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.08);
}

/* background saat dipilih */
.tdi-scale-option:nth-child(1) input:checked + .tdi-dot,
.tdi-scale-option:nth-child(2) input:checked + .tdi-dot {
  background: #16a34a;
  border-color: #16a34a;
}
.tdi-scale-option:nth-child(3) input:checked + .tdi-dot {
  background: #e5e7eb;
  border-color: #e5e7eb;
}
.tdi-scale-option:nth-child(4) input:checked + .tdi-dot,
.tdi-scale-option:nth-child(5) input:checked + .tdi-dot {
  background: #1f3b57;
  border-color: #1f3b57;
}

/* angka saat dipilih: putih dan muncul */
.tdi-scale-option input:checked + .tdi-dot::after {
  opacity: 1;
  color: #ffffff;
}

/* ===== NAVIGASI STEP – BUTTON "LANJUT" OUTLINE + GLOW ===== */
.tdi-step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.tdi-btn {
  border-radius: 14px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  border: none !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: transparent !important;
}

/* prev = tombol abu */
.tdi-btn-secondary {
  color: #4b5563 !important;
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}
.tdi-btn-secondary:hover {
  background: #f3f4f6 !important;
}

/* next/submit = outline biru tua + shadow lembut seperti referensi */
.tdi-btn-primary {
  position: relative !important;
  color: #b91c1c !important; /* teks merah tua biar kontras, bisa diganti hitam kalau mau netral */
  border: 1px solid #b91c1c !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(148, 27, 48, 0.08) !important;
  transition: box-shadow 0.15s ease, transform 0.1s ease, background 0.15s ease !important;
}
.tdi-btn-primary:hover {
  background: #fef2f2 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 20px 50px rgba(148, 27, 48, 0.14) !important;
}

/* ===== BLOK HASIL ===== */
.tdi-result {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 30px 30px 28px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.1);
  margin: 80px auto 30px;
}

/* label di atas kartu hasil agar jelas */
.tdi-result::before {
  content: "Hasil Tes TDI";
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.tdi-result-main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.tdi-gauge {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0 40%, #f97316 40% 70%, #ef4444 70% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdi-gauge-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tdi-gauge-score {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}
.tdi-gauge-label {
  font-size: 13px;
  color: #6b7280;
}
.tdi-result-text {
  flex: 1 1 260px;
}
.tdi-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.tdi-badge-red {
  background: #ef4444;
}
.tdi-badge-orange {
  background: #f97316;
}
.tdi-badge-green {
  background: #22c55e;
}

/* tombol konsultasi = pill biru tua */
.tdi-btn-inline {
  margin-top: 12px !important;
  border-radius: 999px !important;
  padding: 10px 26px !important;
  background: #1f3b57 !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25) !important;
}
.tdi-btn-inline:hover {
  background: #111827 !important;
}

/* ===== BAR HASIL DIMENSI ===== */
.tdi-result-bars {
  margin-top: 28px;
}

.tdi-bar {
  position: relative;
  background: #e5e7eb; /* track abu-abu muda */
  border-radius: 999px;
  height: 12px;
  margin-top: 22px;
}

/* label kiri (nama dimensi) */
.tdi-bar-label {
  position: absolute;
  left: 0;
  top: -18px;
  font-size: 12px;
  color: #374151;
}

/* persentase kanan */
.tdi-bar-percent {
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 12px;
  color: #6b7280;
}

/* isi bar dengan gradasi MERAH -> ORANYE -> HIJAU  */
.tdi-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    /* merah = 0% */ #f97316 35%,
    /* oranye tengah */ #22c55e 100% /* hijau = 100% */
  );
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .tdi-landing h1 {
    font-size: 32px;
  }
  .tdi-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .tdi-landing {
    padding: 100px 16px 80px;
  }
  .tdi-quiz {
    padding: 28px 18px 24px;
  }
  .tdi-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .tdi-question-text {
    flex: 1 1 auto;
    font-size: 18px;
  }
  .tdi-scale {
    width: 100%;
    gap: 12px;
  }
  .tdi-dot {
    width: 44px;
    height: 44px;
    border-width: 3px;
  }
  .tdi-result {
    padding: 26px 18px 22px;
  }
  .tdi-result::before {
    left: 18px;
  }
}
/* Label kecil di atas judul hero */
.tdi-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e0f2fe; /* biru muda */
  color: #1d4ed8; /* biru tua */
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.35);
}

/* biar nggak terlalu besar di layar kecil */
@media (max-width: 768px) {
  .tdi-hero-label {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }
}

/* ==== FORM DATA USER – NAMA / HP / EMAIL ==== */

.tdi-user-info {
  margin: 18px 0 28px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}

.tdi-user-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* label di atas input */
.tdi-user-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* input custom */
.tdi-user-field input {
  border-radius: 12px !important;
  border: 1px solid #d1d5db !important;
  background: #f9fafb !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease !important;
}

/* placeholder supaya halus */
.tdi-user-field input::placeholder {
  color: #9ca3af !important;
}

/* fokus: garis hijau + glow biru tipis */
.tdi-user-field input:focus {
  outline: none !important;
  background: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.3),
    0 8px 24px rgba(37, 99, 235, 0.18) !important;
}

/* error bawaan browser (required) – garis merah */
.tdi-user-field input:invalid:focus {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.25),
    0 8px 20px rgba(248, 113, 113, 0.25) !important;
}

/* responsive: jadi 1 kolom di mobile */
@media (max-width: 768px) {
  .tdi-user-info {
    grid-template-columns: 1fr;
    padding: 14px 14px 6px;
  }
}

/* ====== LOADING STATE SUBMIT ====== */

.tdi-btn-loading {
  cursor: default;
  opacity: 0.85;
}

/* spinner kecil di tombol "Lihat Hasil" */
.tdi-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(37, 99, 235, 0.2); /* biru muda */
  border-top-color: #1d4ed8; /* biru tua */
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  animation: tdi-spin 0.6s linear infinite;
}

@keyframes tdi-spin {
  to {
    transform: rotate(360deg);
  }
}
