/* Wizard de registro público - Cliente / Chofer */
.reg-page {
    min-height: 100vh;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(37, 211, 102, 0.18), transparent 60%),
        radial-gradient(900px 400px at 100% 0%, rgba(18, 140, 126, 0.14), transparent 55%),
        #f3f4f6;
}

.reg-shell {
    max-width: 46rem;
    margin: 0 auto;
}

.reg-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.reg-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
}

.reg-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 1rem;
    padding: 0.65rem 1rem;
    margin: 0 auto 0.85rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.reg-logo-badge img {
    height: 4.75rem;
    width: auto;
    max-width: min(100%, 13rem);
    object-fit: contain;
    display: block;
    margin: 0;
    filter: none;
}

.reg-progress-wrap {
    padding: 1rem 1.25rem 0.25rem;
}

.reg-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.reg-progress-bar {
    height: 0.55rem;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.reg-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #25D366, #128C7E);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.reg-steps-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.85rem 1rem 0;
}

.reg-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #d1d5db;
    transition: all 0.25s ease;
}

.reg-dot.active {
    width: 1.4rem;
    background: #25D366;
}

.reg-dot.done {
    background: #128C7E;
}

.reg-step-title {
    padding: 1rem 1.5rem 0.25rem;
}

.reg-step-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-step-title p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.wizard-step {
    display: none;
    padding: 1rem 1.5rem 0.5rem;
    animation: regFadeIn 0.28s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes regFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.reg-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
}

.reg-nav .hidden {
    display: none !important;
}

.reg-btn {
    flex: 0 0 auto;
    min-width: 8.5rem;
    border-radius: 0.75rem;
    padding: 0.8rem 1.15rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.reg-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.reg-btn-secondary:hover {
    background: #e5e7eb;
}

.reg-btn-primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
}

.reg-btn-primary:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.reg-btn-primary:disabled,
.reg-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.reg-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.reg-toast-error {
    margin: 0 1.5rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.875rem;
    display: none;
}

.reg-toast-error.show {
    display: block;
    animation: regFadeIn 0.2s ease;
}

@media (max-width: 640px) {
    .reg-logo-badge img { height: 3.85rem; }
    .reg-step-title h2 { font-size: 1.1rem; }
    .wizard-step, .reg-step-title, .reg-nav { padding-left: 1rem; padding-right: 1rem; }
    .reg-btn { min-width: 7.5rem; }
}
