/* ============================================================
   ОПРОСНИК КЛИЕНТА — СТИЛИ В СТИЛЕ САЙТА
   ============================================================ */

/* ===== ОБЩИЕ ===== */
.oprosnik-page {
    max-width: 900px;
    margin: 180px auto 40px;
    padding: 0 20px 40px;
    min-height: 60vh;
}

/* ===== ЗАГОЛОВОК ===== */
.oprosnik-header {
    text-align: center;
    margin-bottom: 40px;
}
.oprosnik-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8B6FC4;
    margin-bottom: 16px;
    display: block;
}
.oprosnik-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4em;
    color: #1A1A2E;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
}
.oprosnik-header p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.oprosnik-note {
    font-size: 12px;
    color: #9090B0;
    margin-bottom: 30px;
    text-align: center;
}
.oprosnik-note span {
    color: #d32f2f;
}

/* ===== СЕКЦИИ ===== */
.op-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    border: 1px solid #f0edf8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.op-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8B6FC4;
    margin-bottom: 4px;
    display: block;
}
.op-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 500;
    color: #1A1A2E;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0edf8;
}

/* ===== ПОЛЯ ===== */
.op-field {
    margin-bottom: 20px;
}
.op-field:last-child {
    margin-bottom: 0;
}
.op-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 6px;
    line-height: 1.5;
}
.op-field .op-num {
    color: #8B6FC4;
    font-weight: 700;
    margin-right: 4px;
}
.op-field .op-req {
    color: #d32f2f;
    margin-left: 2px;
}
.op-hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #9090B0;
    margin-top: 3px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.op-field input[type="text"],
.op-field input[type="email"],
.op-field input[type="tel"],
.op-field select,
.op-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e4e0f0;
    border-radius: 10px;
    background: #faf8ff;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #1A1A2E;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}
.op-field input:focus,
.op-field select:focus,
.op-field textarea:focus {
    border-color: #8B6FC4;
    background: #fff;
}
.op-field textarea {
    resize: vertical;
    line-height: 1.6;
    min-height: 60px;
}

/* ===== СЕТКА 2 КОЛОНКИ ===== */
.op-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.op-grid-2 .op-field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}
.op-grid-2 .op-field label {
    min-height: 42px;
    display: flex;
    align-items: flex-start;
}
.op-grid-2 .op-field input {
    height: 44px;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .op-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .op-grid-2 .op-field label {
        min-height: auto;
    }
    .op-grid-2 .op-field input {
        height: auto;
    }
}

/* ===== ШКАЛА 1-10 ===== */
.op-scale-wrap {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.op-scale-wrap input[type="radio"] {
    display: none;
}
.op-scale-wrap label {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e4e0f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4A4A6A;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    margin-bottom: 0;
    box-sizing: border-box;
}
.op-scale-wrap label:hover {
    border-color: #8B6FC4;
    color: #8B6FC4;
}
.op-scale-wrap input[type="radio"]:checked + label {
    background: #8B6FC4;
    border-color: #8B6FC4;
    color: #fff;
    box-shadow: 0 2px 8px rgba(139,111,196,0.3);
}
.op-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}
.op-scale-labels span {
    font-size: 11px;
    color: #9090B0;
}

/* ===== ЧЕКБОКСЫ / РАДИО ===== */
.op-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.op-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 2px 0;
    width: 100%;
    box-sizing: border-box;
}

.op-check-item input[type="checkbox"],
.op-check-item input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 1px 0 0 0;
    padding: 0;
    accent-color: #8B6FC4;
    flex-shrink: 0;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    position: relative;
    display: inline-block;
}

.op-check-item span {
    font-size: 14px;
    color: #1A1A2E;
    line-height: 1.5;
    flex: 1 1 auto;
    display: inline-block;
    padding: 0;
    margin: 0;
    word-break: break-word;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.op-divider {
    height: 1px;
    background: #f0edf8;
    margin: 40px 0;
}

/* ===== КНОПКА ===== */
.op-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8B6FC4, #C9456A);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(139,111,196,0.25);
}
.op-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,111,196,0.35);
}
.op-submit-btn:active {
    transform: scale(0.98);
}
.op-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== УСПЕХ ===== */
.op-success {
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0edf8;
    margin-top: 20px;
}
.op-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4CAF50;
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.op-success h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: #1A1A2E;
    margin-bottom: 8px;
}
.op-success p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 600px) {
    .oprosnik-page {
        margin-top: 140px;
        padding: 0 12px 30px;
    }
    .oprosnik-header h1 {
        font-size: 1.8em;
    }
    .oprosnik-header p {
        font-size: 13px;
    }
    .op-section {
        padding: 20px 16px 18px;
        margin-bottom: 20px;
    }
    .op-section-title {
        font-size: 17px;
        margin-bottom: 16px;
    }
    .op-field label {
        font-size: 13px;
    }
    .op-check-item span {
        font-size: 13px;
    }
    .op-check-item {
        gap: 8px;
    }
    .op-check-item input[type="checkbox"],
    .op-check-item input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        margin-top: 1px;
    }
    .op-scale-wrap label {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .op-submit-btn {
        font-size: 14px;
        padding: 14px;
    }
}