/* ==========================================================
   KPLER HUBSPOT FORM
   Figma: node 14261:329 / form container 14261:10310
   ========================================================== */

.hbspt-form {
  --kpler-gunmetal: #29333c;
  --kpler-gray: #8e98a1;
  --kpler-border: rgba(41, 51, 60, 0.15);
  --kpler-input-bg: rgba(41, 51, 60, 0.05);
  --kpler-red: #ff5349;
  --kpler-white: #ffffff;

  width: 100%;
  font-family: "Outfit", sans-serif;
  color: var(--kpler-gunmetal);
}

/* ==========================================================
   FORM CARD
   ========================================================== */

.hbspt-form form {
  box-sizing: border-box;
  width: 100%;
  max-width: 606px !important;
  margin: 0 auto;

  padding: 32px 32px 24px !important;

  background: #fff;
  border-radius: 8px;

  box-shadow:
    0 4px 48px -12px rgba(0, 0, 0, 0.18);

  font-family: "Outfit", sans-serif !important;
}

/* HubSpot reset */

.hbspt-form fieldset {
  max-width: none !important;
  width: 100% !important;

  padding: 0 !important;
  margin: 0 0 8px !important;

  border: 0 !important;
}

.hbspt-form .field,
.hbspt-form .hs-form-field {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
}

.hbspt-form .input {
  margin: 0 !important;
  padding: 0 !important;
}

.hbspt-form ul,
.hbspt-form li {
  margin: 0;
  padding: 0;
}

/* ==========================================================
   FIELD LAYOUT — CORRECT FIGMA ORDER
   ========================================================== */

.hbspt-form form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 8px !important;
}

/*
IMPORTANT:
HubSpot groups fields inside fieldsets.
We flatten those wrappers so each actual field becomes
a grid item.

This selector intentionally has higher specificity than
HubSpot's .form-columns-2 styles.
*/

.hbspt-form form>fieldset.form-columns-1,
.hbspt-form form>fieldset.form-columns-2 {
  display: contents !important;
}

/* Reset HubSpot's column sizing */

.hbspt-form form>fieldset .hs-form-field {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

/* ------------------------------------------
   ROW 1
   First name | Last name
   ------------------------------------------ */

.hbspt-form .hs_firstname {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.hbspt-form .hs_lastname {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

/* ------------------------------------------
   ROW 2
   Email | Phone
   ------------------------------------------ */

.hbspt-form .hs_email {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.hbspt-form .hs_phone {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

/* ------------------------------------------
   ROW 3
   Company — full width
   ------------------------------------------ */

.hbspt-form .hs_company {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
}

/* ------------------------------------------
   ROW 4
   Industry | Job title
   ------------------------------------------ */

.hbspt-form .hs_prospect_industry__c {
  grid-column: 1 !important;
  grid-row: 4 !important;
}

.hbspt-form .hs_jobtitle {
  grid-column: 2 !important;
  grid-row: 4 !important;
}

/* ------------------------------------------
   ROW 5
   Product of interest
   ------------------------------------------ */

.hbspt-form .hs_product_of_interest__c {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
}

/* ------------------------------------------
   ROW 6
   How did you hear about us
   ------------------------------------------ */

.hbspt-form .hs-dependent-field {
  display: contents !important;
}

.hbspt-form .hs_how_did_you_hear_about_us {
  grid-column: 1 / -1 !important;
  grid-row: 6 !important;
}

/* ------------------------------------------
   ROW 7
   Privacy checkbox
   ------------------------------------------ */

.hbspt-form .hs_privacy_policy {
  grid-column: 1 / -1 !important;
  grid-row: 7 !important;
}

/* ------------------------------------------
   ROW 8
   Newsletter checkbox
   ------------------------------------------ */

.hbspt-form .hs_newsletter_subscriber__c {
  grid-column: 1 / -1 !important;
  grid-row: 8 !important;
}

/* ------------------------------------------
   ROW 9
   Submit
   ------------------------------------------ */

.hbspt-form .hs_submit {
  grid-column: 1 / -1 !important;
  grid-row: 9 !important;
}

/* Hide Business field — not in Figma */

.hbspt-form .hs_business {
  display: none !important;
}

/* Hidden HubSpot tracking fields */

.hbspt-form .hs_utm_source__c,
.hbspt-form .hs_utm_medium__c,
.hbspt-form .hs_utm_campaign__c,
.hbspt-form .hs_utm_term,
.hbspt-form .hs_utm_content,
.hbspt-form .hs_gclid__c,
.hbspt-form .hs_website_demo_request_page {
  display: none !important;
}

/* ==========================================================
   LABELS
   ========================================================== */

.hbspt-form .hs-form-field>label {
  display: block !important;

  margin: 0 0 4px !important;
  padding: 0 !important;

  color: var(--kpler-gunmetal) !important;

  font-family: "Outfit", sans-serif !important;
  font-size: 12px !important;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 1.6 !important;

  background: transparent !important;
}

.hbspt-form .hs-form-required {
  color: var(--kpler-red) !important;
  margin-left: 2px !important;
}

/* ==========================================================
   STANDARD INPUTS
   ========================================================== */

.hbspt-form input.hs-input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.hbspt-form select.hs-input:not(.hs-fieldtype-intl-phone select),
.hbspt-form textarea.hs-input {
  box-sizing: border-box !important;

  display: block !important;

  width: 100% !important;
  max-width: none !important;

  min-height: 44px !important;
  height: 44px !important;

  margin: 0 !important;
  padding: 6px 16px !important;

  background: var(--kpler-input-bg) !important;

  border: 1px solid var(--kpler-border) !important;
  border-radius: 72px !important;

  outline: none !important;
  box-shadow: none !important;

  color: var(--kpler-gunmetal) !important;

  font-family: "Outfit", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;

  appearance: none;
  -webkit-appearance: none;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

/* Placeholder */

.hbspt-form input.hs-input::placeholder,
.hbspt-form textarea.hs-input::placeholder {
  color: var(--kpler-gray) !important;
  opacity: 1 !important;
}

/* Focus */

.hbspt-form input.hs-input:not([type="checkbox"]):not([type="radio"]):focus,
.hbspt-form select.hs-input:focus,
.hbspt-form textarea.hs-input:focus {
  border-color: rgba(41, 51, 60, 0.35) !important;

  box-shadow:
    0 0 0 2px rgba(41, 51, 60, 0.04) !important;
}

/* Invalid state: keep design clean */

.hbspt-form input.hs-input.invalid,
.hbspt-form select.hs-input.invalid {
  box-shadow: none !important;
}

/* ==========================================================
   SELECTS
   ========================================================== */

.hbspt-form .hs-fieldtype-select {
  position: relative;
}

.hbspt-form .hs-fieldtype-select .input {
  position: relative;
}

.hbspt-form .hs-fieldtype-select .input::after {
  content: "";

  position: absolute;
  z-index: 2;

  top: 50%;
  right: 18px;

  width: 8px;
  height: 8px;

  border-right: 2px solid #747d84;
  border-bottom: 2px solid #747d84;

  transform:
    translateY(-65%) rotate(45deg);

  pointer-events: none;
}

.hbspt-form .hs-fieldtype-select select.hs-input {
  padding-right: 46px !important;
  cursor: pointer;
}

/* Placeholder state */

.hbspt-form select.is-placeholder {
  color: var(--kpler-gray) !important;
}

/* ==========================================================
   INTERNATIONAL PHONE FIELD
   Country code + chevron + phone
   ========================================================== */

.hbspt-form .hs_phone .hs-fieldtype-intl-phone {
  box-sizing: border-box !important;

  display: flex !important;
  align-items: center !important;
  gap: 6px !important;

  position: relative;

  width: 100% !important;
  height: 44px !important;

  padding: 0 16px !important;

  background: rgba(41, 51, 60, 0.05) !important;

  border: 1px solid rgba(41, 51, 60, 0.15) !important;
  border-radius: 72px !important;

  overflow: hidden;
}

/* ==========================================================
   PHONE COUNTRY FLAG
   ========================================================== */

.hbspt-form .kpler-phone-country-flag {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;

  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif;

  font-size: 20px;
  line-height: 1;

  pointer-events: none;
}

/* Chevron */

.hbspt-form .kpler-phone-country-arrow {
  flex: 0 0 auto;

  width: 8px;
  height: 8px;

  margin-left: 1px;
  margin-right: 6px;

  border-right: 2px solid #747d84;
  border-bottom: 2px solid #747d84;

  transform:
    translateY(-2px) rotate(45deg);

  pointer-events: none;
}

.hbspt-form .hs_phone .hs-fieldtype-intl-phone>select.hs-input {
  position: absolute !important;

  left: 8px !important;
  top: 0 !important;

  z-index: 3;

  width: 78px !important;
  height: 42px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;

  opacity: 0 !important;

  cursor: pointer;
}

/* Chevron */

.hbspt-form .kpler-phone-country-arrow {
  flex: 0 0 auto;

  width: 8px;
  height: 8px;

  margin-right: 4px;

  border-right: 2px solid #747d84;
  border-bottom: 2px solid #747d84;

  transform:
    translateY(-2px) rotate(45deg);

  pointer-events: none;
}

/* Actual phone input */

.hbspt-form .hs_phone .hs-fieldtype-intl-phone>input[type="tel"].hs-input {
  flex: 1 1 auto !important;

  width: 0 !important;
  min-width: 0 !important;

  height: 42px !important;
  min-height: 42px !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  outline: none !important;

  color: #29333c !important;

  font-family: "Outfit", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

/* ==========================================================
   CHECKBOXES
   ========================================================== */

.hbspt-form .hs_privacy_policy .inputs-list,
.hbspt-form .hs_newsletter_subscriber__c .inputs-list {
  list-style: none !important;
  padding: 0 !important;
}

.hbspt-form .hs_privacy_policy .inputs-list {
  margin: 8px 0 0 !important;
}

.hbspt-form .hs_newsletter_subscriber__c .inputs-list {
  margin: 0 0 8px !important;
}

.hbspt-form .hs-form-booleancheckbox {
  list-style: none !important;
}

/* Label layout */

.hbspt-form .hs-form-booleancheckbox-display {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;

  width: 100%;

  margin: 0 !important;

  cursor: pointer;
}

/* Native checkbox */

.hbspt-form .hs-form-booleancheckbox-display>input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;

  flex: 0 0 18px !important;

  width: 18px !important;
  height: 18px !important;

  min-width: 18px !important;
  min-height: 18px !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 1px solid var(--kpler-border) !important;
  border-radius: 4px !important;

  cursor: pointer;

  position: relative;
}

/* Checked */

.hbspt-form .hs-form-booleancheckbox-display>input[type="checkbox"]:checked {
  background: var(--kpler-red) !important;
  border-color: var(--kpler-red) !important;
}

.hbspt-form .hs-form-booleancheckbox-display>input[type="checkbox"]:checked::after {
  content: "";

  position: absolute;

  width: 4px;
  height: 8px;

  left: 6px;
  top: 3px;

  border: solid #fff;
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

/* Checkbox text */

.hbspt-form .hs-form-booleancheckbox-display>span {
  color: var(--kpler-gunmetal) !important;

  font-family: "Outfit", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.hbspt-form .hs-form-booleancheckbox-display a {
  color: var(--kpler-red) !important;
  text-decoration: none !important;
}

/* tighten spacing between the two consent rows */

.hbspt-form .hs_privacy_policy {
  margin-bottom: 0 !important;
}

.hbspt-form .hs_newsletter_subscriber__c {
  margin-top: -1px !important;
}

/* ==========================================================
   PRODUCT OF INTEREST — CUSTOM DROPDOWN
   ========================================================== */

.hs_product_of_interest__c {
  position: relative;
}

/* Hide HubSpot's original checkbox list visually */

.hs_product_of_interest__c>.input {
  position: relative;
}

.hs_product_of_interest__c .inputs-list.multi-container {
  position: absolute !important;

  top: calc(100% + 6px);
  left: 0;

  z-index: 100;

  width: 100% !important;

  display: none;

  margin: 0 !important;
  padding: 8px !important;

  list-style: none !important;

  background: #fff;

  border: 1px solid rgba(41, 51, 60, 0.15);
  border-radius: 16px;

  box-shadow:
    0 12px 32px rgba(41, 51, 60, 0.12);

  max-height: 280px;
  overflow-y: auto;
}

/* Open state */

.hs_product_of_interest__c.is-open .inputs-list.multi-container {
  display: block !important;
}

/* Custom select button */

.kpler-product-select {
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  width: 100%;
  height: 44px;

  padding: 6px 16px;

  background: rgba(41, 51, 60, 0.05);

  border: 1px solid rgba(41, 51, 60, 0.15);
  border-radius: 72px;

  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;

  color: #8e98a1;

  cursor: pointer;

  text-align: left;

  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.kpler-product-select:hover {
  border-color: rgba(41, 51, 60, 0.25);
}

.kpler-product-select.is-selected {
  color: #29333c;
}

/* Text area */

.kpler-product-select__text {
  flex: 1;
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Arrow */

.kpler-product-select__arrow {
  flex: 0 0 9px;

  width: 9px;
  height: 9px;

  border-right: 2px solid #747d84;
  border-bottom: 2px solid #747d84;

  transform:
    translateY(-2px) rotate(45deg);

  transition: transform 180ms ease;
}

.hs_product_of_interest__c.is-open .kpler-product-select__arrow {
  transform:
    translateY(2px) rotate(225deg);
}

/* ==========================================================
   OPTIONS
   ========================================================== */

.hs_product_of_interest__c .hs-form-checkbox {
  list-style: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

.hs_product_of_interest__c .hs-form-checkbox-display {
  display: flex !important;
  align-items: center !important;
  gap: 10px;

  width: 100%;

  padding: 8px 10px !important;
  margin: 0 !important;

  border-radius: 8px;

  cursor: pointer;

  transition: background 120ms ease;
}

.hs_product_of_interest__c .hs-form-checkbox-display:hover {
  background: rgba(41, 51, 60, 0.05);
}

/* Option checkbox */

.hs_product_of_interest__c .hs-form-checkbox-display input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;

  position: relative;

  flex: 0 0 16px;

  width: 16px !important;
  height: 16px !important;

  min-width: 16px;

  margin: 0 !important;

  background: #fff !important;

  border: 1px solid rgba(41, 51, 60, 0.25) !important;
  border-radius: 4px !important;

  cursor: pointer;
}

.hs_product_of_interest__c .hs-form-checkbox-display input[type="checkbox"]:checked {
  background: #ff5349 !important;
  border-color: #ff5349 !important;
}

.hs_product_of_interest__c .hs-form-checkbox-display input[type="checkbox"]:checked::after {
  content: "";

  position: absolute;

  left: 5px;
  top: 2px;

  width: 3px;
  height: 7px;

  border: solid white;
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

.hbspt-form .kpler-product-select {
  color: #29333c;
}

/* Option label */

.hs_product_of_interest__c .hs-form-checkbox-display>span {
  font-family: "Outfit", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;

  color: #29333c !important;
}

/* ==========================================================
   VALIDATION
   ========================================================== */

.hbspt-form .hs-error-msgs {
  list-style: none !important;

  margin: 3px 0 0 !important;
  padding: 0 !important;
}

.hbspt-form .hs-error-msg {
  display: block;

  margin: 0 !important;

  font-family: "Outfit", sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;

  color: #d83a32 !important;
}

.hbspt-form input.error,
.hbspt-form select.error {
  border-color: rgba(216, 58, 50, 0.55) !important;
}

/* ==========================================================
   SUBMIT
   ========================================================== */

.hbspt-form .hs_submit {
  width: 100%;

  margin: 2px 0 0 !important;
  padding: 0 !important;
}

.hbspt-form .hs_submit .actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center;

  width: 100%;

  margin: 0 !important;
  padding: 0 !important;
}

.hbspt-form input.hs-button[type="submit"] {
  box-sizing: border-box;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 0 !important;
  height: auto !important;

  margin: 0 !important;
  padding: 7px 20px !important;

  background: var(--kpler-red) !important;

  border: 1px solid var(--kpler-red) !important;
  border-radius: 100px !important;

  box-shadow: none !important;

  color: #fff !important;

  font-family: "Outfit", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;

  text-shadow: none !important;

  cursor: pointer;

  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.hbspt-form input.hs-button[type="submit"]:hover {
  opacity: 0.9;
}

.hbspt-form input.hs-button[type="submit"]:active {
  transform: scale(0.98);
}

/* ==========================================================
   RECAPTCHA LEGAL TEXT — FULL WIDTH
   ========================================================== */

.hbspt-form form>fieldset:has(.legal-consent-container) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.hbspt-form .legal-consent-container {
  grid-column: 1 / -1 !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

.hbspt-form .legal-consent-container .hs-richtext {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  margin: 12px 0 0 !important;
  padding: 0 !important;

  text-align: center !important;

  font-family: "Outfit", sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;

  color: var(--kpler-gunmetal) !important;
}

.hbspt-form .legal-consent-container .hs-richtext p {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media screen and (max-width: 767px) {

  .hbspt-form form {
    display: flex !important;
    flex-direction: column;

    width: 100% !important;

    padding: 24px 20px !important;

    row-gap: 0;
  }

  .hbspt-form form>fieldset {
    display: block !important;
    width: 100% !important;
  }

  .hbspt-form .form-columns-2 {
    display: block !important;
  }

  .hbspt-form .form-columns-2>.hs-form-field,
  .hbspt-form .hs-form-field,
  .hbspt-form .hs-dependent-field {
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  .hbspt-form .hs_product_of_interest__c .inputs-list {
    grid-template-columns: 1fr;
  }

  .hbspt-form input.hs-button[type="submit"] {
    font-size: 16px !important;
  }
}
