/* --- Общие стили для всего сайта --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.container {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
}

/* --- Стили заголовков --- */
h1, h2 {
    color: #333;
}

/* --- Стили для форм --- */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
    margin: 10px 0 5px;
}

/* --- Стили для текстовых полей ввода --- */
input[type="text"], input[type="number"], input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* --- Стили для кнопок --- */
button {
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #0056b3;
}

/* Стили для кнопок "Назад" и "Далее" */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.button-group button {
    flex: 1;
    max-width: 150px;
}

/* --- Стили для таблиц --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

/* --- Стили для ячеек с возможностью выделения --- */
.clickable-cell {
    cursor: pointer;
}

/* --- Стили для формы выбора приоритетов в виде таблицы --- */
.priority-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.priority-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
    height: 60px;
}

.priority-label {
    width: 300px;
    text-align: left;
    color: #555;
}

.priority-options {
    display: flex;
    width: 600px;
    gap: 10px;
    justify-content: center;
}

.priority-radio {
    display: none;
}

.priority-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1em;
}

.priority-radio:checked + .priority-number {
    background-color: #007BFF;
    color: #fff;
}

.priority-number:hover {
    background-color: #d0d0d0;
}

/* --- Стили для отображения ошибок --- */
.error-message {
    color: red;
    margin-top: 10px;
}

/* --- Стили для страницы выбора этапов --- */
.stage-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.stage-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 280px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stage-card.completed {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.stage-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.stage-button {
    width: 100%;
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.stage-button:hover {
    background: #0056b3;
}

.stage-card.completed .stage-button {
    background: #28a745;
}

.stage-card.completed .stage-button:hover {
    background: #218838;
}

/* --- Стили для вертикальной формы --- */
.inline-form {
    display: inline-block;
    margin-left: 10px;
}

.stage-list li {
    list-style: none;
    margin: 10px 0;
}

.stage-list a {
    text-decoration: none;
    font-weight: bold;
}

.stage-list .status-message {
    color: green;
    font-size: 0.9em;
}

.form-group {
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    align-items: center;
}

.form-row label {
    margin-right: 10px;
}

.form-row textarea {
    flex: 1;
}

.form-row select {
    width: auto;
}

/*Анекета мобилка*/
@media (max-width: 700px) {
  .priority-item {
    flex-direction: column;
    margin-top: 10px;
    gap: 0;
  }

  .priority-number {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }


  .priority-label {
    width: 350px;
  }
  .priority-options { 
      width:auto;
  }
}


.form-group { 
    display: flex;
    gap: 20px;
}

.section-divider {
    margin:0 !important;
}

.none_important {
    display:flex;
    justify-content:center;
}

/*Тип личности мобилка*/
@media (max-width: 700px) {
.figure-row {
            gap: 20px;
     margin-top: 20px; 
    flex-direction: column;
     height: auto !important; 
    align-items: center !important;
}
}



/*Тест PAEI мобилка*/
@media (max-width: 700px) {


.table-group {
    width: 100% !important;
}

th:nth-child(2) {
    width: 40% !important;
}
}

.stage-grid {
    display: flex;
    justify-content:center;
    gap: 20px;
    justify-items: center;
    margin-bottom: 40px; /* Разделяем обязательные и необязательные секции */
}

.section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.ending {
    text-align: center;
    margin-top: 20px;
}

.stage-card.completed .stage-button {
    background-color: green;
    cursor: not-allowed;
}
