.schedule-planner {
  overflow: hidden;
  border-color: rgba(23, 184, 230, .34);
  background: linear-gradient(145deg, #fff 0%, #f6fcff 62%, #edf9fd 100%);
}

.schedule-intro {
  max-width: 720px;
}

.schedule-intro h2 {
  max-width: 690px;
}

.decision-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  margin-bottom: 26px;
}

.decision-badge {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(23, 184, 230, .28);
  border-radius: 50%;
  background: #102e74;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(16, 46, 116, .2);
}

.decision-badge strong {
  display: block;
  color: #f5c94f;
  font-size: 24px;
}

.decision-badge span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d5e0ef;
  border-radius: 8px;
  background: #d5e0ef;
}

.decision-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .92);
  color: #53627a;
  font-size: 13px;
  font-weight: 700;
}

.decision-step b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2f7fc;
  color: #087da1;
}

.schedule-selector {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.schedule-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.schedule-field {
  display: grid;
  gap: 8px;
}

.schedule-field label,
.schedule-field > span {
  color: #102e74;
  font-size: 13px;
  font-weight: 800;
}

.schedule-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid #d5e0ef;
  border-radius: 8px;
  background: #fff;
  color: #17233b;
  font: inherit;
}

.schedule-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 82px;
}

.schedule-choices:empty::before {
  content: "Elige un nivel y un subnivel para consultar las franjas disponibles.";
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #c9d7e9;
  border-radius: 8px;
  background: #f7fbff;
  color: #65738c;
}

.schedule-choice {
  position: relative;
  display: flex;
  min-height: 82px;
  cursor: pointer;
}

.schedule-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.schedule-choice span {
  display: grid;
  align-content: center;
  width: 100%;
  padding: 16px 18px 16px 48px;
  border: 1px solid #d5e0ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 46, 116, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.schedule-choice span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #a9bad1;
  border-radius: 50%;
  transform: translateY(-50%);
}

.schedule-choice strong {
  color: #102e74;
  font-size: 15px;
}

.schedule-choice small {
  margin-top: 5px;
  color: #67758e;
}

.schedule-choice:hover span {
  border-color: #17b8e6;
  box-shadow: 0 16px 34px rgba(16, 46, 116, .12);
  transform: translateY(-2px);
}

.schedule-choice input:checked + span {
  border-color: #17b8e6;
  background: #f0fbff;
  box-shadow: 0 0 0 3px rgba(23, 184, 230, .13);
}

.schedule-choice input:checked + span::before {
  border: 5px solid #17b8e6;
  background: #fff;
}

.schedule-choice input:focus-visible + span {
  outline: 3px solid rgba(245, 201, 79, .7);
  outline-offset: 2px;
}

.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #eaf9fd;
}

.schedule-footer p {
  margin: 0;
  color: #214568;
  font-size: 14px;
}

.schedule-footer strong {
  display: block;
  margin-bottom: 3px;
  color: #102e74;
}

.schedule-footer .btn {
  flex: 0 0 auto;
}

.schedule-footer .btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

.decision-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid #dce6f2;
}

.decision-contact .schedule-field:last-child {
  grid-column: 1 / -1;
}

.decision-contact input,
.decision-contact textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d5e0ef;
  border-radius: 8px;
  background: #fff;
  color: #17233b;
  font: inherit;
}

.decision-contact textarea {
  min-height: 92px;
  resize: vertical;
}

.decision-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #53627a;
  font-size: 13px;
  line-height: 1.45;
}

.decision-privacy input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.form-result {
  display: grid;
  gap: 5px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid;
  border-radius: 8px;
}

.form-result[hidden] { display: none; }
.form-result strong { color: inherit; }
.form-result span { font-size: 14px; line-height: 1.5; }
.form-result-success { border-color: #98d8b0; background: #eefbf3; color: #17643a; }
.form-result-error { border-color: #efb1ac; background: #fff2f1; color: #9b241b; }

.enroll-schedule {
  display: grid;
  gap: 16px;
}

.enroll-schedule .schedule-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enroll-schedule-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf9fd;
  color: #214568;
  font-size: 13px;
}

@media (max-width: 760px) {
  .schedule-filters,
  .enroll-schedule .schedule-filters,
  .schedule-choices {
    grid-template-columns: 1fr;
  }

  .schedule-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-footer .btn {
    width: 100%;
  }

  .decision-lead {
    grid-template-columns: 1fr;
  }

  .decision-badge {
    display: none;
  }

  .decision-steps,
  .decision-contact {
    grid-template-columns: 1fr;
  }

  .decision-contact .schedule-field:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-choice span {
    transition: none;
  }
}
