/* ============================================================
   ОПРОСНЫЙ ЛИСТ — страница /survey/
   Префикс .reservoir-* — чтобы не конфликтовать с темой
   ============================================================ */

/* --- Обёртка секции --- */
.reservoir-section--survey {
    padding: 50px 0 70px;
    background: #fff;
}

.reservoir-section--survey > .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Заголовок --- */
.reservoir-section--survey .section-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #3a3a3a;
    margin: 0 0 32px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   ФОРМА
   ============================================================ */
.reservoir-survey {
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: "Montserrat", Arial, sans-serif;
    color: #3a3a3a;
}

/* --- Сетка верхних полей (2 колонки) --- */
.reservoir-survey .survey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Слайдеры (в столбик) --- */
.reservoir-survey .survey-sliders {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Контакты (3 колонки) --- */
.reservoir-survey .survey-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================================
   ПОЛЕ
   ============================================================ */
.reservoir-survey .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reservoir-survey .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #3a3a3a;
    line-height: 1.4;
}

.reservoir-survey .form-label__note {
    font-weight: 400;
    color: #8a929a;
    font-size: 12px;
}

.reservoir-survey .form-label__req {
    color: #e74c3c;
}

/* --- Инпуты и селекты --- */
.reservoir-survey .form-control {
    width: 100%;
    height: auto;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    color: #3a3a3a;
    background: #fff;
    border: 1px solid #d5d9dd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.reservoir-survey .form-control::placeholder {
    color: #9aa1a8;
}

.reservoir-survey .form-control:focus {
    outline: none;
    border-color: #CD2122;
    box-shadow: 0 0 0 3px rgba(11, 174, 73, 0.15);
}

/* --- Select с иконкой --- */
.reservoir-survey .form-select {
    position: relative;
}

.reservoir-survey .form-select .form-control {
    padding-right: 40px;
    cursor: pointer;
    background-image: none;
}

.reservoir-survey .form-select__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #8a929a;
    font-size: 14px;
    line-height: 1;
}

/* ============================================================
   СЛАЙДЕРЫ (range)
   ============================================================ */
.reservoir-survey .range-field {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.reservoir-survey .range-field__input {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e3e7ea;
    outline: none;
    cursor: pointer;
    margin: 0;
}

/* Webkit (Chrome, Safari, Edge) */
.reservoir-survey .range-field__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #CD2122;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s;
    margin-top: -8px;
}

.reservoir-survey .range-field__input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.reservoir-survey .range-field__input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

/* Firefox */
.reservoir-survey .range-field__input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #CD2122;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.reservoir-survey .range-field__input::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: #e3e7ea;
}

.reservoir-survey .range-field__input::-moz-focus-outer {
    border: 0;
}

/* Значение справа */
.reservoir-survey .range-field__output {
    flex: 0 0 auto;
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    font-size: 15px;
    color: #CD2122;
    white-space: nowrap;
}

/* ============================================================
   ЗАГРУЗКА ФАЙЛА
   ============================================================ */
.reservoir-survey .file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed #b8c0c8;
    border-radius: 6px;
    cursor: pointer;
    background: #fafbfc;
    font-size: 15px;
    color: #6b737a;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.reservoir-survey .file-upload:hover {
    border-color: #CD2122;
    background: #f0fbf4;
}

.reservoir-survey .file-upload__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #CD2122;
}

.reservoir-survey .file-upload__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.reservoir-survey .file-upload__text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservoir-survey .file-upload__text.is-selected {
    color: #3a3a3a;
    font-weight: 600;
}

.reservoir-survey .file-upload__clear {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #9aa1a8;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;
}

.reservoir-survey .file-upload__clear:hover {
    color: #e74c3c;
}

/* ============================================================
   КНОПКА ОТПРАВКИ
   ============================================================ */
.reservoir-survey .form-field--submit {
    margin-top: 8px;
}

.reservoir-survey .btn.btn--primary.btn--full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    color: #fff;
    background: #CD2122;
    border: 1px solid #CD2122;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.reservoir-survey .btn.btn--primary.btn--full:hover {
    background: #ad1718;
    border-color: #ad1718;
}

.reservoir-survey .btn.btn--primary.btn--full:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
    .reservoir-section--survey {
        padding: 30px 0 50px;
    }

    .reservoir-section--survey .section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .reservoir-survey .survey-grid {
        grid-template-columns: 1fr;
    }

    .reservoir-survey .survey-contacts {
        grid-template-columns: 1fr;
    }

    .reservoir-survey .range-field {
        gap: 12px;
    }

    .reservoir-survey .range-field__output {
        min-width: 60px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .reservoir-section--survey > .container {
        padding: 0 15px;
    }

    .reservoir-survey .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .reservoir-survey .btn.btn--primary.btn--full {
        padding: 12px 20px;
        font-size: 15px;
    }
}