@media (max-width: 767px) {
  .wizard--compact:has([data-step="datos"]:not([hidden])) .wizard__steps {
    overflow: hidden;
  }
  .wizard--compact [data-step="datos"]:not([hidden]),
  .wizard--compact .wizard-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .wizard--compact [data-step="datos"]:not([hidden]) {
    height: 100%;
    justify-content: flex-start;
  }
  .wizard--compact .wizard-form {
    flex: 1;
  }
  .wizard--compact .wizard-contact-fields {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
  }
  .wizard--compact .wizard-form > :not(.wizard-contact-fields) {
    flex-shrink: 0;
  }
  .wizard--compact .wizard-form > .wizard-actions {
    margin-top: 8px;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.wizard #wz-select-edad,
.wizard #wz-select-provincia-residencia {
  display: block;
  width: min(100%, 16rem);
  margin-inline: auto;
}
.wizard .wizard-privacy-scroll { background: transparent; }
.wizard .wizard-form [aria-invalid="true"] {
  outline: 2px solid #c91828;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .wizard .wizard-form { position: relative; }
  .wizard .wizard-contact-fields { padding-inline-end: 14px; }
  .wizard .wizard-contact-scrollbar {
    position: absolute;
    inset-inline-end: 1px;
    width: 5px;
    border-radius: 6px;
    background: #767676;
    pointer-events: none;
  }
}

body.wizard-page:has([data-step="datos"]:not([hidden])),
.wizard:has([data-step="datos"]:not([hidden])),
.wizard:has([data-step="datos"]:not([hidden])) .wizard__panel,
.wizard [data-step="datos"] .wizard-privacy-scroll {
  background: #fff !important;
}

@media (max-width: 767px) {
  .wizard.wizard--police-review:has([data-step="datos"]:not([hidden])) .wizard__intro {
    padding-bottom: 8px !important;
  }
  .wizard [data-step="datos"] .wizard-form__grid {
    row-gap: 8px;
    margin-block-start: 0;
  }
}

.wizard.wizard--compact [data-step="oposicion-elegida"] .wizard-opposition-cards {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  gap: 12px;
  grid-auto-rows: minmax(76px, auto);
}

.wizard [data-step="oposicion-elegida"] .wizard-opposition-card {
  min-width: 0;
  padding: 12px 16px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
