/* Questionario dopo il primo viaggio salvato (static/js/19-feedback.js). */
.fb-overlay {
    position: fixed; inset: 0; z-index: 10050;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(8, 19, 31, 0.55);
}
.fb-card, .feedback-page #feedback-root {
    position: relative; width: 100%; max-width: 480px;
    background: var(--surface-card, #fff); color: var(--text-primary, #0f172a);
    border-radius: 18px; padding: 28px 22px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 32px); overflow-y: auto;
}
.fb-close {
    position: absolute; top: 10px; right: 12px;
    width: 36px; height: 36px; border: 0; background: transparent;
    font-size: 24px; line-height: 1; color: inherit; cursor: pointer;
}
.fb-intro, .fb-thanks { font-size: 1.05rem; line-height: 1.5; margin: 0 0 18px; }
.fb-title { font-size: 1.15rem; margin: 10px 0 14px; }
.fb-hint { font-size: 0.85rem; opacity: 0.75; margin: -6px 0 10px; }
.fb-progress { display: block; margin-bottom: 4px; }
.fb-progress-text { font-size: 0.8rem; opacity: 0.7; }
.fb-progress-bar {
    display: block; height: 4px; margin-top: 6px; border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-sky, #00a8e8), var(--primary-green, #3ddc84));
    transition: width 0.25s ease;
}
.fb-options { display: flex; flex-direction: column; gap: 8px; }
.fb-option {
    min-height: 44px; padding: 10px 14px; text-align: left;
    border: 1.5px solid var(--border-light, #e2e8f0); border-radius: 12px;
    background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.fb-option[aria-pressed="true"] {
    border-color: var(--primary-sky, #00a8e8);
    background: rgba(0, 168, 232, 0.1); font-weight: 600;
}
.fb-text {
    width: 100%; min-height: 96px; padding: 10px 12px; font: inherit; color: inherit;
    border: 1.5px solid var(--border-light, #e2e8f0); border-radius: 12px; background: transparent;
}
.fb-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.fb-actions [data-fb="next"] { margin-left: auto; }
.feedback-btn {
    display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 10px 16px;
    border: 1.5px solid var(--border-light, #e2e8f0); border-radius: 50px;
    background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
    text-align: center; text-decoration: none;
}
.fb-actions .feedback-btn { width: auto; margin-top: 0; }
.feedback-btn-primary {
    border: 0; color: #08131f;
    background: linear-gradient(90deg, var(--primary-sky, #00a8e8), var(--primary-green, #3ddc84));
}
.feedback-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.feedback-link {
    display: block; margin: 12px auto 0; border: 0; background: transparent;
    color: inherit; opacity: 0.7; text-decoration: underline; cursor: pointer; font: inherit;
}
.fb-actions .feedback-link { margin: 0; }
.fb-error { color: #dc2626; margin-top: 12px; }
.feedback-page { min-height: 100vh; background: var(--surface, #f8fafc); }
.feedback-page-main { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 32px 16px; }
.feedback-page-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: none; }
.feedback-page-logo img { width: 32px; height: 32px; }
.feedback-expired { max-width: 480px; text-align: center; }

/* «Viaggio salvato!» e «prove della beta finite» (spec 2026-10-15): stesso
   pannello del questionario; su telefono si appoggia in basso. */
.saved-card-icon { font-size: 2rem; line-height: 1; }
.saved-card-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.saved-card-list li { font-size: 1rem; line-height: 1.4; }
.fb-sheet a.feedback-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 600px) {
    .saved-card, .trials-card { align-items: flex-end; padding: 0; }
    .saved-card .fb-sheet, .trials-card .fb-sheet { max-width: none; border-radius: 18px 18px 0 0; }
}
