/* Matches blackrockpoa.com/documents' captured design tokens (not the
   photo-hero home page): light/transparent header, near-black Montserrat
   nav and body text, Playfair Display for the big page heading, square-
   cornered dark green button. See output/documents-style-raw.json for the
   source measurements. */

:root {
  --ink: #1c1c1c;
  --ink-muted: rgba(28, 28, 28, 0.65);
  --page-bg: #f4f4f4;
  --border: #ddd;
  --button-bg: rgb(56, 72, 57);
  --button-text: #f9f9f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem 2rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.site-header.is-scrolled {
  background-color: var(--ink);
}

.site-brand {
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.site-header.is-scrolled .site-brand {
  color: var(--button-text);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.site-header.is-scrolled .site-nav a {
  color: var(--button-text);
}

.site-nav a:hover {
  text-decoration: underline;
}

.page-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 2.8rem;
  color: var(--ink);
  margin: 1rem 1.5rem 2.5rem;
}

.form-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.form-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page[hidden] {
  display: none;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.75rem 0;
}

.progress-circle {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  flex-shrink: 0;
}

.progress-circle.current {
  border-color: var(--button-bg);
}

.progress-circle.done {
  background: var(--button-bg);
  border-color: var(--button-bg);
}

.progress-line {
  width: 3rem;
  max-width: 8vw;
  height: 2px;
  background: var(--border);
}

.progress-line.done {
  background: var(--button-bg);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section + .section {
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section[hidden] {
  display: none;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-group[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-weight: 500;
  font-size: 0.95rem;
}

.field input[type="text"],
.field input[type="date"],
.field input[type="file"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.field-content h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.field-content p {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}

.field-content p a {
  color: var(--ink);
  text-decoration: underline;
}

.field-content h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 1.1rem 0 0;
}

.field-content h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0.3rem 0 0;
}

.block-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-content ul {
  margin: 0;
  padding-left: 1.3rem;
  line-height: 1.5;
}

.field-content li {
  color: var(--ink);
}

.field-content li a {
  color: var(--ink);
  text-decoration: underline;
}

.field-hint {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.file-list:empty {
  display: none;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
}

.file-list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list-remove {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.file-list-remove:hover {
  border-color: var(--ink);
  background: var(--border);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}

.form-nav {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 2rem;
  border-radius: 0;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--button-bg);
  color: var(--button-text);
  margin-left: auto;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
}
