
/* --- Layout: grid with max 3 buttons per row on portrait phones --- */
.options-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
@media (orientation: portrait) {
  .options-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Header layout */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.page-title { margin: 0; }
.school-logo {
  max-height: 150px;  /* per preference */
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Option buttons (labels) */
.option-label.btn {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  width: 100%;
}

/* Keyboard focus polish */
.btn-check:focus + .option-label,
.btn-check:focus-visible + .option-label {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* Errors */
.error-msg {
  color: #b42318;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.error-visible { opacity: 1; }

/* Summary */
#summaryBox {
  border: 2px solid #0d6efd;
  padding: 15px;
  border-radius: 8px;
  background: #f8f9fa;
}

/* Buttons row */
.actions-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Make large buttons full-width on small screens */
@media (max-width: 420px) {
  .btn-lg { width: 100%; }
}
