/* FimeBag onboarding pages. Brand: navy #0F172A, orange #F97316 / #EA580C, peach #FFF7ED. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111827; background: #F9FAFB; line-height: 1.6; }
a { color: #EA580C; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label.button:focus-within { outline: 3px solid #F97316; outline-offset: 2px; }

.site-header { background: #000000; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; position: sticky; top: 0; z-index: 10; }
.site-header .brand img { display: block; height: 48px; width: auto; }
.save-status { color: #E2E8F0; font-size: .85rem; margin: 0; text-align: right; }

.container { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.intro h1, .state h1 { font-size: 1.6rem; line-height: 1.25; margin: .5rem 0 .75rem; color: #0F172A; }
.notice { background: #FFF7ED; border-left: 4px solid #F97316; padding: .75rem 1rem; }
.state { text-align: center; padding-top: 2rem; }
.state img { display: block; margin: 0 auto 1rem; }

.form-section { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 10px; padding: 1.25rem; margin: 1.25rem 0; }
.form-section h2 { font-size: 1.2rem; color: #0F172A; margin: 0 0 1rem; }
.form-section h2 .step { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #EA580C; }

.question { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.question legend, .question-label { font-weight: 600; margin-bottom: .35rem; display: block; padding: 0; }
.req { color: #EA580C; }
.hint { color: #4B5563; font-size: .9rem; margin: .25rem 0 .5rem; }
.error { color: #EF4444; font-size: .9rem; margin: .25rem 0 0; min-height: 0; }
.error:empty { margin: 0; }

.field { display: block; margin-bottom: .75rem; }
.field > span { display: block; font-size: .95rem; margin-bottom: .25rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], textarea {
  width: 100%; font: inherit; color: inherit; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 8px; padding: .65rem .75rem; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: #F97316; }

.choices { display: grid; gap: .4rem; }
.choice { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .75rem; border: 1px solid #E2E8F0; border-radius: 8px; background: #FFFFFF; cursor: pointer; min-height: 44px; }
.choice input { margin-top: .3rem; accent-color: #F97316; width: 1.1rem; height: 1.1rem; flex: none; }
.choice:has(input:checked) { border-color: #F97316; background: #FFF7ED; }

.dropzone { border: 2px dashed #E2E8F0; border-radius: 10px; padding: 1.25rem; text-align: center; background: #FFFFFF; }
.dropzone.dragging { border-color: #F97316; background: #FFF7ED; }
.dropzone p { margin: .25rem 0; }
.file-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border: 1px solid #E2E8F0; border-radius: 8px; margin-bottom: .4rem; background: #FFFFFF; overflow-wrap: anywhere; }

.button { display: inline-block; font: inherit; font-weight: 600; color: #FFFFFF; background: #0F172A; border: 0; border-radius: 8px; padding: .75rem 1.25rem; cursor: pointer; min-height: 44px; text-decoration: none; }
.button:hover { background: #EA580C; }
.button.secondary { background: #F97316; }
.button.secondary:hover { background: #EA580C; }
.button[disabled] { opacity: .6; cursor: wait; }
.link-button { background: none; border: 0; color: #EA580C; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.actions { text-align: right; }

.review-list dt { font-weight: 600; color: #4B5563; font-size: .9rem; margin-top: .75rem; }
.review-list dd { margin: .15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-list h3 { font-size: 1rem; color: #0F172A; border-bottom: 2px solid #F97316; padding-bottom: .25rem; margin: 1.25rem 0 .25rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-footer { background: #0F172A; color: #E2E8F0; font-size: .85rem; padding: 1.5rem 1rem; text-align: center; }
.site-footer p { margin: .35rem 0; }
.site-footer a { color: #F97316; }

@media (max-width: 480px) {
  .site-header .brand img { height: 36px; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
