/* Contenedor principal */
.osurvey-form {
  max-width: 600px;
  margin: 2em auto;
  padding: 2em;
  background: #f9f9f9;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
}

/* Cada paso (pregunta) como tarjeta */
.osb-step {
  display: none;
  background: #fff;
  padding: 1.5em;
  margin-bottom: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.osb-step:first-of-type {
  display: block;
}

/* Título de la pregunta */
.osb-question strong {
  display: block;
  font-size: 1.3em;
  margin-bottom: 0.5em;
  color: #222;
}

/* Subtítulo/instrucciones */
.osb-question em {
  display: block;
  font-style: italic;
  color: #666;
  margin-bottom: 1em;
}

/* Contenedor de inputs */
.osb-input {
  margin-bottom: 1.2em;
}

/* Campos de texto, selects, textarea */
.osb-input input[type="text"],
.osb-input select,
.osb-input textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

/* Pie de página de la pregunta */
.osb-footer {
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  color: #555;
}

/* Navegación */
.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
}
.survey-nav button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.survey-nav button:hover:not(:disabled) {
  background: #005177;
}
.survey-nav button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Barra de progreso */
.survey-progress {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2em;
}
.survey-progress-bar {
  height: 100%;
  width: 0%;
  background: #0073aa;
  transition: width 0.3s ease;
}

/* Mensaje de resultado */
.survey-result {
  text-align: center;
  font-size: 1.1em;
  margin-top: 2em;
  color: #0073aa;
}

/* Opciones (radio/checkbox/select) como bloques */
.osb-question label {
  display: block !important;
  width: 100%;
  padding: 0.8em 1em;
  margin-bottom: 1em !important;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s;
}
.osb-question label:hover {
  background: #eef5fc;
  border-color: #0073aa;
}
.osb-question label input[type="radio"],
.osb-question label input[type="checkbox"] {
  margin-right: 0.5em;
  vertical-align: middle;
  accent-color: #0073aa;
}

/* Responsive: botones full-width on small screens */
@media (max-width: 480px) {
  .survey-nav {
    flex-direction: column;
  }
  .survey-nav button {
    width: 100%;
    margin: 0.4em 0;
  }
}
