/* Базовые стили для формы */
.u-form-help-text {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

.u-form-group-status {
    font-size: 0.9em;
    margin-top: 4px;
}

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

/* Компактные поля ввода */
.u-input-compact {
    max-width: 400px;
    width: 100%;
}

/* Модальное окно выбора типа пользователя */
.modal {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5em;
}

/* Кнопки выбора типа пользователя */
.user-type-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-type-btn {
    background-color: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.user-type-btn:hover {
    border-color: #4CAF50;
    background-color: #f8fff9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.2);
}

.user-type-btn:active {
    transform: translateY(-1px);
}

.user-type-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Отображение выбранного типа */
.user-type-display {
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 400px;
    width: 100%;
}

#selectedUserType {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.change-type-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.change-type-btn:hover {
    background-color: #1976D2;
}

/* Контейнер для информации о планах */
.plan-info-container {
    max-width: 400px;
    width: 100%;
    margin-bottom: 20px;
}

/* Информация о плане */
.plan-info {
    padding: 15px;
    margin-bottom: 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.student-plan {
    background-color: #e3f2fd;
    border-left-color: #2196F3;
}

.teacher-plan {
    background-color: #e8f5e9;
    border-left-color: #4CAF50;
}

.info-message {
    font-size: 0.95em;
    line-height: 1.5;
}

.student-plan .info-message {
    color: #1565c0;
}

.teacher-plan .info-message {
    color: #2e7d32;
}

/* Адаптивность для маленьких экранов */
@media screen and (max-width: 600px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .user-type-buttons {
        gap: 15px;
    }

    .user-type-btn {
        min-width: 140px;
        padding: 20px 15px;
        font-size: 1em;
    }

    .user-type-icon {
        width: 60px;
        height: 60px;
    }

    .user-type-display {
        flex-direction: column;
        text-align: center;
    }

    .u-input-compact {
        max-width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .user-type-btn {
        min-width: 120px;
        padding: 15px 10px;
        font-size: 0.9em;
    }

    .user-type-icon {
        width: 50px;
        height: 50px;
    }
}
