/* signup.vb.media – one stylesheet for every page. No inline styles anywhere. */

:root {
  --ink: #1b1b3a;
  --ink-soft: #55566e;
  --line: #e3e3ec;
  --bg: #f6f6fa;
  --card: #ffffff;
  --brand: #d4145a;
  --brand-dark: #a80f47;
  --brand-tint: #fdeef4;
  --ok: #157f3b;
  --warn-bg: #fff6e0;
  --warn-line: #f2c14e;
  --error: #b3261e;
  --error-bg: #fdecea;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2 { line-height: 1.2; margin: 0; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.is-hidden { display: none !important; }

/* Header / footer */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo img { display: block; height: 40px; width: auto; }
.header-link { font-weight: 600; text-decoration: none; }

.site-footer {
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.site-footer p { margin: 0; }

/* Intro */
.intro { padding: 40px 0 24px; max-width: 640px; }
.intro h1 { font-size: 2rem; letter-spacing: -0.01em; }
.intro p { margin: 8px 0 0; color: var(--ink-soft); }

/* Notices */
.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

.errors {
  border: 1px solid var(--error);
  background: var(--error-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.errors h2 { font-size: 1rem; color: var(--error); }
.errors ul { margin: 8px 0 0; padding-left: 20px; }
.errors a { color: var(--error); }

/* Layout */
.signup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .signup { grid-template-columns: minmax(0, 1fr) 320px; }
  .summary { position: sticky; top: 24px; }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card + .card { margin-top: 16px; }
.card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
}
.step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
}
.hint { margin: 4px 0 0 40px; color: var(--ink-soft); font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.875em; }

/* Fields */
.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 600px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field input {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 11px 12px;
  border: 1px solid #c9c9d6;
  border-radius: 8px;
  background: #fff;
}
.field input:focus {
  outline: 3px solid var(--brand-tint);
  border-color: var(--brand);
}
.field.has-error input { border-color: var(--error); }
.field-error { margin: 6px 0 0; color: var(--error); font-size: 0.875rem; font-weight: 600; }
.help { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.875rem; }
.help.is-ok { color: var(--ok); font-weight: 600; }

/* Option cards (radios) */
.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}
@media (min-width: 600px) {
  .options-2 { grid-template-columns: 1fr 1fr; }
  .options-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.option { position: relative; display: block; cursor: pointer; }
.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, background-color 0.15s;
}
.option:hover .option-body { border-color: #c4c4d4; }
.option input:checked + .option-body {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.option input:focus-visible + .option-body { outline: 3px solid var(--brand); outline-offset: 2px; }
.option-name { font-weight: 700; }
.option-price { font-size: 1.375rem; font-weight: 700; }
.option-price small { font-size: 0.875rem; font-weight: 400; color: var(--ink-soft); }

/* Terms */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}
.captcha { margin-top: 20px; min-height: 78px; }

/* Summary */
.summary-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.summary-card h2 { font-size: 1.125rem; }
.summary-card dl { margin: 16px 0 0; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.summary-row dt { font-weight: 600; }
.summary-row dt small,
.summary-row dd small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}
.summary-row dd { margin: 0; text-align: right; font-size: 1.25rem; font-weight: 700; }
.summary-note { margin: 4px 0 0; color: #ffd2e2; font-size: 0.875rem; font-weight: 600; }
.summary-small { margin: 12px 0 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }

.button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--brand-dark); color: #fff; }
.button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.button-inline { display: inline-block; width: auto; }

/* Message pages (submitted, error, mandate signed) */
.message {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.message h1 { font-size: 1.75rem; }
.message p { margin: 12px 0 0; }
.message .button { margin-top: 24px; }
