.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px auto;
  max-width: 800px;
  position: relative;
}

.stepper .step {
  font-size: 12px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  text-align: center;
}

.stepper .step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(0%);
  width: 100%;
  height: 2px;
  background-color: #ddd;
  z-index: -1;
}

.stepper .step:last-child::after {
  content: none;
}

.stepper .step.done::after {
  background-color: #9ad444 !important;
}

.stepper {
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* Círculo */
.stepper .step span {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f1f1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: white;
  margin-bottom: 8px;
  z-index: 1;
}

/* Estados */
/* Colores del paso */
.stepper .step.active span,
.stepper .step.done span {
  background-color: #9ad444 !important;
  color: white !important;
}

.stepper .step.active,
.stepper .step.done {
  color: gray;
}

.step[data-step='3'] {
  color: #5a5a5a;
}

.stepper .step.done[data-step='3'] {
  color: #5a5a5a;
}

.stepper .step.done {
  color: #8e8e8e;
}

@media (max-width: 576px) {
  .stepper .step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: calc(100% + 10px);
    height: 2px;
    background-color: #ddd;
    z-index: -1;
    transform: translateX(0%);
  }

  .stepper .step:last-child::after {
    content: none;
  }

  .stepper .step.done::after {
    background-color: #9ad444;
  }

  .ocultar-plan-mobile {
    display: none !important;
  }

  .ocultar-subtitle {
    display: none !important;
  }

  .mostrar-otro {
    display: inline !important;
  }
}

.mostrar-otro {
  display: none !important;
}

@media (max-width: 576px) {
  .hide-mobile {
    display: none !important;
  }
}

.capitalize {
  text-transform: capitalize;
}

.hidden {
  display: none;
}

.btn-siguiente {
  background-color: rgb(53, 169, 225);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  font-style: italic;
  padding: 0.75rem 2rem;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-siguiente:hover {
  background-color: rgb(43, 145, 194);
}

.step-content {
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.step-content hr {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 1rem auto;
  width: 100%;
}

fieldset {
  border: 1px solid #ced4da !important;
  border-radius: 0.5rem;
  padding: 0 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

fieldset > div:first-child {
  background-color: #d3f0ff;
  font-weight: bold;
  border-bottom: 1px solid #ced4da;
  border-top-left-radius: 0.41rem;
  border-top-right-radius: 0.41rem;
}

fieldset > .p-4 {
  background-color: #fefbea;
}

button.next {
  background-color: #35a9e1;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  font-style: italic;
  padding: 0.5rem 1.5rem;
  text-align: center;
}

.error-message {
  font-size: 0.85rem;
}

.input-group .form-control {
  border-right: none;
}

.input-group .input-group-append .btn {
  border-left: none;
}

@media (max-width: 576px) {
  .form-group.row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group .col-sm-3,
  .form-group .col-sm-9 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

#student-formset-wrapper {
  background-color: #f8fbfd;
  padding: 1rem;
  border-radius: 5px;
}

.table-plan-selection {
  background-color: #fffbea;
  border: 1px solid #ced4da;
}

.remove-student-form {
  display: none !important;
}

.input-group.input-valid .form-control,
.input-group.input-valid .btn,
.input-group.input-invalid .form-control,
.input-group.input-invalid .btn {
  border: none !important;
  box-shadow: none !important;
}

.input-group.input-valid {
  border: 0.5px solid #28a745 !important;
  border-radius: 0.25rem;
  overflow: hidden;
}

.input-group.input-invalid {
  border: 0.5px solid #dc3545 !important;
  border-radius: 0.25rem;
  overflow: hidden;
}

.input-group.input-valid .form-control,
.input-group.input-invalid .form-control,
.input-group.input-valid .btn,
.input-group.input-invalid .btn {
  border: none !important;
  box-shadow: none !important;
}

.toggle-password {
  background-color: #ffffff !important;
  border: 0.5px solid #ced4da !important;
  border-left: none !important;
  box-shadow: none !important;
}

.button_apoderado {
  background-color: #00aff0;
  border-color: #00aff0;
  color: white;
}

.button_apoderado:hover {
  background-color: #0099cc !important;
  border-color: #0099cc;
}

/* Estilo de modales */
.custom-modal-content {
  border-left: 8px #99cadd solid;
  border-right: 8px #99cadd solid;
  border-top: 5px #99cadd solid;
  border-bottom: 5px #99cadd solid;
}

.modal-text {
  font-size: 1.1rem;
  color: #666666;
  line-height: 1.5;
}

.btn-accept,
.parent_button {
  background-color: #00aff0;
  color: white;
  font-weight: bold;
  padding: 0.5rem 2rem;
  border: none;
  font-size: 1rem;
}

/* Estilo de botón siguiente */
.next-step-btn {
  background-color: #36a9e1;
  color: white;
  font-weight: normal;
  font-style: italic;
  font-size: medium !important;
  border: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;

  min-width: 220px;
  padding: 0.75rem 2rem;
}

.next-step-btn:hover {
  background-color: #277eaa;
  color: white;
}

@media (max-width: 576px) {
  .next-step-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    min-width: auto;
  }

  #add-student-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    min-width: auto;
  }
}

.prev-step-btn {
  background-color: transparent;
  color: #0176de;
  font-style: italic;
  font-size: 1rem;
  border: 0.5px solid #0176de;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  min-width: 220px;
  transition: all 0.3s ease;
}

.prev-step-btn:hover {
  background-color: #0176de;
  color: white;
}

@media (max-width: 576px) {
  .prev-step-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    min-width: auto;
    margin-left: 1rem;
  }
}

.add-btn {
  background-color: #b6e7a6;
  color: black;
  font-weight: normal;
  font-style: italic;
  font-size: medium !important;
  border: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;

  min-width: 220px;
  padding: 0.75rem 2rem;
}

.add-btn:hover {
  background-color: #9ad444;
  color: black;
}

/* Paso 2 */

.dashed-divider {
  border: none;
  border-top: 2px dashed #ced4da;
  margin: 1rem auto;
  width: 100%;
}

.section-box {
  background-color: #fefbea;
  border: 1px solid #ced4da;
  padding: 1.5rem;
  border-radius: 0 0 0.25rem 0.25rem;
}

.student-form {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  overflow: hidden;
}

.student-form-header {
  background-color: #d3f0ff;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-bottom: 1px solid #ced4da;
}

.student-form-body {
  padding: 1.5rem;
  background-color: #f7f9fa;
}

/* Paso # 3 */

.dashed-divider {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 1rem auto;
  width: 100%;
}

.info-text {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.highlight {
  color: #1a3c8b;
}

.section-header {
  background-color: #ffe0a3;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 0.25rem 0.25rem 0 0;
  border-top: 1px solid #ced4da !important;
  border-left: 1px solid #ced4da !important;
  border-right: 1px solid #ced4da !important;
}

.section-box {
  border: 1px solid #ced4da;
  background-color: #fff7e6;
  padding: 1rem;
}

.section-box.no-border-top {
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
}

.payment-box {
  text-align: center;
}

.shadow-modal {
  box-shadow: 0 0 25px rgba(0, 175, 240, 0.5);
  border: none;
}

.logo-modal {
  max-width: 140px;
}

/* Estilo paso 1 */
.dashed-divider {
  border: none;
  border-top: 2px dashed #ced4da;
  margin: 1rem auto;
  width: 100%;
}

.step-fieldset {
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem;
  padding: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
  background-color: #f7f9fa;
}

.step-fieldset-header {
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #ced4da;
  border-top-left-radius: 0.25rem !important;
  border-top-right-radius: 0.25rem !important;
  color: #000;
}

.step-fieldset-body {
  padding: 1.5rem;
}

.error-message {
  font-size: 0.875rem;
}

.toggle-password {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-left: none;
  box-shadow: none;
}

.emat-blue {
  color: #126cc5;
}

/* Estilo paso # 3 */
.custom-header {
  background-color: #d0e8f6 !important;
  border-bottom: 1px solid #ced4da;
  color: #000;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.card {
  background-color: #f7f9fa !important;
  border: 1px solid #dce4ec;
  border-radius: 0.5rem;
}

.table td {
  vertical-align: middle;
  font-size: 1rem;
}

.link-terminos {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2e5f7d;
  text-decoration: none;
}

.link-terminos:hover {
  text-decoration: underline;
}

.pay-btn {
  background-color: #36a9e1;
  color: white;
  font-weight: normal;
  font-style: italic;
  font-size: medium !important;
  border: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;

  min-width: 220px;
  padding: 0.75rem 2rem;
}

.boton-aplicar-cupon {
  background-color: #36a9e1;
  color: white;
  font-weight: bold;
  font-style: italic;
  border: none;
  padding: 0.5rem 1.5rem;
  min-width: 160px;
  transition: background-color 0.3s ease;
}

.boton-aplicar-cupon:hover {
  background-color: #277eaa;
  color: white;
}

.pay-btn:hover {
  background-color: #277eaa;
  color: white;
}

input[type='number'],
input[type='range'] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
}

.font-title {
  color: #545454;
}

.table td,
.table th {
  border-top: 0px;
}

.theader_step3 {
  background-color: #d3f0ff;
  border-bottom: 0px !important;
  border-top: 0px !important;
}

.plans-summary {
  background-color: #f7f9fa;
}

.custom-modal-width {
  max-width: 500px;
  width: 90%;
  margin: auto;
}

.modal-content {
  -webkit-border-radius: 10px !important;
  -moz-border-radius: 10px !important;
  border-radius: 10px !important;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 1px solid #dee2e6;
}

.logo-container-left {
  display: flex;
  justify-content: flex-start;
}

.btn-redirect {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.btn-redirect:hover {
  background-color: #2980b9;
}

.confirm-annual {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}
.confirm-annual:hover {
  background-color: #2980b9;
}

@media (max-width: 576px) {
  .stepper .step[data-step='1'] .label::before {
    content: 'Apoderado';
  }

  .stepper .step[data-step='2'] .label::before {
    content: 'Alumno';
  }

  .stepper .step[data-step='3'] .label::before {
    content: 'Pago';
  }

  .stepper .label {
    visibility: hidden;
    position: relative;
    font-size: 0.75rem;
  }

  .stepper .label::before {
    visibility: visible;
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
  }
}

.stepper-mobile {
  display: none;
}

.stepper-mobile {
  display: none;
}

@media (max-width: 576px) {
  .stepper-desktop {
    display: none;
  }
  .stepper-mobile {
    display: flex;
  }
}

.remove-student-btn {
  border: none;
  color: #0176de;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.remove-student-btn:hover {
  background-color: #0176de;
  color: white;
}

.remove-student-btn:hover .papelera-boton {
  color: white;
}

.papelera-boton {
  color: #0176de;
  transition: color 0.2s ease;
}

.btn-disabled {
  background-color: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  border: none !important;
}

span.student-alert {
  color: red !important;
}

.custom-accept-button {
  background-color: #33b5e5; /* Azul claro */
  color: white;
  font-weight: bold;
  padding: 10px 30px;
  border: none;
  border-radius: 20px; /* Forma de píldora */
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-accept-button:hover {
  background-color: #1e9fd1;
}
