/* ── Survey response page ─────────────────────────────────────────── */

.survey-respond {
    max-width: 720px;
    margin: 0 auto;
}

.survey-respond .hr-detail-header {
    margin-bottom: 4px;
}

.survey-intro {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px 22px;
    margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
    .survey-intro { background: var(--color-surface-alt); }
}

.survey-intro-desc {
    color: var(--color-text-muted, #6b7280);
    margin: 0 0 12px;
    line-height: 1.5;
}

.survey-intro-desc:last-child {
    margin-bottom: 0;
}

.survey-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.survey-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

.survey-pill--anon {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.survey-progress-wrap {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 14px 22px;
    margin-bottom: 20px;
    position: sticky;
    top: 8px;
    z-index: 5;
}

@media (prefers-color-scheme: dark) {
    .survey-progress-wrap { background: var(--color-surface-alt); }
}

.survey-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 8px;
}

.survey-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.survey-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.35s ease;
}

/* ── Question cards ── */

.survey-question-card {
    background: var(--color-surface);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 22px 24px;
    margin-bottom: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .survey-question-card { background: var(--color-surface-alt); }
}

.survey-question-card--answered {
    border-color: rgba(34, 197, 94, 0.35);
}

.survey-question-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.survey-question-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-question-card--answered .survey-question-number {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.survey-question-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text, #1f2937);
    line-height: 1.4;
    margin: 0;
}

.survey-required-star {
    color: #ef4444;
    margin-left: 2px;
}

.survey-question-body {
    margin-left: 40px;
}

/* Open ended */
.survey-textarea {
    width: 100%;
    border: 1.5px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    padding: 12px 14px;
    font-size: 14.5px;
    resize: vertical;
    background: var(--color-surface);
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.survey-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Choice options (radio / yes-no / multiple choice) rendered as selectable cards */
.survey-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey-choice-list--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.survey-choice-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.survey-choice-list--row .survey-choice-option {
    flex: 1 1 160px;
}

.survey-choice-option:hover {
    border-color: #a5b4fc;
    background: rgba(99, 102, 241, 0.04);
}

.survey-choice-option input[type="radio"] {
    accent-color: #6366f1;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.survey-choice-option--selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.07);
}

/* Dropdown */
.survey-select {
    width: 100%;
    border: 1.5px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    padding: 11px 14px;
    font-size: 14.5px;
    background: var(--color-surface);
    color: inherit;
}

.survey-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Rating */
.survey-rating-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.survey-rating-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border, #e2e8f0);
    background: var(--color-surface);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    transition: all 0.15s ease;
}

.survey-rating-btn:hover {
    border-color: #fbbf24;
}

.survey-rating-btn--selected {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #f59e0b;
    color: #fff;
    transform: scale(1.08);
}

/* Submit bar */
.survey-submit-bar {
    display: flex;
    justify-content: flex-end;
    padding: 4px 2px 24px;
}

.survey-submit-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md, 10px);
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.survey-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.survey-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Completed / closed state */
.survey-complete-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px 24px;
    text-align: center;
}

.survey-complete-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.survey-complete-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.survey-complete-sub {
    color: var(--color-text-muted, #6b7280);
    margin: 0;
}
