/* =========================================
   Agency Registration Wizard
   ========================================= */

.ul-wizard-wrapper {
    max-width: 800px;
    margin: 40px auto !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: transparent !important;
}

/* Stepper */
.ul-wizard-stepper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 40px !important;
    padding: 0 20px !important;
}

.ul-step {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 2 !important;
    position: relative !important;
    cursor: default !important;
}

.ul-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.ul-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.3s ease;
}

@media (max-width: 640px) {
    .ul-step {
        flex: 1;
        min-width: 0;
    }

    .ul-step-label {
        display: block;
        text-align: center;
        line-height: 1.25;
        font-size: 12px;
    }
}

/* Active State */
.ul-step.active .ul-step-icon {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.ul-step.active .ul-step-label {
    color: #2563eb;
}

/* Completed State */
.ul-step.completed .ul-step-icon {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.ul-step.completed .ul-step-label {
    color: #2563eb;
}

.ul-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    margin-bottom: 24px;
    /* Align with dots, offset for label */
    position: relative;
    z-index: 1;
}

/* Wizard Card */
.ul-wizard-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 2px rgba(0, 0, 0, 0.05);
    padding: 40px;
    overflow: hidden;
    position: relative;
}

.ul-wizard-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.ul-wizard-step.active-step {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ul-wizard-header {
    text-align: center;
    margin-bottom: 32px;
}

.ul-wizard-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111827;
}

.ul-wizard-header p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Form Grid */
.ul-wizard-grid {
    display: grid !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

.ul-wizard-grid.ul-col-2 {
    grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 640px) {
    .ul-wizard-grid.ul-col-2 {
        grid-template-columns: 1fr;
    }
}

/* Inputs */
.ul-field label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.ul-input-icon-wrap {
    position: relative !important;
    display: block !important;
}

.ul-input-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    pointer-events: none !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ul-field input {
    width: 100% !important;
    padding: 12px 16px 12px 42px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    background: #f9fafb !important;
    box-shadow: none !important;
    color: #111827 !important;
    margin: 0 !important;
}

.ul-field input:focus {
    background: #fff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* Buttons */
.ul-wizard-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.ul-wizard-actions.space-between {
    justify-content: space-between;
}

.ul-wizard-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s ease !important;
    gap: 8px !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.ul-wizard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.ul-wizard-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ul-btn-secondary {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ul-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Error/Success Messages */
.ul-wizard-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.ul-producer-error {
    margin-top: 8px;
    font-size: 13px;
    color: #dc2626;
}

/* Step 2 Producers List */
.ul-producers-list {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ul-wizard-producer-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producer-info {
    display: flex;
    flex-direction: column;
}

.producer-info strong {
    color: #1e293b;
}

.producer-info span {
    font-size: 14px;
    color: #64748b;
}

.producer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

.ul-add-producer-box {
    background: #f0f9ff;
    border: 1px dashed #bae6fd;
    padding: 24px;
    border-radius: 16px;
}

.ul-add-producer-box h4 {
    margin: 0 0 16px;
    color: #0369a1;
}

/* Success State */
.ul-wizard-success-state {
    text-align: center;
    padding: 40px 0;
}

.ul-success-icon-anim {
    width: 100px;
    height: 100px;
    background: #dcfce7;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ul-wizard-success-state h2 {
    font-size: 32px;
    color: #111827;
    margin-bottom: 12px;
}

.ul-wizard-success-state p {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 40px;
}

.ul-btn-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Utilities */
.ul-empty-text {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}