/* ==========================================================================
   Прогресс-бар мастера
   ========================================================================== */
.wizard-progress {
    position: relative;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: visible;
}

.wizard-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #4f7cff, #667eea);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.wizard-progress__label {
    position: absolute;
    right: 0;
    top: 12px;
    font-size: 13px;
    color: #6c757d;
}

.wizard-card {
    max-width: 640px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.wizard-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #212529;
}

.wizard-subtitle {
    color: #6c757d;
    margin-bottom: 24px;
    font-size: 14px;
}

/* ==========================================================================
   Форма
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #343a40;
    font-size: 14px;
}

.required { color: #dc3545; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #4f7cff;
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

.form-hint--error   { color: #dc3545; }
.form-hint--warn    { color: #fd7e14; }
.form-hint--success { color: #198754; }
.form-hint--info    { color: #4f7cff; }

.form-error {
    margin-top: 6px;
    color: #dc3545;
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Автокомплит
   ========================================================================== */
.autocomplete { position: relative; }

.autocomplete__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-height: 280px;
    overflow-y: auto;
}

.autocomplete__item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

.autocomplete__item:hover,
.autocomplete__item--active {
    background: #f1f3f5;
}

/* ==========================================================================
   Input с кнопкой действия
   ========================================================================== */
.input-with-action {
    display: flex;
    gap: 8px;
}

.input-with-action .form-control { flex: 1; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
}

.btn-primary {
    background: #4f7cff;
    color: #fff;
}

.btn-primary:hover { background: #3d68e0; }

.btn-secondary {
    background: #f1f3f5;
    color: #343a40;
    border-color: #dee2e6;
}

.btn-secondary:hover { background: #e9ecef; }

.btn-link {
    background: transparent;
    color: #6c757d;
    padding: 10px 0;
}

.btn-link:hover { color: #4f7cff; }

.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ==========================================================================
   Радио/чекбокс
   ========================================================================== */
.radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
}

.radio input { margin: 0; }

/* ==========================================================================
   Фото
   ========================================================================== */
.photo-uploader {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f1f3f5;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    color: #adb5bd;
    font-size: 12px;
    text-align: center;
}

/* ==========================================================================
   Секции в Шаге 4
   ========================================================================== */
.legal-entity-block {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #212529;
}

.section-subtitle {
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #495057;
}

/* ==========================================================================
   Кнопки снизу
   ========================================================================== */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.wizard-actions--with-skip .wizard-actions__right {
    display: flex;
    gap: 12px;
}