/* Contact form V13. Every rule is scoped to the existing form. */
#lead-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  align-self: start;
  min-width: 0;
}
#lead-form .form-group {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#lead-form .form-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  font: 600 18px/1.35 var(--display);
  letter-spacing: -.025em;
}
#lead-form .form-group legend span {
  font: 600 11px/1 var(--body);
  letter-spacing: .04em;
  color: #657068;
}
#lead-form .form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
#lead-form .field { min-width: 0; margin: 0; padding: 0; border: 0; }
#lead-form .field.full { grid-column: 1 / -1; }
#lead-form .field label {
  margin: 0 0 8px;
  font: 600 13px/1.45 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
#lead-form .field input,
#lead-form .field select,
#lead-form .field textarea,
#lead-form .select-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #c6cdc7;
  border-radius: 8px;
  background: #fafbf8;
  color: var(--ink);
  font: 400 15px/1.5 var(--body);
  letter-spacing: 0;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
#lead-form .field input:hover,
#lead-form .field textarea:hover,
#lead-form .select-trigger:hover { border-color: #8b9990; }
#lead-form .field input:focus,
#lead-form .field select:focus,
#lead-form .field textarea:focus,
#lead-form .select-trigger:focus-visible,
#lead-form .select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: #3289bd;
  box-shadow: 0 0 0 3px rgba(82, 172, 237, .16);
}
#lead-form .field textarea { min-height: 130px; resize: vertical; }
#lead-form .field textarea::placeholder { color: #78827c; opacity: 1; }
#lead-form .field small {
  margin-top: 7px;
  font: 400 11px/1.55 var(--body);
  color: #657068;
}
#lead-form .field .field-error { color: #9c302b; }
#lead-form .field [aria-invalid="true"] { border-color: #9c302b; }
#lead-form .select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
#lead-form .select-trigger.is-placeholder { color: #78827c; }
#lead-form .select-arrow { width: 7px; height: 7px; margin-right: 3px; }
#lead-form .select-list {
  padding: 5px;
  max-height: 264px;
  background: #fafbf8;
  border: 1px solid #c6cdc7;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(16, 24, 32, .12);
}
#lead-form .select-option {
  position: relative;
  min-height: 40px;
  padding: 10px 32px 10px 11px;
  border-radius: 5px;
  font: 400 14px/1.45 var(--body);
}
#lead-form .select-option[aria-selected="true"] { font-weight: 600; }
#lead-form .select-option[aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 12px;
  color: #176898;
}
#lead-form .select-native-enhanced {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
#lead-form .form-actions { width: 100%; }
#lead-form .form-submit {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 15px 18px;
  border-radius: 8px;
  font: 700 14px/1.5 var(--body);
  text-align: left;
}
#lead-form .form-submit span { font-size: 20px; font-weight: 500; }
#lead-form .form-actions > .form-note {
  margin-top: 10px;
  font: 400 11px/1.6 var(--body);
  color: #657068;
}
#lead-form #form-privacy {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid #d4d9d2;
  font: 400 11px/1.65 var(--body);
  color: #657068;
}
#lead-form #form-privacy a { color: var(--ink); }
#lead-form .message-result { width: 100%; }
@media (max-width: 640px) {
  #lead-form { padding: 24px 20px; gap: 26px; border-radius: 10px; }
  #lead-form .form-fields { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  #lead-form .field input,
  #lead-form .field select,
  #lead-form .field textarea,
  #lead-form .select-trigger { font-size: 16px; }
  #lead-form .form-group legend { font-size: 18px; margin-bottom: 16px; }
  #lead-form .form-submit { gap: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #lead-form .field input,
  #lead-form .field select,
  #lead-form .field textarea,
  #lead-form .select-trigger { transition: none; }
}
