@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ic-brand: #670460;
  --ic-brand-dark: #4a0345;
  --ic-brand-light: #f3e8f2;
  --ic-accent: #cb5cff;
  --ic-ink: #0f172a;
  --ic-body: #334155;
  --ic-muted: #64748b;
  --ic-line: #e2e8f0;
  --ic-surface: #ffffff;
  --ic-surface-2: #f8fafc;
  --ic-radius: 12px;
  --ic-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --ic-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ic-font);
  color: var(--ic-body);
  background: linear-gradient(180deg, #f8fafc 0%, #f3e8f2 100%);
  min-height: 100vh;
}
.bf-top { background: var(--ic-ink); color: #fff; }
.bf-top-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.bf-top strong { font-size: 18px; letter-spacing: -0.02em; }
.bf-top span { color: rgba(255,255,255,.72); font-size: 13px; }
.bf-wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; }
.bf-card {
  background: var(--ic-surface);
  border-radius: 20px;
  box-shadow: var(--ic-shadow);
  padding: 28px 22px 22px;
  border-top: 6px solid var(--ic-brand);
}
.bf-kicker {
  margin: 0 0 8px;
  color: var(--ic-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 { margin: 0 0 8px; color: var(--ic-ink); font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }
.bf-lead { margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
.bf-errors { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.bf-errors ul { margin: 8px 0 0; padding-left: 18px; }
.bf-step { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--ic-brand); text-transform: uppercase; letter-spacing: .06em; }
.bf-step span { display: block; margin-top: 4px; color: var(--ic-ink); font-size: 18px; letter-spacing: 0; text-transform: none; }
.bf-field { margin: 0 0 16px; }
.bf-field[hidden] { display: none !important; }
.bf-field h2 { margin: 8px 0 6px; font-size: 20px; color: var(--ic-ink); letter-spacing: -0.02em; }
.bf-copy, .bf-help, .bf-retention { color: var(--ic-muted); font-size: 14px; line-height: 1.5; }
.bf-field label { display: block; font-weight: 600; color: var(--ic-ink); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ic-ink);
  border: 1px solid var(--ic-line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ic-accent); border-color: var(--ic-brand); }
.bf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-address input { margin-bottom: 8px; }
.bf-choices { display: grid; gap: 8px; }
.bf-choice, .bf-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.bf-choice input, .bf-check input { width: auto; margin-top: 3px; }
.bf-terms { max-height: 180px; overflow: auto; border: 1px solid var(--ic-line); border-radius: 10px; padding: 10px 12px; background: var(--ic-surface-2); margin-bottom: 8px; }
.bf-sign { border: 1px dashed var(--ic-brand); border-radius: 12px; background: #fff; padding: 8px; }
.bf-pad { width: 100%; height: 180px; touch-action: none; background: #fff; border-radius: 8px; }
.bf-clear, .bf-geo-btn, .bf-back {
  border: 1px solid var(--ic-line);
  background: #fff;
  color: var(--ic-ink);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bf-geo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bf-geo-status { font-size: 13px; color: var(--ic-muted); }
.bf-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.bf-form[data-pages="1"] .bf-next,
.bf-form[data-pages="1"] .bf-back { display: none; }
.bf-next, .bf-submit {
  background: var(--ic-brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(103, 4, 96, 0.35);
}
.bf-next:hover, .bf-submit:hover { background: var(--ic-brand-dark); }
.bf-consent { margin: 8px 0 16px; }
.bf-ref { font-weight: 700; color: var(--ic-brand); }
.bf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bf-embed { background: transparent; }
.bf-embed .bf-wrap { padding: 8px; }
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .bf-top-inner { flex-direction: column; }
  .bf-split { grid-template-columns: 1fr; }
  .bf-actions { flex-direction: column-reverse; }
  .bf-actions button { width: 100%; }
}
