.tvfp-lead-form {
  --tvfp-ink: #352245;
  --tvfp-muted: #645d69;
  --tvfp-border: #cbc5cf;
  --tvfp-accent: #a77935;
  color: var(--tvfp-ink);
  width: 100%;
}

.tvfp-form {
  display: grid;
  gap: 1.35rem;
  width: 100%;
}

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

.tvfp-field {
  border: 0;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.tvfp-field > label,
.tvfp-field > legend {
  color: var(--tvfp-ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.15rem;
  padding: 0;
}

.tvfp-field input[type="text"],
.tvfp-field input[type="email"],
.tvfp-field input[type="tel"],
.tvfp-field select,
.tvfp-field textarea {
  appearance: none;
  background: #fff;
  border: 1px solid var(--tvfp-border);
  border-radius: 3px;
  box-sizing: border-box;
  color: #252128;
  font: inherit;
  line-height: 1.4;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.tvfp-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--tvfp-ink) 50%),
    linear-gradient(135deg, var(--tvfp-ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 2.75rem;
}

.tvfp-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.tvfp-field input:focus-visible,
.tvfp-field select:focus-visible,
.tvfp-field textarea:focus-visible,
.tvfp-submit:focus-visible,
.tvfp-form-alert:focus-visible {
  border-color: var(--tvfp-accent);
  box-shadow: 0 0 0 3px rgb(167 121 53 / 22%);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.tvfp-choice-group {
  gap: 0.7rem;
}

.tvfp-radio {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--tvfp-border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  line-height: 1.45;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
}

.tvfp-radio:has(input:checked) {
  background: #f8f5fa;
  border-color: var(--tvfp-ink);
}

.tvfp-radio input {
  accent-color: var(--tvfp-ink);
  flex: 0 0 auto;
  height: 1.1rem;
  margin: 0.12rem 0 0;
  width: 1.1rem;
}

.tvfp-radio:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgb(167 121 53 / 22%);
  outline: 2px solid var(--tvfp-accent);
  outline-offset: 2px;
}

.tvfp-form-actions {
  display: flex;
  justify-content: flex-start;
}

.tvfp-submit {
  align-items: center;
  background: var(--tvfp-ink);
  border: 1px solid var(--tvfp-ink);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  justify-content: center;
  min-height: 48px;
  min-width: 128px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.tvfp-submit:hover {
  background: #4d3560;
  border-color: #4d3560;
  color: #fff;
}

.tvfp-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.tvfp-form-alert {
  background: #fff5f4;
  border-left: 4px solid #a92c25;
  color: #6f1d19;
  padding: 0.85rem 1rem;
}

.tvfp-field-error {
  color: #8e241f;
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.tvfp-field [aria-invalid="true"] {
  border-color: #a92c25;
}

.tvfp-form-status {
  color: var(--tvfp-muted);
  margin: 0;
  min-height: 1.25rem;
}

.tvfp-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.tvfp-form [hidden] {
  display: none !important;
}

.tvfp-form [data-conditional],
.tvfp-form-actions {
  scroll-margin-block: 7rem;
}

.tvfp-contact-form .tvfp-field > label {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tvfp-contact-form .tvfp-field input,
.tvfp-contact-form .tvfp-field textarea {
  background: #e4e3e9;
  border-radius: 0.25em;
}

.tvfp-contact-form .tvfp-submit--contact {
  background: #ed7d31;
  border-color: #ed7d31;
  margin-inline: auto;
  min-width: 230px;
  text-transform: uppercase;
}

.tvfp-contact-form .tvfp-submit--contact:hover {
  background: #fff;
  border-color: #ed7d31;
  color: #ed7d31;
}

@media (max-width: 640px) {
  .tvfp-field-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  .tvfp-field input,
  .tvfp-field select,
  .tvfp-field textarea,
  .tvfp-submit {
    transition: none;
  }
}
