:root {
  color-scheme: light;
  --ink: #1d3557;
  --muted: #5f6b78;
  --line: #d8d3c8;
  --paper: #fbfaf7;
  --accent: #9a6b2f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: #20252b;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

a { color: var(--ink); }

.brand {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: .01em;
}

h1 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 34px;
}

.access-note {
  border-left: 4px solid var(--accent);
  background: #f4efe6;
  color: #3e4650;
  padding: 12px 15px;
  margin: 0 0 28px;
}

form,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 5vw, 38px);
  box-shadow: 0 12px 34px rgba(29, 53, 87, .07);
}

.panel h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.panel .intro { margin-bottom: 24px; }

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}

legend {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

label {
  display: block;
  color: var(--ink);
  font-weight: 680;
  margin: 0 0 15px;
}

label span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 400;
  margin-top: 3px;
}

input[type=text],
input[type=email],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #aeb6be;
  border-radius: 7px;
  background: #fff;
  color: #20252b;
  font: inherit;
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(154, 107, 47, .2);
  border-color: var(--accent);
}

textarea { resize: vertical; }

.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.role-selector .role-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
  margin: 0;
  border: 1px solid #aeb6be;
  border-radius: 9px;
  padding: 13px;
  cursor: pointer;
}

.role-option:has(input:checked) {
  border-color: var(--accent);
  background: #f7f1e7;
  box-shadow: 0 0 0 2px rgba(154, 107, 47, .13);
}

.role-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.role-option span {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
}

.role-option strong,
.role-option small { display: block; }

.role-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.35;
}

.flow-intro {
  margin: -4px 0 26px;
  color: var(--muted);
}

.lawyer-flow {
  display: none;
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  background: #f4efe6;
  padding: 18px 20px;
}

.lawyer-flow h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font: 700 1.3rem/1.2 Georgia, serif;
}

.lawyer-flow p { margin: 0; }

.client-flow { display: none; }
form:has(#activation-role-client:checked) .client-flow { display: block; }
form:has(#activation-role-lawyer:checked) .lawyer-flow { display: block; }

@supports not selector(form:has(*)) {
  .client-flow { display: block; }
}

.confirm {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: #303942;
  font-weight: 500;
}

.confirm input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.confirm span {
  color: inherit;
  font-size: .94rem;
  margin: 0;
}

button,
.button-link {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: 700 1rem/1 system-ui, sans-serif;
  padding: 14px 20px;
  text-decoration: none;
}

button:hover,
.button-link:hover { background: #142944; }

.note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 18px;
}

.website {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .role-options,
  .role-selector .role-options { grid-template-columns: 1fr; }
}
