/* ===== БАЗА ===== */
body {
    font-family: Arial, sans-serif;
    background: #f2f4f7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 92%;
    max-width: 420px;
    margin: 60px auto;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* ===== ИНПУТЫ ===== */
input, select {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #ccd1d9;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: 0.2s;
}

input:focus, select:focus {
    border-color: #4b7bec;
    box-shadow: 0 0 0 2px rgba(75,123,236,0.25);
}

/* ===== КНОПКИ ===== */
button {
    width: 100%;
    padding: 14px;
    background: #4b7bec;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background: #3d6fdc;
}

.hidden {
    display: none !important;
}

/* ===== НАВБАР ===== */
.navbar {
    background: #4b7bec;
    color: white;
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.navbar a:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== КАРТОЧКИ ===== */
.question-card {
    border: 1px solid #ddd;
    padding: 14px;
    margin: 12px 0;
    border-radius: 8px;
    background: #fff;
}

/* ===== СПИСОК ОТВЕТОВ ===== */
.answersList {
    margin-left: 18px;
}

/* ===== РЯДЫ ===== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
}

/* ===== МОДАЛКА ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-window {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    width: 94%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
}

.modal-close {
    float: right;
    cursor: pointer;
    font-size: 26px;
    font-weight: bold;
    line-height: 18px;
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛОК ===== */
@media (max-width: 480px) {
    .container {
        margin: 20px auto;
        padding: 18px;
        border-radius: 10px;
    }

    input, select {
        padding: 12px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        font-size: 14px;
        padding: 5px 8px;
    }

    .question-card {
        padding: 10px;
    }
}



/* Приведём input и текст к одному уровню по вертикали */
.answer-option {
    display: flex;
    align-items: center;  /* вертикальное выравнивание */
    gap: 10px;            /* отступ между чекбоксом и текстом */
    margin-bottom: 8px;   /* отступ между вариантами */
}

.answer-option input[type="checkbox"],
.answer-option input[type="radio"] {
    flex-shrink: 0;       /* чтобы input не сжимался */
    width: 18px;
    height: 18px;
}
    /* Увеличим ширину окна прохождения теста */
#windowsPassingWindow, .wide-container {
    max-width: 900px;      /* можно подогнать под экран */
    width: 95%;            /* адаптивно */
    margin: 0 auto;        /* центрирование */
    padding: 20px;
}
#testPassingWindow {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-buttons button {
    min-width: 120px;
}
