:root {
  --rbvs-accent: #2f5e46;
  --rbvs-accent-dark: #234a36;
  --rbvs-border: #d8d0c1;
  --rbvs-focus: #b9d8c4;
  --rbvs-heading: #1f2a24;
  --rbvs-muted: #5d6d61;
  --rbvs-shadow: 0 16px 40px rgba(31, 42, 36, 0.12);
  --rbvs-surface: #fffdf8;
  --rbvs-surface-alt: #f7f3eb;
  --rbvs-text: #27362d;
  --rbvs-warm: #b66a2d;
}

.rbvs-intake-intro,
.rbvs-form {
  color: var(--rbvs-text);
  display: grid;
  gap: 1.125rem;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
  max-width: 52rem;
}

.rbvs-intake-intro {
  margin-bottom: 1rem;
  margin-top: 1.75rem;
}

.rbvs-process {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rbvs-process li {
  align-items: center;
  background: var(--rbvs-surface);
  border: 1px solid rgba(47, 94, 70, 0.22);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 42, 36, 0.1);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto 1fr;
  min-height: 5rem;
  padding: 1rem 1.1rem;
}

.rbvs-step-number {
  align-items: center;
  background: var(--rbvs-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 2.15rem;
  justify-content: center;
  line-height: 1;
  width: 2.15rem;
}

.rbvs-process strong,
.rbvs-process em {
  display: block;
}

.rbvs-process strong {
  color: var(--rbvs-heading);
}

.rbvs-process em {
  color: var(--rbvs-muted);
  font-style: normal;
  margin-top: 0.15rem;
}

.rbvs-fieldset {
  background: var(--rbvs-surface);
  border: 1px solid var(--rbvs-border);
  border-radius: 8px;
  box-shadow: var(--rbvs-shadow);
  display: grid;
  gap: 1.05rem;
  margin: 0;
  padding: 1.25rem;
}

.rbvs-fieldset legend {
  background: var(--rbvs-surface);
  color: var(--rbvs-heading);
  font-size: 0.96rem;
  font-weight: 800;
  padding: 0 0.45rem;
}

.rbvs-fieldset-note {
  color: var(--rbvs-muted);
  margin: 0;
}

.rbvs-field {
  display: grid;
  gap: 0.4rem;
}

.rbvs-field label {
  color: var(--rbvs-heading);
  font-weight: 750;
}

.rbvs-name-grid {
  display: grid;
  gap: 1rem;
}

.rbvs-field input,
.rbvs-field textarea {
  background: #fff;
  border: 1px solid #c7beaf;
  border-radius: 8px;
  box-shadow: inset 0 1px 1px rgba(31, 42, 36, 0.05);
  box-sizing: border-box;
  color: var(--rbvs-heading);
  font: inherit;
  min-height: 2.9rem;
  padding: 0.78rem 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
  width: 100%;
}

.rbvs-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.rbvs-field input::placeholder,
.rbvs-field textarea::placeholder {
  color: #6d7870;
  opacity: 1;
}

.rbvs-field input:focus,
.rbvs-field textarea:focus {
  border-color: var(--rbvs-accent);
  box-shadow: 0 0 0 1px var(--rbvs-accent);
  outline: 3px solid var(--rbvs-focus);
  outline-offset: 1px;
}

.rbvs-optional {
  color: var(--rbvs-muted);
  font-weight: 400;
}

.rbvs-consent {
  background: #fff8ec;
  border: 1px solid #e5d0ae;
  border-left: 4px solid var(--rbvs-warm);
  border-radius: 8px;
  color: var(--rbvs-heading);
  padding: 1rem;
}

.rbvs-terms-link,
.rbvs-notice {
  max-width: 52rem;
}

.rbvs-terms-link {
  color: var(--rbvs-muted);
  margin: 0;
}

.rbvs-terms-link a {
  color: var(--rbvs-accent-dark);
  font-weight: 700;
}

.rbvs-notice {
  background: var(--rbvs-surface);
  border: 1px solid var(--rbvs-border);
  border-radius: 8px;
  box-shadow: var(--rbvs-shadow);
  color: var(--rbvs-text);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.15rem;
}

.rbvs-consent label {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
}

.rbvs-consent input {
  accent-color: var(--rbvs-accent);
  flex: 0 0 auto;
  height: 1.15rem;
  margin-top: 0.25rem;
  width: 1.15rem;
}

.rbvs-consent input:focus {
  outline: 3px solid var(--rbvs-focus);
  outline-offset: 3px;
}

.rbvs-captcha-placeholder {
  align-items: center;
  background: var(--rbvs-surface);
  border: 1px dashed #a9a092;
  border-radius: 8px;
  color: var(--rbvs-muted);
  display: grid;
  gap: 0.25rem 0.75rem;
  grid-template-columns: auto 1fr;
  max-width: 22rem;
  padding: 0.9rem 1rem;
}

.rbvs-captcha-placeholder span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rbvs-border);
  border-radius: 6px;
  color: var(--rbvs-muted);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  width: 4.5rem;
}

.rbvs-captcha-placeholder strong,
.rbvs-captcha-placeholder em {
  display: block;
}

.rbvs-captcha-placeholder strong {
  color: var(--rbvs-heading);
}

.rbvs-captcha-placeholder em {
  font-size: 0.9rem;
  font-style: normal;
}

.cf-turnstile {
  margin-top: 0.1rem;
}

.rbvs-submit-help {
  color: var(--rbvs-muted);
  margin: 0;
}

.rbvs-submit-help[data-complete="true"] {
  color: var(--rbvs-accent-dark);
  font-weight: 800;
}

.rbvs-upload-widget-preview {
  align-items: center;
  background: var(--rbvs-surface);
  border: 1px dashed #a9a092;
  border-radius: 8px;
  color: var(--rbvs-muted);
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  min-height: 9rem;
  padding: 1.5rem;
  text-align: center;
}

.rbvs-upload-widget-preview span {
  background: #fff;
  border: 1px solid var(--rbvs-border);
  border-radius: 999px;
  color: var(--rbvs-muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
}

.rbvs-upload-widget-preview strong,
.rbvs-upload-widget-preview em {
  display: block;
}

.rbvs-upload-widget-preview strong {
  color: var(--rbvs-heading);
  font-size: 1.1rem;
}

.rbvs-upload-widget-preview em {
  font-style: normal;
}

.rbvs-confirmation {
  background: var(--rbvs-surface);
  border: 1px solid var(--rbvs-border);
  border-radius: 8px;
  box-shadow: var(--rbvs-shadow);
  margin: 4rem auto;
  max-width: 48rem;
  padding: 1.5rem;
}

.rbvs-message-page {
  background: #f5f1e8;
  color: var(--rbvs-heading);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
}

.rbvs-errors {
  background: #fff4ee;
  border: 1px solid #d49b7f;
  border-radius: 8px;
  color: #7c321f;
  padding: 1rem;
}

.rbvs-submit {
  align-items: center;
  background: var(--rbvs-accent);
  border: 1px solid var(--rbvs-accent);
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  justify-self: start;
  line-height: 1.2;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rbvs-submit:focus,
.rbvs-submit:focus-visible {
  outline: 3px solid var(--rbvs-focus);
  outline-offset: 3px;
}

.rbvs-submit:hover {
  background: var(--rbvs-accent-dark);
  border-color: var(--rbvs-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.rbvs-submit:active {
  transform: translateY(0);
}

.rbvs-submit:disabled {
  background: #d8d0c1;
  border-color: #d8d0c1;
  color: #66716a;
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 640px) {
  .rbvs-name-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .rbvs-fieldset {
    padding: 1.4rem 1.5rem 1.5rem;
  }

  .rbvs-process {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .rbvs-intake-intro {
    margin-top: 1.25rem;
  }

  .rbvs-fieldset {
    padding: 1rem;
  }

  .rbvs-process li {
    min-height: 0;
  }

  .rbvs-submit {
    width: 100%;
  }
}
