:root {
  --brand: #FF661D;
  --brand-dark: #E0540F;
  --brand-50: #fff3ec;
  --brand-100: #ffe0d1;
  --ink: #1f2430;
  --grey: #5b6270;
  --line: #ece6e2;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #fdf8f5; color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 120px; min-height: 100vh; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 90vh; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.logo { font-weight: 800; font-size: 20px; color: #1f2430; letter-spacing: -0.5px; text-transform: uppercase; }

.progress { height: 8px; width: 100%; background: var(--brand-100); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.stepcount { font-size: 12px; color: var(--grey); margin: 8px 0 0; }
h1.title { font-size: 26px; font-weight: 800; margin: 12px 0 20px; }

.field { margin-bottom: 20px; }
label.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lbl .opt { font-weight: 400; color: #aaa; }
.hint { font-size: 12px; color: var(--grey); margin: 0 0 6px; }
.err { color: #dc2626; font-size: 13px; margin-top: 4px; }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=month], select, textarea {
  width: 100%; border: 1px solid #cfd4dc; border-radius: 12px; padding: 12px 14px; font-size: 16px;
  background: #fff; outline: none; transition: border .15s, box-shadow .15s; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
textarea { resize: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; border: 1px solid #cfd4dc; background: #fff; color: #374151;
  border-radius: 99px; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none;
  transition: transform .05s; }
.chip:active { transform: scale(.96); }
.chip.on { border-color: var(--brand); background: var(--brand-100); color: #7a2e0a; }

.card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.rowflex { display: flex; gap: 12px; }
.rowflex > * { flex: 1; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.checkbox span { font-size: 14px; color: #374151; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  padding: 13px 22px; font-size: 16px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .05s, background .15s; font-family: inherit; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: #374151; border-color: #cfd4dc; }
.btn-block { width: 100%; }

.navbar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.navbar .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; padding: 12px 16px; }

.langbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfd4dc; background: #fff;
  border-radius: 99px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.langmenu { position: absolute; right: 16px; margin-top: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px 0; z-index: 30; min-width: 170px; }
.langmenu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none;
  padding: 10px 16px; font-size: 14px; text-align: left; cursor: pointer; }
.langmenu button:hover { background: var(--brand-50); }

.success { background: #ecfdf3; color: #15803d; border-radius: 12px; padding: 12px; font-size: 14px; margin-top: 12px; }
.bigemoji { width: 64px; height: 64px; border-radius: 99px; background: var(--brand-100); display: flex;
  align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 12px; }
.muted { color: var(--grey); font-size: 14px; }
.link-remove { color: #dc2626; font-size: 13px; background: none; border: 0; cursor: pointer; padding: 4px 0; }
