/* Silver Horizons Advisors — native lead form.
   Every rule is scoped under .shx-lead-form so nothing leaks into the page builder's CSS. */

.shx-lead-form {
  --shx-navy: #0f2a44;
  --shx-cta: #c2410c;
  --shx-cta-hover: #a5360a;
  --shx-border: rgba(15, 42, 68, 0.18);
  --shx-border-strong: rgba(15, 42, 68, 0.42);
  --shx-placeholder: #8a8f98;
  --shx-error: #b42318;

  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  font-family: 'Inter Tight', Inter, Arial, sans-serif;
  color: var(--shx-navy);
}

.shx-lead-form *,
.shx-lead-form *::before,
.shx-lead-form *::after {
  box-sizing: border-box;
}

.shx-lead-form .shx-field {
  margin: 0 0 16px;
}

.shx-lead-form .shx-label {
  display: block;
  margin: 0 0 6px;
  font-family: 'Inter Tight', Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--shx-navy);
}

.shx-lead-form .shx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.shx-lead-form .shx-input,
.shx-lead-form .shx-select,
.shx-lead-form .shx-textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  font-family: 'Inter Tight', Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--shx-navy);
  background-color: #ffffff;
  border: 1px solid var(--shx-border);
  border-radius: 8px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shx-lead-form .shx-textarea {
  min-height: 104px;
  resize: vertical;
}

.shx-lead-form .shx-select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230f2a44' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.shx-lead-form .shx-input::placeholder,
.shx-lead-form .shx-textarea::placeholder {
  color: var(--shx-placeholder);
  opacity: 1;
}

.shx-lead-form .shx-select:invalid,
.shx-lead-form .shx-select .shx-placeholder-option {
  color: var(--shx-placeholder);
}

.shx-lead-form .shx-input:hover,
.shx-lead-form .shx-select:hover,
.shx-lead-form .shx-textarea:hover {
  border-color: var(--shx-border-strong);
}

.shx-lead-form .shx-input:focus,
.shx-lead-form .shx-select:focus,
.shx-lead-form .shx-textarea:focus,
.shx-lead-form .shx-submit:focus-visible {
  outline: 2px solid var(--shx-navy);
  outline-offset: 2px;
  border-color: var(--shx-navy);
}

.shx-lead-form .shx-invalid,
.shx-lead-form .shx-invalid:hover {
  border-color: var(--shx-error);
  box-shadow: 0 0 0 1px var(--shx-error);
}

.shx-lead-form .shx-submit {
  display: block;
  width: 100%;
  margin: 15px 0 0;
  padding: 14px 24px;
  font-family: 'Inter Tight', Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  text-align: center;
  white-space: normal;
  background: var(--shx-cta);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 24px 0 rgba(15, 42, 68, 0.18);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.shx-lead-form .shx-submit:hover:not(:disabled) {
  background: var(--shx-cta-hover);
}

.shx-lead-form .shx-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.shx-lead-form .shx-form-status {
  margin: 12px 0 0;
  font-family: 'Inter Tight', Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--shx-error);
}

.shx-lead-form .shx-form-status:empty {
  margin: 0;
}

.shx-lead-form .shx-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.shx-lead-form .shx-thanks {
  margin: 0;
  padding: 20px 18px;
  font-family: 'Inter Tight', Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--shx-navy);
  text-align: center;
  background: #e6f0ee;
  border-radius: 10px;
}
