/* ITF Business - PC builder page.
   Layers on help.css and recommends.css. */

/* ── Disclaimer ── */
.pcb-disclaimer {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--warning);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}
.pcb-disclaimer h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 .8rem;
}
.pcb-disclaimer ul { margin: 0; padding-left: 1.2rem; }
.pcb-disclaimer li {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--gray-800);
  margin-bottom: .65rem;
}
.pcb-disclaimer li:last-child { margin-bottom: 0; }

/* ── Checker form ── */
.pcb-form { max-width: 1200px; margin: 0 auto; }

.pcb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.pcb-field {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1rem;
  margin: 0;
}
.pcb-field legend {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0 .4rem;
  margin-left: -.4rem;
}
.pcb-field legend span {
  color: var(--gray-400);
  font-weight: 500;
}

.pcb-field select,
.pcb-field input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .6rem .7rem;
  margin-top: .3rem;
}
.pcb-field select:focus,
.pcb-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,78,122,.12);
}

.pcb-hint {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin: .55rem 0 0;
}

.pcb-reset {
  margin-top: 1.25rem;
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: .55rem 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.pcb-reset:hover { border-color: var(--blue); color: var(--blue); }

/* ── Results ── */
.pcb-results { max-width: 1200px; margin: 2rem auto 0; }

.pcb-empty {
  font-size: .95rem;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 0;
}

.pcb-summary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.pcb-summary-ok   { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.pcb-summary-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.pcb-summary-bad  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

.pcb-result {
  border: 1px solid var(--gray-200);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin-bottom: .75rem;
  background: var(--white);
}
.pcb-result h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .98rem;
  margin: 0 0 .35rem;
  color: var(--navy);
}
.pcb-result p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin: 0;
}
.pcb-ok   { border-left-color: var(--success); }
.pcb-warn { border-left-color: var(--warning); }
.pcb-bad  { border-left-color: var(--error); }

/* ── Build steps ── */
.pcb-steps {
  max-width: 800px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pcbstep;
}
.pcb-steps li {
  counter-increment: pcbstep;
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 2rem;
}
.pcb-steps li::before {
  content: counter(pcbstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcb-steps h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  color: var(--navy);
  margin: .3rem 0 .5rem;
}
.pcb-steps p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 0;
}

@media (max-width: 600px) {
  .pcb-grid { grid-template-columns: 1fr; }
  .pcb-steps li { padding-left: 2.9rem; }
  .pcb-steps li::before { width: 2rem; height: 2rem; font-size: .95rem; }
}
