

.founder-test {
  background: #fff;
  max-width: 960px;
  margin: 3rem auto;
  padding: 2.5rem 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  
}


.founder-test h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
}

.founder-test h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 .8rem;
}

.founder-test p {
  margin: .4em 0 1em;
  line-height: 1.6;
}

.category {
  background: #f9fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1.5rem;
 
}

.category.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute;
  left: 0; right: 0;
}


.question {
  margin-bottom: 1.2rem;
}
.question p {
  margin: 0 0 .3em;
  font-weight: 500;
}


.scale {
  display: flex;
  gap: .6em;
  margin-top: .3em;
  flex-wrap: wrap;
}

.scale input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale .scale-btn {
  display: inline-block;
  min-width: 2.4em;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f1f5fb;
  color: #333;
  cursor: pointer;
  padding: .4em .8em;
  font-weight: 500;
}

.scale .scale-btn:hover {
  background: #e3edfc;
  border-color: #93c5fd;
}

.scale input[type=radio]:checked + .scale-btn {
  background: #428bca;
  color: #fff;
  border-color: #357ebd;
}


.actions {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  margin-top: 1.5rem;
}

button {
  background-color: #428bca;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .7em 1.4em;
  font-size: 1rem;
  cursor: pointer;

}

button:hover {
  background-color: #3071a9;
}

button:disabled {
  background: #aac9ea;
  cursor: not-allowed;
}

#result {
  margin-top: 2rem;
  background: #f9fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.5rem;
}
#result h3 {
  margin-top: 0;
}
#result p strong {
  color: #222;
}
#result.hidden{
    display: none;
}


@media (max-width: 768px) {
  .founder-test {
    padding: 1.5rem 1.2rem;
    margin: 1.5rem;
  }
  .scale {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  button {
    width: 100%;
  }
  .scale {
    justify-content: center;
  }
  .scale .scale-btn {
    flex: 1;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 1.5cm;
  }

  html, body { background:#fff; color:#000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body * { visibility: hidden !important; }
  .founder-test, .founder-test * { visibility: visible !important; }
  .founder-test { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; }
  .founder-test .hidden { display: block !important; opacity: 1 !important; visibility: visible !important; }
  .founder-test .category.hidden { position: static !important; transform: none !important; pointer-events: auto !important; }

  body { font-size: 11pt; }
  .founder-test h2 { margin: 0 0 10pt; font-size: 14pt; }
  .founder-test h3 { margin: 10pt 0 6pt; font-size: 12pt; }
  .founder-test p { margin: 0 0 6pt; line-height: 1.35; }

  .category {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 10pt 12pt;
    margin: 10pt 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .question { margin-bottom: 6pt; }
  .scale { gap: 4pt; }
  .scale .scale-btn { padding: 2pt 4pt; min-width: 1.8em; border-color:#bbb; background:#f3f3f3; color:#000; }
  .scale input[type=radio]:checked + .scale-btn { background:#428bca; color:#fff; border-color:#357ebd; }


  .actions, .founder-test button, .no-print { display: none !important; }

  .founder-test .category:nth-of-type(2n) {
    break-after: page;
    page-break-after: always;
  }

  #result {
   
    background: #fff;
    border: none;
    padding: 0;
    margin-top: 0;
  }
}
