.bh-paid-forms {
  --bh-green: #173f36;
  --bh-green-soft: #edf6f1;
  --bh-gold: #a17e45;
  --bh-border: rgba(31, 88, 72, 0.16);
  margin: 1.5rem auto;
}

.bh-paid-forms__header {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--bh-border);
  border-radius: 22px;
  background: linear-gradient(145deg, #f8fbf9, var(--bh-green-soft));
  box-shadow: 0 16px 38px rgba(26, 67, 55, 0.07);
}

.bh-paid-forms__header h2 {
  margin: 0.25rem 0 0.7rem;
  color: var(--bh-green);
}

.bh-paid-deadline {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--bh-gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.bh-form-progress {
  display: grid;
  margin: 1.25rem 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.bh-form-progress li {
  display: flex;
  min-height: 64px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--bh-border);
  border-radius: 15px;
  background: #fff;
  color: #64726d;
  align-items: center;
  gap: 0.7rem;
}

.bh-form-progress li > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #e8eeeb;
  color: var(--bh-green);
  place-items: center;
  font-weight: 800;
}

.bh-form-progress .is-current,
.bh-form-progress .is-complete {
  border-color: rgba(31, 88, 72, 0.32);
  color: var(--bh-green);
}

.bh-form-progress .is-current > span,
.bh-form-progress .is-complete > span {
  background: var(--bh-green);
  color: #fff;
}

.bh-form-progress .is-complete > span::before {
  content: '✓';
}

.bh-form-progress .is-complete > span {
  font-size: 0;
}

.bh-form-progress .is-complete > span::before {
  font-size: 1rem;
}

.bh-form-notice {
  margin: 1rem 0;
}

.bh-paid-forms .intake-form {
  margin-top: 1rem;
}

.bh-paid-forms .intake-form > h3 {
  color: var(--bh-green);
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.bh-agreement-section,
.bh-intake-section {
  margin: 1rem 0;
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid var(--bh-border);
  border-radius: 16px;
  background: #fff;
}

.bh-agreement-section h4,
.bh-intake-section > header h4 {
  margin: 0 0 0.55rem;
  color: var(--bh-green);
  font-size: 1.05rem;
}

.bh-agreement-section p,
.bh-intake-section > header p {
  margin: 0;
  line-height: 1.7;
}

.bh-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.bh-consent-all {
  margin: 1.2rem 0;
  padding: 1rem !important;
  border: 1px solid rgba(161, 126, 69, 0.28);
  border-radius: 14px;
  background: #f7f1e8;
}

.bh-consent-all a,
.bh-boundary-confirmations a {
  font-weight: 750;
}

.bh-emergency-notice {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #e5b8b8;
  border-radius: 14px;
  background: #fff5f5;
  color: #652d2d;
  line-height: 1.6;
}

.bh-intake-section {
  margin: 1.25rem 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: 0 8px 24px rgba(26, 67, 55, 0.035);
}

.bh-intake-section > header {
  margin: -0.2rem -0.2rem 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--bh-border);
}

.bh-question {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(31, 88, 72, 0.1);
}

.bh-question:last-child {
  border-bottom: 0;
}

.bh-question fieldset,
.bh-matrix-row {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bh-question legend {
  width: 100%;
  margin-bottom: 0.7rem;
  color: #243d36;
  font-weight: 750;
  line-height: 1.45;
}

.bh-question-number {
  color: var(--bh-gold);
}

.bh-optional {
  color: #74817c;
  font-size: 0.82em;
  font-weight: 500;
}

.bh-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.bh-choice-list label,
.bh-matrix-options label {
  display: flex;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(31, 88, 72, 0.13);
  border-radius: 11px;
  background: #fbfdfc;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  line-height: 1.4;
}

.bh-choice-list input,
.bh-matrix-options input {
  width: auto !important;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.bh-choice-list label:has(input:checked),
.bh-matrix-options label:has(input:checked) {
  border-color: rgba(31, 88, 72, 0.42);
  background: var(--bh-green-soft);
}

.bh-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.35rem;
}

.bh-scale label {
  margin: 0;
}

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

.bh-scale span {
  display: grid;
  min-height: 42px;
  border: 1px solid var(--bh-border);
  border-radius: 9px;
  background: #fff;
  color: var(--bh-green);
  place-items: center;
  cursor: pointer;
  font-weight: 750;
}

.bh-scale input:checked + span {
  border-color: var(--bh-green);
  background: var(--bh-green);
  color: #fff;
}

.bh-scale input:focus-visible + span {
  outline: 3px solid rgba(47, 116, 95, 0.24);
  outline-offset: 2px;
}

.bh-matrix {
  overflow-x: auto;
}

.bh-matrix-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(31, 88, 72, 0.1);
}

.bh-matrix-row legend {
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
}

.bh-matrix-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 0.4rem;
}

.bh-matrix-options label {
  min-height: 40px;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.bh-boundary-confirmations {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 14px;
  background: var(--bh-green-soft);
}

.bh-boundary-confirmations .consent {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(31, 88, 72, 0.12);
}

.bh-boundary-confirmations .consent:last-child {
  border-bottom: 0;
}

.bh-form-actions {
  display: flex;
  margin-top: 1.2rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bh-form-actions .button-secondary {
  border: 1px solid var(--bh-green);
  background: transparent;
  color: var(--bh-green);
}

.bh-paid-complete {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.bh-paid-complete h2 {
  color: var(--bh-green);
}

@media (max-width: 720px) {
  .bh-signature-grid,
  .bh-choice-list {
    grid-template-columns: 1fr;
  }

  .bh-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bh-form-progress li {
    padding: 0.7rem;
    font-size: 0.82rem;
  }

  .bh-form-progress li > span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .bh-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .bh-form-actions .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .bh-form-progress {
    grid-template-columns: 1fr;
  }
}

