/* ========== Базовые стили страницы ========== */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #222;
}

.opros-container {
    max-width: 860px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

h1, h2, h3 {
    color: #333;
    margin-top: 0;
}

p {
    line-height: 1.6;
}

/* ========== Стили шагов анкеты ========== */
.step {
    display: none;
    margin: 25px 0;
    animation: fadeIn 0.3s ease-in-out;
}

.step.active {
    display: block;
}

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

/* ========== Стили форм ========== */
label {
    display: block;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
}

textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 97%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
}

textarea:focus,
input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 4px rgba(0, 115, 170, 0.3);
    outline: none;
}


/* ========== Стили radio и checkbox ========== */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #0073aa; /* современный способ подкрашивать */
    margin-right: 6px;
    transform: scale(1.2);
}

/* ========== Кнопки управления шагами ========== */
.controls {
    margin-top: 30px;
    text-align: center;
}

.controls button {
    font-size: 18px;
    padding: 12px 28px;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    transition: background 0.2s, transform 0.1s;
}

.controls button:hover:not(:disabled) {
    background: #005f8d;
    transform: translateY(-1px);
}

.controls button:disabled {
    background: #999;
    cursor: default;
}

.hidden { display: none; }

/* ========== Range Slider (1–5) ========== */
/* Блок range слайдера */
.range-block {
    margin: 20px 0;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    margin: 15px 0 5px;
    box-shadow: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    background: #005f8d;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: none;
}
input[type="range"]::-moz-range-thumb:hover {
    background: #005f8d;
}

/* Текущее значение */
.slider-value {
    font-weight: bold;
    font-size: 16px;
    color: #0073aa;
    margin-left: 10px;
}

/* Подписи под шкалой */
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

/* Текст прогресса */
.progress {
    display: inline-block;
    font-size: 15px;
    color: #444;
    margin-bottom: 20px; /* 👈 отступ вниз */
}

