/* Стили для формы регистрации на вступительные экзамены */

.admission-register {
    padding: 40px 0;
}

/* Прогресс-бар с шагами */
.registration-progress {
    background: #fff;
    border-radius: 10px;
    padding: 30px 15px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-top: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-step:hover {
    transform: translateY(-2px);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.step-number {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    background: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 10px;
    position: relative;
    top: -20px;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: #ccb989;
    color: #fff;
    border-color: #816f42;
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: #ccb989;
    font-weight: 700;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #ccb989 0%, #764ba2 100%);
    color: #fff;
    border-color: #ccb989;
}

.progress-step.completed .step-icon {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

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

.progress-step.completed .step-number {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.progress-step.completed .step-number::before {
    content: "✓";
    font-size: 14px;
}

/* Линии между шагами */
.progress-step.completed + .progress-line {
    background: #28a745;
}

.progress-step.active + .progress-line {
    background: linear-gradient(90deg, #ccb989 0%, #e9ecef 100%);
}

/* Если текущий шаг завершен, следующая линия тоже зеленая */
.progress-step.completed + .progress-line + .progress-step.active + .progress-line {
    background: #e9ecef;
}

/* Адаптивность для прогресс-бара */
@media (max-width: 768px) {
    .registration-progress {
        padding: 20px 10px;
    }
    
    .progress-steps {
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .progress-step {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .progress-line {
        min-width: 20px;
        flex-shrink: 0;
    }
}

.registration-form-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
}

.form-step {
    display: none;
}

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

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

.form-step .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-step .card-header {
    background: linear-gradient(135deg, #ccb989 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 5px 5px 0 0;
}

.form-step .card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.form-step .card-body {
    padding: 30px;
}

.exam-program-info {
    line-height: 1.8;
}

.exam-program-info h4 {
    color: #ccb989;
    margin-bottom: 20px;
}

.exam-program-info h5 {
    color: #ccb989;
    margin-top: 20px;
    margin-bottom: 10px;
}

.exam-program-info ul {
    list-style: none;
    padding-left: 0;
}

.exam-program-info ul li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.exam-program-info ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.form-navigation .btn {
    min-width: 200px;
    padding: 10px 40px;
    font-weight: 600;
}


.form-label {
    font-weight: 600;
    margin-bottom: 0px;
    color: #0d6efd;
}

.form-control:focus {
    border-color: #ccb989;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.text-danger {
    color: #dc3545 !important;
}

#document-preview,
#photo-preview {
    margin-top: 10px;
}

#photo-preview img {
    border-radius: 5px;
    border: 2px solid #ccb989;
}

/* Статус регистрации */
.admission-status {
    padding: 60px 0;
}

.admission-status .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admission-status .card-header {
    border-radius: 5px 5px 0 0;
}

.admission-status .row {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.admission-status .row:last-child {
    border-bottom: none;
}

.badge {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Интерфейс экзамена */
.exam-interface {
    padding: 40px 0;
}

.exam-sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timer-container {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ccb989 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.timer-display {
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.timer-warning {
    color: #ff6b6b !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.questions-nav {
    margin-top: 20px;
}

.questions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.question-nav-item {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.question-nav-item:hover {
    background: #ccb989;
    color: white;
    border-color: #ccb989;
}

.question-nav-item.answered {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.question-nav-item.active {
    background: #ccb989;
    color: white;
    border-color: #ccb989;
    font-weight: bold;
}

.exam-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.question-block {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccb989;
}

.question-subject {
    background: #ccb989;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.question-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.answer-option {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.answer-option:hover {
    background: #f0f0f0;
    border-color: #ccb989;
}

.answer-option input[type="radio"]:checked + label {
    font-weight: bold;
    color: #ccb989;
}

/* Адаптивность */
@media (max-width: 768px) {
    .registration-form-wrapper {
        padding: 20px;
    }
    
    .form-step .card-body {
        padding: 20px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation .btn {
        width: 100%;
    }

    .exam-sidebar {
        position: relative;
        margin-bottom: 20px;
    }

    .questions-list {
        justify-content: center;
    }
}

/* Анимация загрузки */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.registration-form-wrapper .form-control {
    height: 50px;
    border: 2px solid #dee2e6;
}