/* Kiểm tra PCCC – page-specific styles */

.page-hero.tool { text-align: center; padding: 64px 0 48px; }
.page-hero.tool h1 { margin-left: auto; margin-right: auto; }
.page-hero.tool .lead { margin-left: auto; margin-right: auto; }
.page-hero.tool .eyebrow { justify-content: center; }
.page-hero.tool .breadcrumb { justify-content: center; display: flex; }
.legal-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
}
.legal-pill svg { color: var(--fs-red); }

.callout {
  background: var(--fs-red-light);
  border-left: 4px solid var(--fs-red);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 13.5px; line-height: 1.65;
  margin: 16px 0;
}
.callout strong { color: var(--fs-red); }

/* Wizard frame */
.wizard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px -16px rgba(27,34,44,0.08);
  max-width: 920px; margin: 0 auto;
}
.wizard-header {
  background: var(--gradient-brand);
  color: #fff;
  padding: 20px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.wizard-title {
  font-size: 17px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.wizard-tag { font-size: 12px; opacity: 0.85; }

/* Step tabs */
.step-tabs {
  display: flex; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.step-tab {
  flex: 1; padding: 16px 18px;
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  font-size: 13.5px; color: var(--text-muted);
  border-right: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
  transition: all 0.2s;
}
.step-tab:last-child { border-right: none; }
.step-tab.current { background: var(--surface); color: var(--fs-red); font-weight: 600; }
.step-tab.done { color: #1d6e3a; }
.step-num {
  width: 24px; height: 24px;
  border-radius: 50%; background: var(--border-strong);
  color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-tab.current .step-num { background: var(--gradient-brand); }
.step-tab.done .step-num { background: #1d6e3a; }
.step-tab.done .step-num span { display: none; }
.step-tab.done .step-num::after { content: '✓'; }

.step-content { padding: 36px 32px; }
.step-content.hidden { display: none; }
.step-heading { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 24px; }

/* Step 1 picker */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.cat-pick {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: var(--text);
}
.cat-pick:hover { border-color: var(--fs-red); background: var(--fs-red-light); }
.cat-pick.selected {
  border-color: var(--fs-red); background: var(--fs-red-light);
  box-shadow: 0 0 0 3px rgba(230,51,34,0.1);
}
.cat-pick-icon {
  width: 44px; height: 44px;
  background: var(--surface-2);
  color: var(--fs-red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  transition: all 0.15s;
}
.cat-pick.selected .cat-pick-icon { background: #fff; }
.cat-pick-name { font-size: 13px; font-weight: 600; line-height: 1.4; }

.sub-select {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.sub-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.sub-dropdown {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px; color: var(--text);
  font-family: inherit; cursor: pointer; outline: none;
}
.sub-dropdown:focus { border-color: var(--fs-red); box-shadow: 0 0 0 3px rgba(230,51,34,0.1); }

/* Step 2 form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.field { margin-bottom: 8px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; display: block; }
.field-label .req { color: var(--fs-red); }
.field-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.input-wrap { position: relative; }
.input-wrap .unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; pointer-events: none;
}
.input {
  width: 100%; padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit; outline: none;
}
.input:focus { border-color: var(--fs-red); box-shadow: 0 0 0 3px rgba(230,51,34,0.1); }
.input.with-unit { padding-right: 50px; }

/* Nav buttons */
.wizard-nav {
  display: flex; justify-content: space-between;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.btn-back {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s;
}
.btn-back:hover { border-color: var(--fs-red); color: var(--fs-red); }
.btn-back:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-next {
  background: var(--gradient-brand);
  color: #fff; border: none;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px -4px rgba(230,51,34,0.4);
}
.btn-next:hover { box-shadow: 0 8px 20px -4px rgba(230,51,34,0.5); }

/* Result */
.result-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid;
  margin-bottom: 18px;
}
.result-card.yes { background: #FCEAE7; border-color: var(--fs-red); }
.result-card.no { background: #E3F3E3; border-color: #1d6e3a; }
.result-card.partial { background: #FAEED8; border-color: #8a5a0e; }
.result-label {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.result-card.yes .result-label { color: var(--fs-red); }
.result-card.no .result-label { color: #1d6e3a; }
.result-card.partial .result-label { color: #8a5a0e; }
.result-heading { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 12px; }
.result-text { font-size: 14.5px; color: var(--text); line-height: 1.7; margin: 0 0 16px; }
.result-text strong { font-weight: 600; }
.result-summary {
  background: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.summary-row { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-k { color: var(--text-muted); width: 160px; flex-shrink: 0; }
.summary-v { color: var(--text); font-weight: 600; flex: 1; }
.summary-v.dang { color: var(--fs-red); }
.summary-v.khong { color: #1d6e3a; }
.legal-cite {
  background: #fff;
  border-left: 3px solid var(--fs-red);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px; line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.legal-cite strong { color: var(--fs-red); }
.legal-cite em { color: var(--text); font-style: italic; }

.suggest-block {
  background: #fff;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 4px;
}
.suggest-title {
  font-size: 15px; font-weight: 600;
  margin: 0 0 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.suggest-title svg { color: var(--fs-red); }
.suggest-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.6; }
.suggest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sp-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
}
.sp-img {
  background: var(--surface);
  aspect-ratio: 4 / 3;
  border-radius: 6px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
}
.sp-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.sp-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.sp-meta { font-size: 11.5px; color: var(--text-muted); }
.result-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* FAQ */
.accordion { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin: 0 auto; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.acc-item.is-open { border-color: var(--fs-red); }
.acc-head {
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; user-select: none;
  font-size: 15px; font-weight: 600;
}
.acc-title { flex: 1; }
.acc-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}
.acc-item.is-open .acc-toggle { background: var(--gradient-brand); color: #fff; transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-item.is-open .acc-body { max-height: 800px; }
.acc-body-inner {
  padding: 0 22px 22px 22px;
  color: var(--text-muted); font-size: 14px; line-height: 1.75;
}
.acc-body-inner p { margin: 0 0 10px; }
.acc-body-inner p:last-child { margin-bottom: 0; }
.acc-body-inner strong { color: var(--text); }
.acc-body-inner a { color: var(--fs-red); }
.acc-body-inner a:hover { text-decoration: underline; }

/* CTA block */
.cta-block {
  background: linear-gradient(120deg, #1B222C 0%, #2A211D 60%, #3A1F18 100%);
  border-radius: 20px;
  padding: 48px 56px;
  color: #fff;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle at center, rgba(230,51,34,0.35) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-block h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; position: relative; }
.cta-block p { color: #B6BDC6; font-size: 15px; margin: 0 auto 22px; max-width: 600px; position: relative; }
.cta-block-actions { display: inline-flex; gap: 12px; position: relative; flex-wrap: wrap; justify-content: center; }
.cta-block-actions .cta-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.25); background: transparent; }
.cta-block-actions .cta-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.05); color: #fff; }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .step-tabs .step-tab span:not(.step-num) { display: none; }
  .step-tabs .step-tab { gap: 0; }
  .suggest-grid { grid-template-columns: 1fr; }
  .summary-k { width: 130px; }
  .cta-block { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .step-content { padding: 24px 20px; }
  .step-heading { font-size: 18px; }
  .wizard-header { padding: 16px 20px; flex-wrap: wrap; gap: 6px; }
  .wizard-title { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; }
  .result-card { padding: 22px 18px; }
  .result-heading { font-size: 18px; }
  .summary-row { flex-direction: column; gap: 2px; padding: 8px 0; }
  .summary-k { width: auto; font-size: 12px; }
  .cta-block { padding: 28px 20px; }
  .cta-block h3 { font-size: 20px; }
  .cta-block-actions .cta-btn { width: 100%; justify-content: center; }
}
