/* D5 form-only additions. Identity and shared components remain unchanged. */
.page--bachillerato .housing-form {
  gap: 32px;
  margin-top: 24px;
}

.page--bachillerato .bachillerato-block {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.page--bachillerato .bachillerato-block > legend {
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.page--bachillerato .bachillerato-choices {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page--bachillerato .bachillerato-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  touch-action: manipulation;
}

.page--bachillerato .bachillerato-choice input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.page--bachillerato .bachillerato-choice input:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.page--bachillerato .bachillerato-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page--bachillerato .bachillerato-choice:has(input:disabled) {
  color: var(--navy);
  background: color-mix(in srgb, var(--blue) 4%, var(--cream));
  cursor: not-allowed;
  opacity: .65;
}

.page--bachillerato .bachillerato-other[hidden] {
  display: none;
}

/* Secondary action appears only after the confirmed student registration. */
.page--bachillerato .bachillerato-another-child {
  color: var(--blue);
  background: var(--cream);
}
