/* Engagement brief */

.engagement-main {
  padding: clamp(56px, 8vw, 120px) var(--pad) clamp(96px, 12vw, 160px);
  min-height: 80svh;
}

.brief,
.confirmation {
  max-width: 40rem;
}

.brief-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 32px;
}

.brief-title em {
  font-style: italic;
}

.brief-copy p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 32rem;
}

.brief-copy .brief-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 1.1em;
}

/* ---------- Progress ---------- */
.brief-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
}

.progress-count {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-track {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.progress-fill {
  height: 1px;
  width: 20%;
  background: var(--ink);
  transition: width 0.8s var(--ease);
}

/* ---------- Steps ---------- */
.step {
  border: none;
  margin: 0;
  padding: 0;
  display: none;
}

.step.is-active {
  display: block;
  animation: stepIn 0.7s var(--ease);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  padding: 0;
  margin: 0 0 clamp(36px, 4.5vw, 48px);
}

.step-title em {
  font-style: italic;
}

/* ---------- Fields ---------- */
.field {
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.field label,
.field-heading {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.label-opt {
  color: var(--muted);
}

.label-opt::before {
  content: "·";
  margin: 0 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field textarea {
  width: 100%;
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 8px 0 14px;
  outline: none;
  transition: border-color 0.4s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #bdbab2;
}

.field input[type="date"] {
  color-scheme: light;
  min-height: 46px;
  cursor: text;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
}

.field input[type="date"]:not(:valid) {
  color: #bdbab2;
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-bottom-color: #a33a2a;
}

/* ---------- Radio options ---------- */
.options {
  border-top: 1px solid var(--rule);
  margin-top: 6px;
}

.option {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  cursor: pointer;
  transition: padding-left 0.4s var(--ease);
}

.option:hover {
  padding-left: 10px;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-text {
  font-size: 15px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.3s ease;
}

.option-text::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.option input:checked + .option-text {
  color: var(--ink);
}

.option input:checked + .option-text::before {
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Files ---------- */
.file-drop {
  display: block;
  border: 1px dashed var(--rule);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.4s ease;
}

.file-drop:hover {
  border-color: var(--muted);
}

.file-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-drop-text {
  font-size: 13px;
  color: var(--muted);
}

.file-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.file-list .file-remove {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

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

/* ---------- Errors & Turnstile ---------- */
.field-error,
.form-error {
  font-size: 13px;
  color: #a33a2a;
  margin: 10px 0 0;
}

.form-error {
  margin: 0 0 28px;
}

.turnstile-wrap {
  margin: 8px 0 32px;
}

/* ---------- Step navigation ---------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 56px);
}

.btn-back {
  background: none;
  border: none;
  padding: 0 0 2px;
  font-family: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

#submit-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 560px) {
  .step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
}

/* ---------- Honeypot ---------- */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Confirmation ---------- */
.confirmation {
  padding: clamp(40px, 6vw, 80px) 0;
}

.confirmation-actions {
  margin-top: clamp(44px, 5vw, 60px);
}

@media (max-width: 560px) {
  .confirmation-actions .btn {
    width: 100%;
  }
}
