/* ===== แบบประเมินบุคลิกภาพ DISC — สัตว์ 4 ทิศ ===== */

.disc-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 110px 1.25rem 4rem;
}

/* ---------- panels ---------- */
.disc-panel { display: none; }
.disc-panel.is-on { display: block; animation: discIn 0.45s ease both; }

@keyframes discIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.disc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ---------- intro ---------- */
.disc-hero {
  background: linear-gradient(135deg, hsl(219, 71%, 36%), hsl(219, 71%, 50%));
  color: #fff;
  padding: 2.75rem 2rem 2.5rem;
  text-align: center;
}
.disc-hero-icon { font-size: 2.6rem; display: block; margin-bottom: 0.6rem; }
.disc-hero h1 {
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.disc-hero h1 span { color: var(--yellow); }
.disc-hero p { font-size: 0.94rem; opacity: 0.9; max-width: 40ch; margin: 0 auto; }

.disc-body { padding: 2rem; }

.disc-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.disc-type {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  background: var(--cs);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  color: var(--c);
}
.disc-type-art { width: 54px; height: 54px; margin: 0 auto 0.4rem; }
.disc-type-art svg { width: 100%; height: 100%; }
.disc-type-name { font-weight: 700; font-size: 0.92rem; color: var(--dark); }
.disc-type-key { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.disc-type-el {
  margin-top: 0.4rem;
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 50px;
  background: var(--c);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.disc-brief {
  background: #f7f9ff;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.8;
}
.disc-brief strong { color: var(--dark); }
.disc-brief ul { margin: 0.6rem 0 0; padding: 0; }
.disc-brief li { position: relative; padding-left: 1.3rem; margin-bottom: 0.3rem; }
.disc-brief li::before {
  content: '›'; position: absolute; left: 0.35rem; top: -0.05rem;
  color: var(--blue); font-weight: 700;
}

/* ---------- buttons ---------- */
.disc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  font-family: inherit; font-size: 0.94rem; font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.disc-btn-primary { background: var(--blue); color: #fff; }
.disc-btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26, 63, 148, 0.28); }
.disc-btn-ghost { background: #fff; color: #444; border-color: var(--border); }
.disc-btn-ghost:hover { border-color: #bbb; color: #111; transform: translateY(-2px); }
.disc-btn-block { width: 100%; }
.disc-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- quiz ---------- */
.disc-progress {
  height: 6px; background: #eef1f6; border-radius: 50px; overflow: hidden;
  margin-bottom: 1.5rem;
}
.disc-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 50px;
  transition: width 0.35s ease;
}

.disc-q-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: #999; margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.disc-q-card.fade { animation: discIn 0.35s ease both; }

.disc-q-text {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700; line-height: 1.55;
  margin-bottom: 1.4rem;
}

.disc-options { display: flex; flex-direction: column; gap: 0.7rem; }
.disc-option {
  display: flex; align-items: flex-start; gap: 0.8rem;
  width: 100%; text-align: left;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: inherit; font-size: 0.95rem; line-height: 1.65; color: #333;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.disc-option:hover { border-color: var(--blue-light); background: #f8faff; transform: translateX(3px); }
.disc-option-dot {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 0.16rem;
  border-radius: 50%; border: 2px solid #ccd3e0; background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.disc-option.selected { border-color: var(--blue); background: #eef3ff; }
.disc-option.selected .disc-option-dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }

.disc-q-foot { margin-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.disc-hint { font-size: 0.78rem; color: #aaa; }

/* ---------- result ---------- */
.disc-result-hero {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--cs);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--c);
}
.disc-result-art { flex: 0 0 auto; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.disc-result-art svg { width: 100%; height: 100%; }
.disc-art-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}
.disc-result-head { min-width: 0; }
.disc-result-eyebrow {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; opacity: 0.8; margin-bottom: 0.2rem;
}
.disc-result-head h2 {
  font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 700;
  color: var(--dark); line-height: 1.2; margin-bottom: 0.2rem;
}
.disc-result-key {
  display: inline-block; margin-left: 0.35rem;
  background: var(--c); color: #fff;
  font-size: 0.95rem; font-weight: 700;
  padding: 0.1rem 0.6rem; border-radius: 8px;
  vertical-align: middle;
}
.disc-result-en { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.disc-result-tagline { font-size: 0.94rem; color: #444; line-height: 1.6; }

.disc-note {
  background: #fffdf3; border: 1px solid #f2e4b8;
  border-radius: 12px; padding: 0.9rem 1.2rem;
  font-size: 0.88rem; color: #6b5a20; line-height: 1.7;
  margin-bottom: 1.75rem;
}

.disc-section { margin-bottom: 1.9rem; }
.disc-section h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.7rem;
  padding-left: 0.7rem; border-left: 4px solid var(--blue); line-height: 1.4;
}
.disc-sub { font-size: 0.8rem; color: #999; margin: -0.4rem 0 0.7rem; }
.disc-para { font-size: 0.94rem; color: #444; line-height: 1.85; }

.disc-list { padding: 0; margin: 0; }
.disc-list li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem;
  font-size: 0.92rem; color: #444; line-height: 1.75;
}
.disc-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}
.disc-list-num { counter-reset: dnum; }
.disc-list-num li::before {
  counter-increment: dnum; content: counter(dnum);
  width: 1.1rem; height: 1.1rem; line-height: 1.1rem;
  text-align: center; font-size: 0.7rem;
  background: var(--blue); color: #fff; border-radius: 50%;
  top: 0.28rem;
}

.disc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.9rem; }
.disc-box { padding: 1.3rem 1.4rem; border-radius: 14px; border: 1px solid var(--border); }
.disc-box h3 { border: none; padding: 0; margin-bottom: 0.6rem; font-size: 0.98rem; }
.disc-box-good { background: #f0f9f3; border-color: #cfe8d9; }
.disc-box-good h3 { color: #1f8a4c; }
.disc-box-good .disc-list li::before { content: '✓'; color: #1f8a4c; }
.disc-box-warn { background: #fff7f0; border-color: #f4ddc8; }
.disc-box-warn h3 { color: #c26a1c; }
.disc-box-warn .disc-list li::before { content: '!'; color: #c26a1c; }

/* bars */
.disc-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.disc-bar-row { display: grid; grid-template-columns: 128px 1fr 48px; align-items: center; gap: 0.75rem; }
.disc-bar-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; }
.disc-bar-key {
  width: 22px; height: 22px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; color: #fff; font-size: 0.72rem; font-weight: 700;
}
.disc-bar-track { height: 12px; background: #eef1f6; border-radius: 50px; overflow: hidden; }
.disc-bar-fill { height: 100%; width: 0; border-radius: 50px; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.disc-bar-fill.go { width: var(--w, 0); }
.disc-bar-pct { font-size: 0.82rem; font-weight: 700; color: #666; text-align: right; }

/* chips */
.disc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.disc-chip {
  padding: 0.35rem 0.9rem; border-radius: 50px;
  background: var(--cs); color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  font-size: 0.84rem; font-weight: 600;
}

/* mini cards */
.disc-minis { display: flex; flex-direction: column; gap: 0.8rem; }
.disc-mini {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: 14px;
  background: var(--cs);
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
  color: var(--c);
}
.disc-mini-art { flex: 0 0 auto; width: 54px; height: 54px; }
.disc-mini-art svg { width: 100%; height: 100%; }
.disc-mini-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.disc-mini-body h4 span { font-size: 0.78rem; font-weight: 600; color: var(--c); }
.disc-mini-body p { font-size: 0.87rem; color: #555; line-height: 1.7; }

/* actions */
.disc-actions {
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
  padding-top: 1.5rem; border-top: 1px solid var(--border); margin-top: 2rem;
}
.disc-disclaimer {
  margin-top: 1.5rem; font-size: 0.76rem; color: #aaa;
  line-height: 1.7; text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .disc-shell { padding: 95px 1rem 3rem; }
  .disc-body { padding: 1.4rem 1.15rem; }
  .disc-hero { padding: 2.2rem 1.25rem 2rem; }
  .disc-types { grid-template-columns: repeat(2, 1fr); }
  .disc-grid2 { grid-template-columns: 1fr; }
  .disc-result-hero { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem 1.2rem; }
  .disc-result-art { width: 150px; height: 150px; }
  .disc-bar-row { grid-template-columns: 104px 1fr 40px; gap: 0.5rem; }
  .disc-bar-label { font-size: 0.8rem; }
  .disc-mini { flex-direction: column; text-align: center; }
  .disc-actions .disc-btn { width: 100%; }
}

/* ---------- print ---------- */
@media print {
  .navbar, .footer, .disc-actions, .disc-progress, .disc-q-foot { display: none !important; }
  .disc-shell { padding: 0; max-width: 100%; }
  .disc-card { box-shadow: none; border: none; }
  .disc-result-hero, .disc-box, .disc-mini, .disc-chip { break-inside: avoid; }
  .disc-bar-fill { transition: none; }
}
