/* Survey System — Public Styles */
.survsys-form-wrap {
    max-width: 760px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}
.survsys-form-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #f0f2f5; }
.survsys-form-title { margin: 0 0 .5rem; font-size: 1.75rem; line-height: 1.3; }
.survsys-form-desc { color: #4b5563; }
.survsys-progress { height: 6px; background: #f0f2f5; border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
.survsys-progress-bar { height: 100%; background: linear-gradient(90deg, #2563eb, #4f46e5); transition: width .3s ease; }
.survsys-questions { list-style: none; padding: 0; margin: 0; }
.survsys-question { padding: 1.25rem 0; border-bottom: 1px solid #f0f2f5; }
.survsys-question:last-child { border-bottom: none; }
.survsys-question-label { display: block; font-weight: 600; margin-bottom: .75rem; color: #111827; }
.survsys-q-num { color: #6b7280; margin-right: .25rem; }
.survsys-required { color: #dc2626; }
.survsys-input, .survsys-textarea, .survsys-select {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.survsys-input:focus, .survsys-textarea:focus, .survsys-select:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.survsys-options { display: flex; flex-direction: column; gap: .5rem; }
.survsys-yesno { flex-direction: row; gap: 1rem; }
.survsys-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.survsys-option:hover { background: #f9fafb; border-color: #d1d5db; }
.survsys-option input { margin: 0; }
.survsys-rating { display: inline-flex; gap: .25rem; }
.survsys-star { cursor: pointer; font-size: 2rem; line-height: 1; color: #d1d5db; }
.survsys-star input { display: none; }
.survsys-star.is-selected, .survsys-star.is-hover { color: #f59e0b; }
.survsys-scale { display: flex; flex-wrap: wrap; gap: .5rem; }
.survsys-scale-item {
    flex: 1 1 0;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .65rem .25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}
.survsys-scale-item input { display: none; }
.survsys-scale-item.is-selected { background: #2563eb; color: #fff; border-color: #2563eb; }
.survsys-nomination { display: flex; flex-direction: column; gap: .65rem; }
.survsys-section h3 { margin: 1rem 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid #2563eb; }
.survsys-actions { margin-top: 1.5rem; text-align: right; }
.survsys-submit {
    background: #2563eb;
    color: #fff;
    padding: .75rem 1.75rem;
    border: 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.survsys-submit:hover { background: #1d4ed8; }
.survsys-submit:disabled { opacity: .6; cursor: wait; }
.survsys-message { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; }
.survsys-message.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.survsys-message.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.survsys-error, .survsys-notice {
    padding: 1rem;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    text-align: center;
}
.survsys-question.has-error .survsys-input,
.survsys-question.has-error .survsys-textarea,
.survsys-question.has-error .survsys-select { border-color: #dc2626; }
@media (max-width: 600px) {
    .survsys-form-wrap { padding: 1.25rem; margin: 1rem; }
    .survsys-form-title { font-size: 1.35rem; }
    .survsys-scale-item { min-width: 36px; padding: .5rem .15rem; }
}

/* Multi-page survey flow */
.survsys-page { display: none; }
.survsys-page.is-active { display: block; }
.survsys-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
}
.survsys-prev,
.survsys-next {
    padding: .75rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.survsys-prev {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.survsys-prev:hover { background: #f9fafb; border-color: #9ca3af; }
.survsys-next {
    background: #2563eb;
    color: #fff;
    border: 0;
}
.survsys-next:hover { background: #1d4ed8; }
@media (max-width: 600px) {
    .survsys-actions { flex-wrap: wrap; }
    .survsys-prev,
    .survsys-next,
    .survsys-submit { width: 100%; }
}

/* Section-based survey pages */
.survsys-page-heading {
    margin: 0 0 1.25rem;
    padding: 0 0 .75rem;
    border-bottom: 1px solid #eef2f7;
}
.survsys-page-heading h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.35;
    color: #007cba;
    font-weight: 700;
}
