@import url('https://fonts.googleapis.com/css2?family=GFS+Didot&family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --midnight: #07101f;
  --midnight-2: #0c1830;
  --cobalt: #2258ff;
  --cobalt-soft: #7ea0ff;
  --ink: #10213b;
  --muted: #67758b;
  --paper: #f6f8fc;
  --white: #ffffff;
  --line: #dce3ef;
  --success: #197a52;
  --danger: #b73b3b;
  --shadow: 0 18px 50px rgba(7, 16, 31, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(34,88,255,.14), transparent 34rem),
    linear-gradient(180deg, #eef3ff 0, var(--paper) 18rem, var(--paper) 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, input, textarea { min-height: 48px; }

.shell { width: min(100% - 28px, 760px); margin: 0 auto; padding: 22px 0 44px; }
.brand {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0 22px;
}
.wordmark { color: var(--midnight); letter-spacing: .18em; font-weight: 700; font-size: .92rem; }
.brand-sub { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.badge { border: 1px solid rgba(34,88,255,.22); color: var(--cobalt); background: rgba(255,255,255,.7); padding: 8px 10px; border-radius: 999px; font-size: .75rem; }

.hero { padding: 18px 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--cobalt); }
h1, h2 { font-family: 'GFS Didot', Georgia, serif; font-weight: 400; color: var(--midnight); margin: 8px 0 10px; }
h1 { font-size: clamp(2.25rem, 9vw, 4.2rem); line-height: .95; }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.lede { color: var(--muted); line-height: 1.6; margin: 0; max-width: 40rem; }

.card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(16,33,59,.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 18px;
}
.choice-grid { display: grid; gap: 14px; margin-top: 20px; }
.choice {
  display: block; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--white);
  transition: transform .15s ease, border-color .15s ease;
}
.choice:active { transform: scale(.99); }
.choice strong { display: block; color: var(--midnight); font-size: 1.1rem; margin-bottom: 5px; }
.choice span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.choice.primary { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.choice.primary strong, .choice.primary span { color: var(--white); }
.choice.primary span { opacity: .72; }

.co-brand {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.altman-placeholder { font-weight: 700; letter-spacing: .04em; color: #3b6d3f; font-size: .86rem; }
.altman-placeholder small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; letter-spacing: 0; }
.back { color: var(--cobalt); font-weight: 600; font-size: .88rem; }

.form-grid { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.optional { color: var(--muted); font-weight: 400; }
select, input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); padding: 12px 14px;
  outline: none;
}
select:focus, input:focus, textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(34,88,255,.1); }
textarea { min-height: 110px; resize: vertical; }

.button {
  border: 0; border-radius: 15px; padding: 13px 18px; min-height: 52px; font-weight: 700; cursor: pointer;
  background: var(--midnight); color: var(--white); width: 100%;
}
.button.secondary { background: #e9eef8; color: var(--ink); }
.button.ghost { background: transparent; color: var(--cobalt); border: 1px solid var(--line); }
.button:disabled { opacity: .55; cursor: wait; }

.status { display: none; padding: 13px 14px; border-radius: 13px; line-height: 1.45; font-size: .9rem; }
.status.show { display: block; }
.status.error { background: #fff0f0; color: var(--danger); border: 1px solid #f2cece; }
.status.success { background: #edf9f3; color: var(--success); border: 1px solid #cde9da; }

.confirmation { display: none; text-align: center; padding: 18px 0 4px; }
.confirmation.show { display: block; }
.check { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 12px; background: #edf9f3; color: var(--success); font-size: 1.7rem; }
.confirmation-actions { display: grid; gap: 10px; margin-top: 20px; }

.bulk-row { border: 1px solid var(--line); border-radius: 17px; padding: 14px; margin-top: 12px; position: relative; }
.bulk-row.invalid { border-color: var(--danger); background: #fffafa; }
.bulk-row-grid { display: grid; gap: 10px; }
.row-tools { display: flex; justify-content: flex-end; margin-top: 8px; }
.remove-row { background: none; border: 0; color: var(--muted); min-height: auto; padding: 5px; cursor: pointer; }
.bulk-actions { display: grid; gap: 10px; margin-top: 16px; }

.footer { text-align: center; color: var(--muted); font-size: .76rem; padding-top: 28px; }

@media (min-width: 640px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px; }
  .bulk-row-grid { grid-template-columns: 160px 160px 1fr; align-items: end; }
  .confirmation-actions, .bulk-actions { grid-template-columns: 1fr 1fr; }
}
