/* ============================================================
 *  PERTANYAAN — alur portal → hari/sesi → kirim semua
 * ============================================================ */

:root {
  --tq-navy: #0b1330;
  --tq-navy-2: #14224d;
  --tq-gold: #c39a3c;
  --tq-gold-soft: #ead29c;
  --tq-paper: #ffffff;
  --tq-ink: #0d1326;
  --tq-muted: #6b7385;
  --tq-line: #e8edf5;
  --tq-warn: #fff8e8;
  --tq-warn-border: #f0d9a0;
  --tq-radius: 18px;
}

.tq-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--tq-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(195, 154, 60, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(28, 60, 122, 0.35), transparent 50%),
    linear-gradient(180deg, #070d22 0%, #0b1330 42%, #101a3a 100%);
  overflow-x: hidden;
}

.tq-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: rgba(7, 13, 34, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tq-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.tq-topbar__brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.tq-topbar__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.tq-topbar__sub {
  font-size: 11px;
  color: var(--tq-gold-soft);
}
.tq-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  max-width: 45%;
}
.tq-topbar__right span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tq-linkbtn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--tq-gold-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.tq-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px calc(40px + env(safe-area-inset-bottom, 0px));
}

/* ---- Portal ---- */
.tq-portal {
  text-align: center;
  color: #fff;
  padding-top: 12px;
}
.tq-portal__logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.tq-portal__eyebrow {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tq-gold-soft);
}
.tq-portal__title {
  margin: 0 0 18px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tq-motivation {
  text-align: left;
  margin: 0 auto 18px;
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(195, 154, 60, 0.22), rgba(234, 210, 156, 0.12));
  border: 1px solid rgba(234, 210, 156, 0.35);
  color: #fff;
}
.tq-motivation strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tq-gold-soft);
  margin-bottom: 6px;
}
.tq-motivation p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.tq-portal__card {
  text-align: left;
  background: var(--tq-paper);
  color: var(--tq-ink);
  border-radius: 22px;
  padding: 22px 18px 20px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.tq-portal__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, #e66a30, var(--tq-gold), #1c3c7a);
}

.tq-portal__card .field { margin-bottom: 14px; }
.tq-portal__card .field__label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}
.tq-portal__card .field__hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--tq-muted);
}
.tq-portal__card .input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid #dbe3ef;
  border-radius: 12px;
  font-family: inherit;
}
.tq-portal__card .input:focus {
  outline: none;
  border-color: #1c3c7a;
  box-shadow: 0 0 0 4px rgba(28, 60, 122, 0.12);
}

.tq-deadline {
  font-size: 12.5px;
  color: var(--tq-muted);
  margin: 0 0 12px;
}

.tq-chip-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(195, 154, 60, 0.12);
  border: 1px solid rgba(195, 154, 60, 0.35);
  font-size: 12.5px;
  font-weight: 600;
}
.tq-chip-id span { min-width: 0; word-break: break-word; }
.tq-chip-id button {
  appearance: none;
  border: none;
  background: var(--tq-navy);
  color: var(--tq-gold-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Autocomplete */
.tq-ac { position: relative; }
.tq-ac__list {
  position: absolute;
  z-index: 40;
  left: 0; right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(280px, 45vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(6, 13, 34, 0.45);
}
.tq-ac__list[hidden] { display: none !important; }
.tq-ac__item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
}
.tq-ac__item:hover,
.tq-ac__item.is-active { background: #f1f5f9; }
.tq-ac__name { display: block; font-size: 15px; font-weight: 700; }
.tq-ac__meta { display: block; font-size: 12px; color: var(--tq-muted); margin-top: 3px; }
.tq-ac__empty { padding: 16px 12px; font-size: 13px; color: var(--tq-muted); text-align: center; }

/* Buttons */
.tq-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.tq-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tq-btn--primary {
  background: linear-gradient(135deg, var(--tq-navy), #1c3c7a);
  color: #fff;
}
.tq-btn--ghost {
  background: #eef2f7;
  color: #334155;
}
.tq-btn--xl { min-height: 58px; font-size: 17px; margin-bottom: 10px; }

.tq-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13.5px;
  line-height: 1.45;
}

/* ---- Day ---- */
.tq-dayhead {
  color: #fff;
  margin-bottom: 16px;
}
.tq-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.tq-progress span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}
.tq-progress span.is-done,
.tq-progress span.is-active { background: var(--tq-gold); }
.tq-dayhead__title {
  margin: 0 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.15;
}
.tq-dayhead__meta {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}
.tq-disclaimer {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tq-warn);
  border: 1px solid var(--tq-warn-border);
  color: #7a5a12;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.tq-sesi {
  margin-bottom: 22px;
}
.tq-sesi__title {
  margin: 0 0 12px;
  color: var(--tq-gold-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tq-card {
  background: var(--tq-paper);
  border-radius: var(--tq-radius);
  padding: 18px 16px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(232, 237, 245, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 32px -20px rgba(7, 13, 34, 0.55);
}
.tq-card__head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tq-line);
}
.tq-card__waktu {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  color: var(--tq-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tq-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  color: var(--tq-ink);
  letter-spacing: -0.01em;
}
.tq-card__sesi {
  color: #1c3c7a;
}
.tq-card__sep {
  margin: 0 0.28em;
  color: #94a3b8;
  font-weight: 500;
}
.tq-card__materi {
  color: var(--tq-ink);
}

/* ---- Speakers ---- */
.tq-speakers {
  margin-bottom: 14px;
}
.tq-speaker {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.tq-speaker.is-selected {
  border-color: #1c3c7a;
  background: linear-gradient(180deg, #f3f7fd 0%, #e8eef8 100%);
  box-shadow: 0 0 0 3px rgba(28, 60, 122, 0.1);
}
.tq-speaker:active { transform: scale(0.985); }
.tq-speaker__media {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #dbe3ef;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.08);
}
.tq-speaker__photo,
.tq-speaker__ph {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.tq-speaker__ph {
  background: linear-gradient(145deg, #0b1330 0%, #1c3c7a 100%);
  color: var(--tq-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.tq-speaker__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tq-speaker__name {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--tq-ink);
}
.tq-speaker__hint {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--tq-muted);
}
.tq-speaker.is-selected .tq-speaker__hint {
  color: #1c3c7a;
  font-weight: 600;
}
.tq-speaker__affordance {
  flex-shrink: 0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tq-speaker.is-selected .tq-speaker__affordance {
  color: #1c3c7a;
}

/* Single speaker — full-width horizontal profile */
.tq-speakers--single .tq-speaker {
  padding: 12px 14px;
  gap: 14px;
}
.tq-speakers--single .tq-speaker__media {
  width: 96px;
  height: 96px;
  border-radius: 14px;
}
.tq-speakers--single .tq-speaker__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tq-speakers--single .tq-speaker__hint {
  font-size: 12px;
}
.tq-speakers--single .tq-speaker__ph {
  font-size: 26px;
}

/* 2–3 speakers — equal-width grid of compact rows */
.tq-speakers--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.tq-speakers--grid .tq-speaker__media {
  width: 64px;
  height: 64px;
  border-radius: 11px;
}
.tq-speakers--grid .tq-speaker__name {
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 4+ speakers — horizontal scroll strip */
.tq-speakers--scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
  margin-left: -2px;
  margin-right: -2px;
  scrollbar-width: thin;
}
.tq-speakers--scroll .tq-speaker {
  flex: 0 0 auto;
  width: min(210px, 68vw);
  scroll-snap-align: start;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
}
.tq-speakers--scroll .tq-speaker__media {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
}
.tq-speakers--scroll .tq-speaker__body {
  gap: 2px;
}
.tq-speakers--scroll .tq-speaker__name {
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tq-speakers--scroll .tq-speaker__affordance {
  display: none;
}

/* ---- Eksum highlight ---- */
.tq-eksum {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(28, 60, 122, 0.06) 0%, rgba(195, 154, 60, 0.07) 100%);
  border: 1px solid rgba(28, 60, 122, 0.14);
  box-shadow: inset 3px 0 0 #1c3c7a;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tq-eksum:active {
  background:
    linear-gradient(135deg, rgba(28, 60, 122, 0.1) 0%, rgba(195, 154, 60, 0.1) 100%);
}
.tq-eksum__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(28, 60, 122, 0.12);
  color: #1c3c7a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.05);
}
.tq-eksum__body {
  min-width: 0;
  flex: 1;
}
.tq-eksum__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c3c7a;
  margin-bottom: 4px;
}
.tq-eksum__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}
.tq-eksum__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 750;
  color: #1c3c7a;
}

/* ---- Questions ---- */
.tq-qblock {
  padding-top: 2px;
}
.tq-qprompt {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  line-height: 1.45;
}
.tq-q {
  margin-bottom: 12px;
}
.tq-q label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tq-muted);
  margin-bottom: 5px;
}
.tq-q textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 84px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.45;
  border: 1.5px solid #dbe3ef;
  border-radius: 12px;
  font-family: inherit;
  resize: vertical;
  background: #fff;
}
.tq-q textarea:focus {
  outline: none;
  border-color: #1c3c7a;
  box-shadow: 0 0 0 4px rgba(28, 60, 122, 0.1);
}

.tq-add-q {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: #1c3c7a;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tq-add-q span {
  font-weight: 600;
  color: var(--tq-muted);
  font-size: 12.5px;
}
.tq-add-q:hover { text-decoration: underline; }
.tq-add-q-max {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--tq-muted);
}

.tq-nav {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  padding: 12px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(7, 13, 34, 0.92) 28%);
}

/* ---- Final ---- */
.tq-final {
  background: var(--tq-paper);
  border-radius: 22px;
  padding: 24px 18px;
  color: var(--tq-ink);
}
.tq-final__title {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
}
.tq-final__lead {
  margin: 0 0 16px;
  color: var(--tq-muted);
  font-size: 14px;
}
.tq-final__summary {
  background: #f7f9fc;
  border: 1px solid var(--tq-line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.tq-final__summary strong { color: var(--tq-ink); }
.tq-final__summary ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
}
.tq-final__summary li { margin-bottom: 4px; }

/* ---- Modal ---- */
.tq-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.tq-modal[hidden] { display: none !important; }
.tq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 34, 0.7);
}
.tq-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  animation: tqUp 0.25s ease-out;
}
@keyframes tqUp {
  from { transform: translateY(24px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}
.tq-modal__x {
  position: absolute;
  top: 10px; right: 12px;
  border: none;
  background: #f1f5f9;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.tq-modal__photo {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  object-fit: cover;
  margin: 8px auto 12px;
  display: block;
  background: #dbe3ef;
}
.tq-modal__name {
  margin: 0 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
}
.tq-modal__meta {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--tq-muted);
}
.tq-modal__actions { display: grid; gap: 8px; }

/* Success */
.tq-success {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 13, 34, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.tq-success[hidden] { display: none !important; }
.tq-success__card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 22px 22px 0 0;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.tq-success__badge {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tq-gold), var(--tq-gold-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--tq-navy);
}
.tq-success__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.tq-success__lead {
  font-size: 14px;
  color: var(--tq-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}
.tq-success__count {
  font-size: 13px;
  font-weight: 700;
  color: #1c3c7a;
  margin: 0 0 16px;
}

@media (min-width: 520px) {
  .tq-speakers--n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tq-speakers--n3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tq-speakers--n3 .tq-speaker {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .tq-speakers--n3 .tq-speaker__media {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .tq-speakers--n3 .tq-speaker__affordance {
    display: none;
  }
  .tq-speakers--single .tq-speaker__media {
    width: 108px;
    height: 108px;
  }
  .tq-card {
    padding: 20px 18px 18px;
  }
}

@media (min-width: 720px) {
  .tq-modal { align-items: center; padding: 20px; }
  .tq-modal__sheet,
  .tq-success__card { border-radius: 18px; }
  .tq-success { align-items: center; }
  .tq-speakers--scroll .tq-speaker {
    width: 180px;
  }
}

.tq-body .social-toast.tq-social-toast {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  left: 16px;
}
@media (min-width: 720px) {
  .tq-body .social-toast.tq-social-toast {
    bottom: 28px;
    left: 24px;
  }
}
