 /* --- FORMULARIO DE PAGO (PASO 5) --- */

#formPaso5 .campo-form {
  margin-bottom: 15px;
}

#formPaso5 .campo-form label {
  font-size: 1em;
  color: #004c99;
  font-weight: 600;
}

#formPaso5 .campo-form input,
#formPaso5 .campo-form select {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1em;
  margin-top: 3px;
  width: 100%;
  background: #f8faff;
}

#formPaso5 .campo-form input:focus, #formPaso5 .campo-form select:focus {
  border-color: #00ffa1;
  outline: none;
  background: #eafff8;
}

#formPaso5 .msg-error {
  display: block;
  color: #c62828;
  font-size: 0.92em;
  min-height: 17px;
  margin-top: 2px;
}

#logoTarjeta {
  background: #fff;
  border-radius: 7px;
  border: 1px solid #ddd;
  padding: 3px 4px;
  min-width: 34px;
}


#formPaso5 {
  max-width: 430px;
  margin: 10px auto 0 auto;
  background: rgba(255,255,255,0.98);
  border-radius: 22px;
  padding: 28px 36px 30px 36px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.16);
  font-family: 'Segoe UI', sans-serif;
  border: 1.5px solid #e0f7fa;
  position: relative;
  overflow-y: auto;
}

#formPaso5 h3 {
  margin-bottom: 26px;
  margin-top: 0;  
  font-size: 1.37em;
  color: #0069c0;
  border-bottom: 2px solid #00ffa1;
  padding-bottom: 10px;
  text-align: center;
  letter-spacing: 0.01em;
}

#formPaso5 label {
  margin-top: 15px;
  display: block;
  color: #004c99;
  font-weight: 600;
  font-size: 1.06em;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

#formPaso5 input,
#formPaso5 select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.2px solid #c5e8ef;
  font-size: 1.11em;
  margin-bottom: 9px;
  background: #f5fcff;
  transition: border 0.2s, background 0.18s;
  outline: none;
  box-sizing: border-box;
}

#formPaso5 input:focus,
#formPaso5 select:focus {
  border-color: #00ffa1;
  background: #e0f7fa;
}

#formPaso5 #logoTarjeta {
  height: 28px;
  margin-left: 5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
  padding: 2px 5px;
  transition: transform 0.18s;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
#formPaso5 #logoTarjeta:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 2px 14px rgba(0,0,0,0.14);
}

#formPaso5 #mensajeValidacion {
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 1.01em;
  text-align: center;
  padding: 10px 0 6px 0;
  border-radius: 10px;
  min-height: 26px;
  letter-spacing: 0.01em;
  color: #00695c;
  background: #e0fff3;
  border: 1px solid #b2ffe5;
  box-shadow: 0 1px 4px rgba(0,255,161,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

#formPaso5 .form5-row {
  margin-bottom: 22px;
}

#formPaso5 [id^="error"] {
  color: #d32f2f;
  font-size: 0.96em;
  margin-bottom: 5px;
  min-height: 17px;
  padding-left: 2px;
}

#btnRegistroSiguiente5 {
  background: linear-gradient(90deg,#00ffa1 0%,#25e5fa 100%);
  color: #004c99;
  border: none;
  padding: 13px 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.13em;
  margin-top: 32px;
  width: 100%;
  box-shadow: 0 3px 16px rgba(0,255,161,0.10);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.2s;
  display: block;
}
#btnRegistroSiguiente5:hover {
  background: linear-gradient(90deg,#00e89d 0%,#21c6e1 100%);
  color: #002b60;
  box-shadow: 0 4px 18px rgba(0,255,161,0.16);
}

@media (max-width: 570px) {
  #formPaso5 {
    max-width: 98vw;
    padding: 18px 5vw 20px 5vw;
  }
  #formPaso5 h3 { font-size: 1.11em;}
}


#btnRegistroSiguiente5 {
  margin-top: 22px !important;        /* Levanta el botón desde abajo */
  margin-bottom: 2px;
  width: 100%;
  background: linear-gradient(90deg,#00ffa1 60%,#15cdfc 100%);
  color: #0e223a;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1em;
  padding: 12px 0 12px 0;
  box-shadow: 0 3px 10px rgba(34,188,197,0.10);
  transition: background 0.16s, color 0.13s;
}
#btnRegistroSiguiente5:hover {
  background: linear-gradient(90deg,#00ffa1 55%,#15cdfc 100%);
  color: #004c99;
}

.loader-mini {
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(255,255,255,0.86);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.loader-circulo-mini {
  border: 4px solid #15cdfc;
  border-top: 4px solid #00ffa1;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: spin 1s linear infinite;
  margin-bottom: 2px;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}




.rechazo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: rgba(255,40,80,0.99); /* Rojo translúcido más visible */
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px; /* Misma que tu form para que no sobresalga */
  animation: fadeInRechazo 0.5s;
}

@keyframes fadeInRechazo {
  0% { opacity: 0;}
  100% { opacity: 1;}
}

.rechazo-animado {
  width: 90%;
  max-width: 350px;
  background: #fff;
  border-radius: 18px;
  padding: 36px 26px 26px 26px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.19);
  position: relative;
  animation: esquinasRechazo 0.4s cubic-bezier(.36,.07,.19,.97);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes esquinasRechazo {
  0% {
    box-shadow: 0 0 0 0 #ee215c, 0 0 0 0 #ee215c, 0 0 0 0 #ee215c, 0 0 0 0 #ee215c;
    transform: scale(0.8);
  }
  100% {
    box-shadow:
      -60px -60px 0 0 #ee215c, /* esquina sup izq */
      60px -60px 0 0 #ee215c,  /* esquina sup der */
      -60px 60px 0 0 #ee215c,  /* esquina inf izq */
      60px 60px 0 0 #ee215c;   /* esquina inf der */
    transform: scale(1);
  }
}

.rechazo-x-circulo {
  margin-bottom: 12px;
  animation: saltarX 0.5s cubic-bezier(.53,.1,.48,1.28);
}

@keyframes saltarX {
  0% { transform: translateY(-50px) scale(0.6);}
  75% { transform: translateY(8px) scale(1.1);}
  100% { transform: translateY(0) scale(1);}
}

.rechazo-x-circulo svg {
  display: block;
  margin: 0 auto;
}

.rechazo-mensaje h3 {
  color: #ee215c;
  font-size: 1.38em;
  margin-bottom: 10px;
  margin-top: 2px;
  text-align: center;
}

.rechazo-motivo {
  color: #37384a;
  text-align: center;
  font-size: 1em;
  margin-bottom: 20px;
  margin-top: 8px;
}

.boton-reintentar {
  display: block;
  margin: 0 auto;
  padding: 12px 0;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg,#6d47ff 0%,#a948e8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 1s;
  box-shadow: 0 2px 8px 0 rgba(108, 56, 255, 0.12);
}
.boton-reintentar:hover {
  background: linear-gradient(90deg,#a948e8 0%,#6d47ff 100%);
}


/* --- FIX duros para que se VEAN los textos del Modal 6 (pago) --- */
#paymentBackdrop #formPaso5,
#paymentBackdrop #formPaso5 * {
  /* Evitar herencias raras de gradientes o blend */
  mix-blend-mode: normal !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: initial !important; /* reset */
}

#paymentBackdrop #formPaso5 input,
#paymentBackdrop #formPaso5 select,
#paymentBackdrop #formPaso5 textarea {
  color: #0e223a !important;
  -webkit-text-fill-color: #0e223a !important; /* Safari/Chrome */
  caret-color: #0e223a !important;
  background-color: #f5fcff !important;        /* evita transparente */
  opacity: 1 !important;                       /* por si heredaron opacity */
  box-shadow: inset 0 0 0 1000px #f5fcff;      /* cubre autofill amarillo */
}

/* Placeholders legibles */
#paymentBackdrop #formPaso5 ::placeholder {
  color: #6b7b8a !important;
  opacity: 1 !important;
}

/* Autofill WebKit (Chrome/Safari) */
#paymentBackdrop #formPaso5 input:-webkit-autofill,
#paymentBackdrop #formPaso5 select:-webkit-autofill {
  -webkit-text-fill-color: #0e223a !important;
  box-shadow: inset 0 0 0 1000px #f5fcff !important; /* tapa fondo autofill */
  transition: background-color 9999s ease-out 0s;    /* truco para fijarlo */
}

/* Si hubiera alguna regla global que pone el texto transparente en inputs dentro de .modal/.panel/.body */
.modal .body input,
.modal .body select,
.modal .body textarea {
  color: inherit;
}

/* Asegurar z-index del formulario por encima de overlays/blur del modal */
#paymentBackdrop .modal .body #formPaso5 {
  position: relative;
  z-index: 1;
}
