/**
 * СТИЛИ ПОШАГОВОЙ ФОРМЫ РЕГИСТРАЦИИ
 * Современный дизайн с прогресс-баром
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   ОСНОВНОЙ КОНТЕЙНЕР
   ═══════════════════════════════════════════════════════════════ */

.banner-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    transition: opacity 0.8s ease-in-out;
}

.column {
    display: none;
}

.left-column {
    display: none !important;
}

.right-column {
    display: block !important;
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
}

/* ═══════════════════════════════════════════════════════════════
   ЛОГОТИП
   ═══════════════════════════════════════════════════════════════ */

.form-logo {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}

.form-logo img {
    height: 48px;
    width: auto;
}

/* ═══════════════════════════════════════════════════════════════
   ЗАГОЛОВОК ФОРМЫ
   ═══════════════════════════════════════════════════════════════ */

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #031633;
    margin-bottom: 8px;
    line-height: 1.3;
}

.form-header p {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ПРОГРЕСС-БАР
   ═══════════════════════════════════════════════════════════════ */

.progress-container {
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    width: 0%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #adb5bd;
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.active .step-circle {
    border-color: #0d6efd;
    background: #0d6efd;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.progress-step.completed .step-circle {
    border-color: #0d6efd;
    background: #0d6efd;
    color: white;
}

.progress-step.completed .step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #adb5bd;
    transition: color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #0d6efd;
}

.progress-step.completed .step-label {
    color: #031633;
}

/* ═══════════════════════════════════════════════════════════════
   ШАГИ ФОРМЫ
   ═══════════════════════════════════════════════════════════════ */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #031633;
    margin-bottom: 24px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   ПОЛЯ ВВОДА
   ═══════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #031633;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    color: #031633;
}

.form-control:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background: white;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-control:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

/* Автокомплит должностей */
.position-suggestions {
    display: none;
    position: absolute;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 12px 32px rgba(3, 22, 51, 0.15);
    margin-top: 4px;
}

.position-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    font-size: 14px;
    transition: all 0.2s;
    color: #495057;
}

.position-suggestion:hover {
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.position-suggestion:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   ЧЕКБОКС СОГЛАСИЯ
   ═══════════════════════════════════════════════════════════════ */

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.form-check-input {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #0d6efd;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   КНОПКИ НАВИГАЦИИ
   ═══════════════════════════════════════════════════════════════ */

.form-navigation {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.form-navigation.final-step {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-navigation.final-step .btn-prev {
    flex: 1;
}

.form-navigation.final-step .submit-btn {
    flex: 2;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-prev {
    background: #e9ecef;
    color: #495057;
}

.btn-prev:hover {
    background: #dee2e6;
    transform: translateX(-2px);
}

.btn-next,
.submit-btn {
    background: #FFD83A;
    color: var(--g900);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 4px 14px rgba(255, 208, 22, .3);
}

.btn-next:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 24px rgba(255, 208, 22, .38);
}

.btn-next:active,
.submit-btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   СООБЩЕНИЯ РЕЗУЛЬТАТА
   ════════════════════════════ */

.form-result,
.expired-message {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.form-result h3 {
    font-size: 24px;
    font-weight: 700;
    color: #031633;
    margin-bottom: 16px;
    line-height: 1.4;
}

.form-result p,
.expired-message p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 24px;
}

.form-result .result-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: white;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
}

.expired-message h3 {
    color: #dc3545;
}

.auth-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.auth-hint a {
    color: #0284c7;
    text-decoration: underline;
    word-break: break-all;
}

.auth-hint a:hover {
    color: #0369a1;
}

/* ═══════════════════════════════════════════════════════════════
   СООБЩЕНИЕ ПОД ПОСЛЕДНИМ ШАГОМ
   ═══════════════════════════════════════════════════════════════ */

.email-notice {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #e7f3ff 0%, #d0e9ff 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.email-notice p {
    font-size: 13px;
    color: #031633;
    margin: 0;
    line-height: 1.5;
}

.email-notice strong {
    color: #0d6efd;
}

/* ═══════════════════════════════════════════════════════════════
   ОТЛАДОЧНЫЕ ПАНЕЛИ (сохранены как есть)
   ═══════════════════════════════════════════════════════════════ */

.test-controls {
    position: fixed;
    top: 10px;
    right: 10px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
}

.test-controls h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #031633;
}

.test-controls input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    margin: 5px 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
}

.test-controls button {
    margin: 5px;
    padding: 8px 15px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.test-controls button:hover {
    background: #0a58ca;
    transform: translateY(-1px);
}

.console-log {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #1f2937;
    color: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    max-width: 500px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.log-entry {
    margin: 5px 0;
    padding: 5px;
    border-left: 3px solid #0d6efd;
    padding-left: 10px;
}

.log-entry.success {
    border-left-color: #10b981;
}

.log-entry.error {
    border-left-color: #ef4444;
}

.log-entry.info {
    border-left-color: #0d6efd;
}

/* ═══════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .right-column {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .form-logo img {
        height: 40px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .progress-container {
        margin-bottom: 32px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .form-check {
        padding: 14px;
    }
    
    .form-check-label {
        font-size: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .form-result h3 {
        font-size: 20px;
    }
    
    .form-result .result-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .right-column {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-width: 2px;
    }
    
    .progress-steps::before,
    .progress-line {
        height: 2px;
        top: 16px;
    }
    
    .form-navigation {
        gap: 8px;
    }
    
    .btn {
        padding: 11px 16px;
        font-size: 13px;
    }
    
    .email-notice {
        padding: 12px;
    }
    
    .email-notice p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .right-column {
        padding: 20px 16px;
    }
    
    .form-logo img {
        height: 36px;
    }
    
    .form-header h2 {
        font-size: 18px;
    }
    
    .step-title {
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   СКРЫТИЕ СТАРЫХ ЭЛЕМЕНТОВ
   ═══════════════════════════════════════════════════════════════ */

.timer-container {
    display: none !important;
}

.left-column,
.left-content,
.left-title,
.left-features,
.bonus-message {
    display: none !important;
}
