.survey-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.survey-done-card .survey-done-detail {
    margin-top: 0.75rem;
    line-height: 1.55;
}

.survey-done-card .survey-step-lead {
    margin-bottom: 0;
}

.survey-form-error {
    margin: 0 0 1rem;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fde8e8;
    color: #8f1d1d;
    font-weight: 600;
    font-size: 0.92rem;
}

.survey-rating-item .survey-rating-comment {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1px solid var(--border, #d1d5db);
    resize: vertical;
    min-height: 2.5rem;
}

.survey-rating-item .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.survey-radio-grid label:has(input:checked) {
    border-color: var(--primary);
    background: #eef4ff;
}

.survey-q-num {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary, #1d4ed8);
}

.survey-sans-avis {
    width: auto !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
    height: 42px;
}

.survey-recap-submit {
    width: 100%;
    margin-top: 1.25rem;
    padding: 14px 20px;
    font-size: 1rem;
}

.survey-panel:not(.active) .survey-recap-submit {
    display: none;
}

.survey-actions-recap #surveyNext {
    display: none;
}

.survey-actions-recap #surveySubmit {
    flex: 1;
    max-width: 100%;
}

.survey-lang {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.survey-lang button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.survey-lang button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.survey-progress {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 1.25rem;
}

.survey-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #22c55e);
    transition: width 0.25s ease;
}

.survey-step-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.survey-step-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.survey-panel {
    display: none;
}

.survey-panel.active {
    display: block;
}

.survey-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.survey-check-grid {
    display: grid;
    gap: 0.65rem;
}

.survey-check-grid label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: var(--surface);
}

.survey-check-grid input {
    margin-top: 0.2rem;
}

.survey-rating-row {
    display: grid;
    gap: 1rem;
}

.survey-rating-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.survey-stars {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.survey-stars button {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 700;
    cursor: pointer;
}

.survey-stars button.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.survey-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.survey-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.survey-summary dt {
    font-weight: 700;
    margin-top: 0.65rem;
}

.survey-summary dd {
    margin: 0.15rem 0 0;
    color: var(--muted);
}

html[dir="rtl"] .survey-actions {
    flex-direction: row-reverse;
}

@media (max-width: 640px) {
    .survey-grid-2 {
        grid-template-columns: 1fr;
    }
}
