/**
 * ASÍ SE GANA — Estilos del Wizard de Compra de Tickets
 * Réplica idéntica y perfeccionada de las capturas del usuario
 */

.wizard-modal-card {
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(10, 25, 47, 0.18);
  border: 1px solid #E2E8F0;
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
}

.wizard-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem 0.8rem 2rem;
}

.btn-wizard-back {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-wizard-back:hover {
  color: #6366F1;
}

/* ─── BARRA DE PROGRESO DE 3 PASOS ───────────────────────────────────────── */
.wizard-progress-bar {
  display: flex;
  gap: 0.6rem;
  padding: 0 2rem 0.5rem 2rem;
}

.wizard-progress-step {
  flex: 1;
  height: 5px;
  background-color: #E2E8F0;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.wizard-progress-step.active {
  background-color: #6366F1; /* Morado eléctrico vibrante */
}

.wizard-step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  padding: 0.2rem 2rem 1.2rem 2rem;
}
.wizard-step-title strong {
  color: #0F172A;
}

/* ─── PASO 1: SELECTOR DE TIPO DE DOCUMENTO ──────────────────────────────── */
.doc-type-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.doc-type-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-type-btn.active {
  background: #EEF2FF;
  border-color: #6366F1;
  color: #4338CA;
  box-shadow: 0 0 0 1px #6366F1;
}

/* Inputs con bordes redondeados limpios */
.form-control-asg {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 18px;
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
  color: #0F172A;
  transition: all 0.2s ease;
}

.form-control-asg:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-control-asg.is-loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%236366F1' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='%236366F1' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.6-6.6A1.55,1.55,0,0,0,12,2.46,1.59,1.59,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
}

.btn-wizard-submit {
  width: 100%;
  padding: 1.05rem;
  border-radius: 18px;
  background: #818CF8;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-wizard-submit:hover:not(:disabled) {
  background: #6366F1;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.btn-wizard-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ─── PASO 2: COLUMNAS DE COMPRA Y PAGO (CAPTURA 3) ─────────────────────── */
.wizard-step2-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .wizard-step2-grid {
    grid-template-columns: 1fr;
  }
}

.wizard-subcard {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 1.35rem;
}

.ticket-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F1F5F9;
  border-radius: 16px;
  padding: 0.5rem 1rem;
}

.ticket-stepper-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.ticket-stepper-btn:hover {
  background: #E2E8F0;
}

.ticket-stepper-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F172A;
}

.btn-subir-comprobante {
  background-color: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 18px;
  padding: 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-subir-comprobante:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* TARJETA PÚRPURA DE YAPE / PLIN */
.payment-purple-card {
  background: linear-gradient(135deg, #742284 0%, #8B5CF6 100%);
  border-radius: 24px;
  padding: 1.5rem;
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 15px 35px rgba(116, 34, 132, 0.25);
}

.payment-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.payment-tab-btn {
  flex: 1;
  padding: 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.payment-tab-btn.active {
  background: #FFFFFF;
  color: #742284;
}

.payment-qr-wrapper {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.payment-qr-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.btn-copiar-numero {
  background: #4F46E5;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copiar-numero:hover {
  background: #4338CA;
}
