
/* =========================================================
   Form Selector – vertical padding rules only
   Breakpoints (top + bottom padding):
   - >=1920px: 152px
   - 1280–1919px: 96px
   - 768–1279px: 80px
   - <=767px (incl. 390px): 64px
========================================================= */

/* default: 1280–1919 */
.form-selector {
  padding: 96px 0;
  min-height: unset;
}

.form-selector select, .form-selector option {
  cursor: pointer!important;
}

/* >= 1920px */
@media (min-width: 1920px) {
  .form-selector {
    padding: 152px 0;
  }
}

/* 768–1279px */
@media (max-width: 1279px) and (min-width: 768px) {
  .form-selector {
    padding: 80px 0;
  }
}

/* <= 767px (includes 390px) */
@media (max-width: 767px) {
  .form-selector {
    padding: 64px 0;
    align-items: start;
  }
}

.form-selector {
  --form-placeholder-color: #CBCBD2;
  background: #050b1a;
  display: grid;
  align-items: center;
}

.form-selector form {
  background: transparent !important;
  padding: 0 !important;
}

.form-selector__header {
  text-align: center;
  margin-bottom: 4rem;
}

.form-selector__heading {
  margin: 0;
  color: #ffffff;
}

.form-selector__subheading {
    font-family: Inter Tight, sans-serif;
    font-weight: 300 !important;
    line-height: 1.2;
    color: #fff;
    margin-top: 2rem;
}

.form-selector__panel {
  margin: 0 auto;
  border: 2px solid #282B3C;
  padding: 2rem;
  box-sizing: border-box;
  border-radius: 4px;
}

/* -------- HubSpot form base -------- */
.form-selector .hs-form {
  max-width: none;
}

.form-selector .hsfc-Step {
  background: transparent !important;
}

.form-selector .form-title {
  display: none !important;
}

.form-selector .hsfc-Step__Content {
  padding: 0 !important;
}

.form-selector .hs-form fieldset {
  max-width: none !important;
}

.form-selector .hs-form .hs-form-field {
  margin-bottom: 1.25rem;
}

.form-selector .hs-form label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.35;
}

.form-selector .hs-form label span.hs-form-required {
  color: var(--color-primary);
}

/* Inputs */
.form-selector .hs-form input[type="text"],
.form-selector .hs-form input[type="email"],
.form-selector .hs-form input[type="tel"],
.form-selector .hs-form input[type="number"],
.form-selector .hs-form input[type="url"],
.form-selector .hs-form input[type="date"],
.form-selector .hs-form select,
.form-selector .hs-form textarea {
  width: 100% !important;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.95rem 1rem;
  border-radius: 2px;
  outline: none;
}

.form-selector .hs-form textarea {
  height: 48px;
}

.form-selector .hs-form input:focus,
.form-selector .hs-form select:focus,
.form-selector .hs-form textarea:focus {
  border-color: rgba(121, 54, 144, 0.85);
  box-shadow: 0 0 0 3px rgba(121, 54, 144, 0.18);
}

/* Errors */
.form-selector .hs-error-msgs,
.form-selector .hs-error-msgs li {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: #ffb3b3;
  font-size: 0.9rem;
}

.form-selector .hs-form .hs-input.invalid {
  border-color: rgba(255, 120, 120, 0.9);
}

/* Submit */
.form-selector .hs-form .hs_submit {
  margin-top: 1.75rem;
}

.form-selector .hs-form input[type="submit"],
.form-selector .hs-form button[type="submit"] {
  background: var(--color-primary);
  color: #ffffff;
  border: 0;
  border-radius: 2px;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.form-selector .hs-form input[type="submit"]:hover,
.form-selector .hs-form button[type="submit"]:hover {
  filter: brightness(0.95);
}

/* -------- Two column layout (like screenshot) -------- */
@media (min-width: 900px) {
  .form-selector .hs-form fieldset.form-columns-2,
  .form-selector .hs-form fieldset.form-columns-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }

  /* Most fields become half-width */
  .form-selector .hs-form fieldset.form-columns-2 .hs-form-field,
  .form-selector .hs-form fieldset.form-columns-3 .hs-form-field {
    width: calc(50% - 1rem) !important;
    float: none !important;
  }

  /* Force common "full width" types */
  .form-selector .hs-form .hs-fieldtype-textarea,
  .form-selector .hs-form .hs-fieldtype-radio,
  .form-selector .hs-form .hs-fieldtype-checkbox,
  .form-selector .hs-form .hs-fieldtype-booleancheckbox {
    width: 100% !important;
  }
}

/* Mobile */
@media (max-width: 899px) {
  .form-selector__panel {
    padding: 1.75rem;
  }
}

/* =========================================================
   Radio -> Dropdown (custom) fixes
========================================================= */

.hsfc-RadioDropdown .hsfc-DropdownInput {
  position: relative;
}

.hsfc-RadioDropdown .hsfc-DropdownOptions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;
  display: none; /* JS will toggle to block */
}

/* Make sure common HubSpot wrappers don't clip the dropdown */
.hsfc-Row,
.hsfc-Step__Content,
.hsfc-Step,
.hsfc-Form {
  overflow: visible !important;
}

/* =========================================================
   IMPORTANT FIX #1:
   Do NOT hide all .hsfc-FieldLabel (checkbox option labels use it)
   Only hide the "top" field label for HSFC field wrappers.
========================================================= */

.form-selector .hsfc-TextField > .hsfc-FieldLabel,
.form-selector .hsfc-EmailField > .hsfc-FieldLabel,
.form-selector .hsfc-PhoneField > .hsfc-FieldLabel,
.form-selector .hsfc-TextareaField > .hsfc-FieldLabel,
.form-selector .hsfc-DropdownField > .hsfc-FieldLabel,
.form-selector .hsfc-RadioFieldGroup > .hsfc-FieldLabel,
.form-selector .hsfc-CheckboxFieldGroup > .hsfc-FieldLabel {
  display: none !important;
}

/* Keep option labels visible */
.form-selector .hsfc-CheckboxFieldGroup__Options .hsfc-FieldLabel,
.form-selector .hsfc-RadioFieldGroup__Options .hsfc-FieldLabel {
  display: flex !important;
}

/* Row spacing */
.form-selector .hsfc-Row {
  gap: 2rem 3rem !important;
}

/* =========================================================
   IMPORTANT FIX #2:
   Your "input height / text-indent" rule must not hit checkboxes/radios
========================================================= */

.form-selector input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.form-selector textarea,
.form-selector select {
  background: #0A0F21 !important;
  color: #fff !important;
  box-shadow: none !important;
  height: 50px !important;
  text-indent: 10px !important;
  border-bottom: 2px solid #303744 !important;
  border-radius: 2px !important;
}

.form-selector textarea {
  height: auto !important;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* All text, textarea and HSFC dropdown input placeholders */
.form-selector input::placeholder,
.form-selector textarea::placeholder,
.form-selector .hsfc-TextInput--button::placeholder {
  color: var(--form-placeholder-color) !important;
  opacity: 1 !important;
}

/* Native selects display an option rather than a ::placeholder. */
.form-selector select:has(option:checked[value=""]),
.form-selector select:invalid {
  color: var(--form-placeholder-color) !important;
}

/* Colour the empty/placeholder option when the dropdown is expanded. */
.form-selector select option[value=""] {
  color: var(--form-placeholder-color) !important;
}

/* Submit (your version) */
.form-selector button[type="submit"],
.form-selector input[type="submit"] {
  all: unset;
  background: var(--color-primary);
  color: var(--color-light);
  text-align: center;
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 2px;
  margin-right: auto;
  width: auto;
}

/* Real red asterisk drawn inside the input, positioned by JS */
.hs-required-asterisk {
  position: absolute;
  top: 11px;
  color: #e03131;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  font-weight: 600;
  z-index: 2;
}

/* =========================================================
   Checkbox group styling (HSFC)
   Makes the options visible + aligned with your dark theme.
========================================================= */

.form-selector .hsfc-CheckboxFieldGroup__Options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* If you want 2 columns on desktop */
@media (min-width: 900px) {
  .form-selector .hsfc-CheckboxFieldGroup__Options {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
  }
}

.form-selector .hsfc-CheckboxFieldGroup__Options > div {
  margin: 0;
}

.form-selector .hsfc-CheckboxFieldGroup__Options .hsfc-FieldLabel {
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Custom checkbox look */
.form-selector input[type="checkbox"].hsfc-CheckboxInput {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
  display: inline-grid;
  place-items: center;
  margin: 0;
}

.form-selector input[type="checkbox"].hsfc-CheckboxInput:focus {
  outline: none;
  border-color: rgba(121, 54, 144, 0.85);
  box-shadow: 0 0 0 3px rgba(121, 54, 144, 0.18);
}

.form-selector input[type="checkbox"].hsfc-CheckboxInput:checked {
  background: rgba(121, 54, 144, 0.85);
  border-color: rgba(121, 54, 144, 0.85);
}

.form-selector input[type="checkbox"].hsfc-CheckboxInput:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px;
}

/* Required indicator if HSFC still renders it in group label */
.form-selector .hsfc-FieldLabel__RequiredIndicator {
  color: #e03131 !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .form-selector {
    min-height: unset;
  }

  .form-selector__header {
    margin-bottom: 3rem;
  }

  .form-selector .hs-form fieldset {
    max-width: none !important;
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-selector .hs-form fieldset > div {
    width: 100% !important;
  }

  .form-selector input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  .form-selector textarea,
  .form-selector select {
    text-indent: 5px !important;
  }
}

@media (max-width: 1600px) and (min-width: 768px) {
  .form-selector .container-narrow {
    max-width: 90% !important;
  }
}

.form-selector .hs-richtext {
  color: #fff !important;
}

.form-selector fieldset legend {
  color: #fff!important;
  margin-bottom: 10px!important;
}

.form-selector .hs-richtext * {
  color: inherit !important;
}

.form-selector p {
  color: #ffffff !important;
}

[data-hsfc-id=Renderer] .hsfc-DropdownOptions {
  top: calc(100% + 10px);
}

.form-selector div > p > span {
  color: #fff !important;
}

/* =========================================================
   SELECT DROPDOWN OPTIONS + ANIMATED CHEVRONS
   Supports native selects and custom HubSpot HSFC dropdowns.
========================================================= */

/* Keep dropdown list options readable on the dark background. */
.form-selector select option {
  color: #ffffff !important;
  background: #0A0F21 !important;
}

.form-selector select option[value=""] {
  color: var(--form-placeholder-color) !important;
}

/* Remove the browser arrow so only our chevron is displayed. */
.form-selector select:not([multiple]) {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 48px !important;
  background-image: none !important;
}

/* Space for chevron inside HubSpot's custom dropdown triggers. */
.form-selector .hsfc-DropdownInput .hsfc-TextInput--button {
  padding-right: 48px !important;
}

/* Reuse the existing HubSpot wrappers: no HTML/JS changes required. */
.form-selector .hs-form .input:has(> select:not([multiple])),
.form-selector .hsfc-DropdownInput:has(> .hsfc-TextInput--button) {
  position: relative;
}

/* Hide HubSpot's existing caret to prevent a double arrow. */
.form-selector .hsfc-DropdownInput:has(> .hsfc-TextInput--button) > .hsfc-DropdownInput__Caret {
  display: none !important;
}

/* One consistent, small white chevron on every dropdown. */
.form-selector .hs-form .input:has(> select:not([multiple]))::after,
.form-selector .hsfc-DropdownInput:has(> .hsfc-TextInput--button)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateY(-65%) rotate(45deg);
  transform-origin: center;
  transition: transform 200ms ease;
  pointer-events: none;
  z-index: 2;
}

/* Native selects: :open matches the actual expanded picker. */
.form-selector .hs-form .input:has(> select:open:not([multiple]))::after,
/* HSFC custom dropdowns update aria-expanded via your existing JS. */
.form-selector .hsfc-DropdownInput:has(> .hsfc-TextInput--button[aria-expanded="true"])::after {
  transform: translateY(-35%) rotate(225deg);
}

/* Older browser fallback where :open is not supported (e.g. Safari).
   Native select focus is only an approximation of the open state. */
@supports not selector(select:open) {
  .form-selector .hs-form .input:has(> select:not([multiple]):focus)::after {
    transform: translateY(-35%) rotate(225deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-selector .hs-form .input:has(> select:not([multiple]))::after,
  .form-selector .hsfc-DropdownInput:has(> .hsfc-TextInput--button)::after {
    transition: none;
  }
}
