/* Мини-апп регистрации на ДК — стиль основного сайта bilet.fut.ru
   (FutureToday DS: тёплая бумага, оранжевый #F27F3D, скругления 16px,
   pill-кнопки). Токены скопированы из public/css/styles.css сервиса. */

:root {
  --bg: #FBF8F5;
  --surface: #ffffff;
  --surface-2: #F4EEE7;
  --text: #1F160F;
  --muted: #847A6E;
  --border: #E2DAD1;
  --accent: #F27F3D;
  --accent-hover: #E36A29;
  --accent-soft: #FFF4EC;
  --danger: #D8452F;
  --radius: 16px;
  color-scheme: light;
}
/* Тёмная тема — включается из app.js по Telegram.WebApp.colorScheme */
:root[data-theme="dark"] {
  --bg: #16110D;
  --surface: #211A14;
  --surface-2: #2C231B;
  --text: #F0EAE3;
  --muted: #9C9086;
  --border: #372C22;
  --accent: #F5934F;
  --accent-hover: #F9B180;
  --accent-soft: #2E1D10;
  --danger: #FF7A64;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 28px; }

.head { text-align: center; margin-bottom: 18px; }
.kicker {
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
h1 { font-size: 24px; margin: 0 0 6px; line-height: 1.25; }
.sub { color: var(--muted); margin: 0; font-size: 14px; }

form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: grid;
  gap: 14px;
}

.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 13.5px; }

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 127, 61, 0.15);
}
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.consent { display: flex; gap: 10px; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.consent a { color: var(--accent-hover); text-decoration: none; font-weight: 500; }
.consent a:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  background: var(--accent); color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(242, 127, 61, 0.30);
  transition: background 0.2s ease, transform 0.12s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.outline { background: transparent; color: var(--text); border-color: #6B6156; box-shadow: none; }
:root[data-theme="dark"] .btn.outline { border-color: #8A7E72; }

.err { color: var(--danger); font-size: 12.5px; display: none; }
.err.show { display: block; }
.msg {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  background: var(--accent-soft);
  color: var(--danger);
}

.success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.success h2 { margin: 0 0 10px; font-size: 21px; }
.success p { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 16px; }
.foot a { color: var(--accent-hover); text-decoration: none; }
