.ki-survey {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 30px 20px;
    margin: 0;
    box-sizing: border-box;
}

.ki-survey strong {
    font-weight: 600;
}

.ki-survey .ki-survey-container {
    max-width: 1000px;
    margin: 0 auto;
}

.ki-survey .header {
    text-align: center;
    margin-bottom: 28px;
    background: white;
    padding: 28px 20px;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ki-survey .header h1 {
    color: #1166ac;
    font-size: 1.9rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.ki-survey .header .badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1166ac;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    margin-top: 8px;
}

.ki-survey .header p {
    color: #4b5563;
    max-width: 720px;
    margin: 14px auto 0;
    line-height: 1.5;
}

.ki-survey .survey-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.ki-survey .form-content {
    padding: 32px 34px;
}

.ki-survey .question {
    display: none;
    animation: kiFadeIn 0.35s ease;
}

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

.ki-survey .question.active {
    display: block;
}

.ki-survey .question h3 {
    all: unset;
    font-size: 1.5rem;
    color: #1e2a3a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ki-survey .question h3 i {
    color: #1166ac;
    font-size: 1.6rem;
}

.ki-survey .question-desc {
    color: #5e6f8d;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e9f0;
    font-size: 0.9rem;
}

.ki-survey .options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ki-survey .option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #fafcff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.ki-survey .option-item:hover {
    background: #f1f5f9;
    border-color: #1166ac;
    transform: translateX(4px);
}

.ki-survey .option-item input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1166ac;
    margin: 0;
}

.ki-survey .option-item span {
    flex: 1;
    font-size: 1rem;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
}

.ki-survey .multi-column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.ki-survey .input-field {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    font-size: 1rem;
    margin: 12px 0 8px;
    transition: 0.2s;
    font-family: inherit;
}

.ki-survey .input-field:focus {
    outline: none;
    border-color: #1166ac;
    box-shadow: 0 0 0 3px rgba(17, 102, 172, 0.1);
}

.ki-survey textarea.input-field {
    resize: vertical;
    min-height: 80px;
}

.ki-survey .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    gap: 18px;
}

.ki-survey .btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.ki-survey .btn-primary {
    background: #1166ac;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ki-survey .btn-primary:hover {
    background: #0a4a7c;
    transform: translateY(-2px);
}

.ki-survey .btn-secondary {
    background: #e2e8f0;
    color: #2c3e50;
}

.ki-survey .btn-secondary:hover {
    background: #cbd5e1;
}

.ki-survey .error-msg {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

/* Капча xsukax */
.ki-survey .captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.ki-survey .captcha-overlay.active {
    visibility: visible;
    opacity: 1;
}

.ki-survey .captcha-card {
    background: white;
    border-radius: 32px;
    max-width: 450px;
    width: 90%;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
}

.ki-survey .captcha-card h3 {
    color: #1166ac;
    margin-bottom: 20px;
}

.ki-survey .captcha-card .x-captcha {
    margin: 15px auto;
    display: flex;
    justify-content: center;
}

.ki-survey .captcha-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.ki-survey .result-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: none;
    text-align: center;
}

.ki-survey .result-card h3 {
    all: unset;
    font-weight: 600;
    display: flow;
}

.ki-survey .result-card i {
    font-size: 3rem;
    color: #2c7a4d;
    margin-bottom: 15px;
}

.ki-survey .restore-banner {
    background: #eef4ff;
    border: 1px solid #bdd3ff;
    border-radius: 20px;
    padding: 15px 22px;
    margin-bottom: 22px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.ki-survey .restore-banner p {
    margin: 0;
    color: #0050b3;
}

.ki-survey .restore-banner button {
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}

.ki-survey .restore-banner button:first-child {
    background: #1166ac;
    color: white;
}

.ki-survey .restore-banner button:last-child {
    background: #e2e8f0;
    color: #2c3e50;
}

.ki-survey .filling-note {
    background: #f8f9fa;
    border-left: 4px solid #1166ac;
    padding: 14px 18px;
    margin-top: 25px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
}

.ki-survey .filling-note i {
    color: #1166ac;
    margin-right: 8px;
}

.ki-survey .filling-note .note-symbol {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 2px;
}


@media (max-width: 650px) {
    .ki-survey {
        padding: 20px 15px;
    }

    .ki-survey .form-content {
        padding: 20px;
    }

    .ki-survey .multi-column {
        grid-template-columns: 1fr;
    }

    .ki-survey .button-group {
        flex-direction: column;
    }

    .ki-survey .btn {
        justify-content: center;
    }

    .ki-survey .question h3 {
        font-size: 1.3rem;
    }
}