/* wizard.css - Updated & improved for supplier-registration.php */

/* =============================================
   General wizard container & layout
   ============================================= */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

.card.wizard-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: white;
}

.card-body {
    padding: 2.5rem 2rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    margin-bottom: 2.5rem;
}

.progress-bar {
    background: linear-gradient(90deg, #e07902, #ff9f1c);
    transition: width 0.4s ease;
}

/* =============================================
   Step content
   ============================================= */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

h4.mb-4 {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e07902;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
}

/* =============================================
   Form fields & labels
   ============================================= */
.form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.65rem 1rem;
    transition: all 0.25s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #e07902;
    box-shadow: 0 0 0 0.25rem rgba(224, 121, 2, 0.25);
    outline: none;
}

/* Required field visual feedback */
.form-label .text-danger {
    font-size: 1.1em;
    vertical-align: middle;
}

/* Invalid state (real-time + focus) */
input:invalid:not(:placeholder-shown):not(:focus),
select:invalid:not(:focus) {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

input:invalid:focus,
select:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Valid state (optional subtle green) */
input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
    border-color: #198754;
}

/* =============================================
   Navigation buttons
   ============================================= */
.btn-outline-secondary {
    border-radius: 8px;
    padding: 0.65rem 1.75rem;
    font-weight: 500;
}

.btn-warning {
    background: #e07902;
    border-color: #e07902;
    border-radius: 8px;
    padding: 0.75rem 2.25rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-warning:hover {
    background: #c96a00;
    border-color: #c96a00;
    transform: translateY(-1px);
}

/* =============================================
   Review step alert
   ============================================= */
.alert-info {
    border-radius: 10px;
    background-color: #e7f3ff;
    border-color: #b8daff;
    color: #0c5460;
}

/* =============================================
   Responsive adjustments
   ============================================= */
@media (max-width: 768px) {
    .card-body {
        padding: 1.75rem 1.25rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column-reverse;
        gap: 1rem;
    }
}

/* =============================================
   Optional - Step indicators (dots or numbers) above progress bar
   ============================================= */
/* Uncomment if you want visible step numbers/dots */

/*
.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.step-indicator.active {
    background: #e07902;
    color: white;
    transform: scale(1.15);
}
*/