/* ── HubSpot forms (hsfc-*) ──
   One compact treatment for every embedded form: theme modules and
   HubSpot's own form module alike. HubSpot injects its form CSS at runtime
   as [data-hsfc-id="Renderer"] .hsfc-* rules, so these selectors carry one
   extra class to win regardless of load order. Modules restyle by setting
   any of these on their form card: --form-fg, --form-fg-sec,
   --form-input-bg, --form-border, --form-accent, --form-gap. */

.hsfc-Renderer .hsfc-Form,
.hsfc-Renderer .hsfc-Form .hsfc-Step,
.hsfc-Renderer .hsfc-Form .hsfc-Step__Content {
  display: flex;
  flex-direction: column;
  gap: var(--form-gap, 0.75rem);
  padding: 0 !important;
}

.hsfc-Renderer .hsfc-Form .hsfc-Row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--form-gap, 0.75rem);
  margin: 0;
}

.hsfc-Renderer .hsfc-Form .hsfc-Row > * {
  flex: 1 1 0;
  min-width: 0;
}

.hsfc-Renderer .hsfc-Form .hsfc-DataPrivacyField {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hsfc-Renderer .hsfc-Form :is(
  .hsfc-TextField,
  .hsfc-EmailField,
  .hsfc-PhoneField,
  .hsfc-NumberField,
  .hsfc-TextareaField,
  .hsfc-DropdownField,
  .hsfc-DateField,
  .hsfc-SingleCheckboxField,
  .hsfc-MultipleCheckboxField,
  .hsfc-RadioField,
  .hsfc-FileField
) {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hsfc-Renderer .hsfc-Form .hsfc-FieldLabel {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--form-fg, var(--text-dark));
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin: 0;
}

.hsfc-Renderer .hsfc-Form .hsfc-FieldLabel__RequiredIndicator {
  color: var(--form-accent, var(--turquoise));
  margin-left: 0.2rem;
}

.hsfc-Renderer .hsfc-Form :is(
  .hsfc-TextInput,
  .hsfc-TextareaInput,
  .hsfc-NumberInput,
  .hsfc-DropdownInput,
  .hsfc-DateInput,
  .hsfc-FileInput
) {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--form-fg, var(--text-dark));
  background: var(--form-input-bg, var(--off-white));
  border: 1px solid var(--form-border, rgba(5, 15, 30, 0.08));
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  height: auto;
  min-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.hsfc-Renderer .hsfc-Form .hsfc-TextareaInput {
  resize: vertical;
  height: 5.5rem;
  min-height: 4rem;
  line-height: 1.5;
}

.hsfc-Renderer .hsfc-Form :is(
  .hsfc-TextInput,
  .hsfc-TextareaInput,
  .hsfc-NumberInput,
  .hsfc-DropdownInput,
  .hsfc-DateInput,
  .hsfc-FileInput
):focus {
  border-color: var(--form-accent, var(--turquoise));
  box-shadow: 0 0 0 3px rgba(77, 217, 192, 0.12);
}

.hsfc-Renderer .hsfc-Form :is(.hsfc-TextInput, .hsfc-TextareaInput)::placeholder {
  color: rgba(99, 99, 120, 0.5);
}

.hsfc-Renderer .hsfc-Form .hsfc-DropdownInput {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636378' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

.hsfc-Renderer .hsfc-Form .hsfc-RichText {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--form-fg-sec, var(--text-sec-dark));
  line-height: 1.5;
}

.hsfc-Renderer .hsfc-Form .hsfc-RichText p {
  margin: 0;
}

.hsfc-Renderer .hsfc-Form .hsfc-RichText p + p {
  margin-top: 0.4rem;
}

.hsfc-Renderer .hsfc-Form .hsfc-RichText a {
  color: var(--form-accent, var(--turquoise));
  text-decoration: underline;
}

/* Privacy notice and consent checkbox: legally required, but secondary. */
.hsfc-Renderer .hsfc-Form .hsfc-DataPrivacyField .hsfc-RichText,
.hsfc-Renderer .hsfc-Form .hsfc-DataPrivacyField .hsfc-FieldLabel,
.hsfc-Renderer .hsfc-Form .hsfc-CheckboxField .hsfc-FieldLabel {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--form-fg-sec, var(--text-sec-dark));
}

.hsfc-Renderer .hsfc-Form .hsfc-CheckboxField .hsfc-FieldLabel {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--form-fg, var(--text-dark));
}

.hsfc-Renderer .hsfc-Form .hsfc-CheckboxInput {
  flex-shrink: 0;
  margin: 0.1rem 0 0;
}

.hsfc-Renderer .hsfc-Form :is(.hsfc-ErrorMessage, .hsfc-FieldError) {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #d14343;
  line-height: 1.4;
}

.hsfc-Renderer .hsfc-Form .hsfc-NavigationRow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.hsfc-Renderer .hsfc-Form .hsfc-NavigationRow__Alerts:empty {
  display: none;
}

.hsfc-Renderer .hsfc-Form .hsfc-NavigationRow__Buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start !important;
}

.hsfc-Renderer .hsfc-Form .hsfc-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}

.hsfc-Renderer .hsfc-Form .hsfc-Button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77, 217, 192, 0.3);
}

.hsfc-Renderer .hsfc-Form .hsfc-Button[aria-busy='true'] {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.hsfc-Renderer .hsfc-Form .hsfc-LiveRegionContent {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Below desktop the root font size is unscaled, and iOS zooms into any
   input under 16px, so inputs go to a full 1rem. */
@media (max-width: 1023px) {
  .hsfc-Renderer .hsfc-Form :is(
    .hsfc-TextInput,
    .hsfc-TextareaInput,
    .hsfc-NumberInput,
    .hsfc-DropdownInput,
    .hsfc-DateInput,
    .hsfc-FileInput
  ) {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hsfc-Renderer .hsfc-Form .hsfc-Row {
    flex-direction: column;
  }
}
