:root {
  --form-heading-size: 40px;
}

.hero-form {
  border-radius: 8px;
  background: #f5f5f7;
  padding: 43px 52px;
  display: flex;
  flex-flow: column;
  color: #121017;
  max-width: 100%;

  --form-font-size: 14px;
}

.hero-form h3 {
  color: #121017;
  font-family: var(--secondary-font), var(--primary-font), "sans-serif";
  font-size: var(--form-heading-size);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}

.hero-form .hs-form-field {
  margin-bottom: 0;
}

.hero-form form label {
  margin: 0;
}

.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="tel"],
.hero-form .hs-custom-form .hs-phone select,
.hero-form .hs-fieldtype-select .input,
.hero-form textarea {
  font-family:
    var(--secondary-font), var(--primary-font), "sans-serif" !important;
  width: 100%;
  border: 1px solid #c2c0cc;
  background: rgb(255 255 255 / 58%);
  height: 50px;
  color: #121017;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 20px;
  padding: 13px 20px;
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
  color: #121017;
  font-weight: 500;
}

.hero-form .hs-custom-form .hs-phone select,
.hero-form .hs-fieldtype-select .input {
  position: relative;
}

.hero-form .hs-fieldtype-select .input select {
  border: none;
  outline: none;
  background: 0 0;
  color: #121017;
  width: 100%;
  max-width: 100%;
  font-family: var(--secondary-font), var(--primary-font), "sans-serif";
  font-size: 16px;
  font-weight: 500;
  appearance: none;
  padding: 0;
}

.hero-form .hs-custom-form .hs-fieldtype-intl-phone.hs-input input {
  width: 68% !important;
}

.hero-form .hs-custom-form .hs-phone .input select {
  width: 30% !important;
  margin-bottom: 0;
  padding: 0 5px 0 10px;
}

.hero-form .hs-custom-form .hs-phone select::after,
.hero-form .hs-fieldtype-select .input::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  border: 2px solid #121017;
  transform: rotate(45deg);
  border-top: 0;
  border-left: 0;
  right: 21px;
  top: 18px;
}

.hero-form .hs-custom-form .hs-phone select option,
.hero-form .hs-fieldtype-select select option {
  font-family: var(--secondary-font), var(--primary-font), "sans-serif";
  color: var(--grayscale-black);
}

.hero-form
  .hs-fieldtype-select
  select:not(:-internal-list-box, [multiple])
  option {
  min-inline-size: 24px;
  min-block-size: -internal-auto-base(24px, max(24px, 1 lh));
  font-weight: -internal-auto-base(normal, inherit);
  padding-block-end: -internal-auto-base(1px, 0);
  display: -internal-auto-base(block, flex);
  align-items: center;
  padding-inline: -internal-auto-base(2px, 0.5em);
  gap: 0.5em;
}

.hero-form textarea {
  height: 75px;
}

form[data-form-id="1d74a3a7-c687-4fd2-a51d-72a1ec54ac8d"]
  .hs_technical_challenges
  .input {
  line-height: 0;
}

form[data-form-id="1d74a3a7-c687-4fd2-a51d-72a1ec54ac8d"]
  .input
  > [name="technical_challenges"] {
  padding: 0;
  margin: 0;
  opacity: 0;
  height: 0;
  visibility: hidden;
}

.hero-form .legal-consent-container .hs-form-booleancheckbox em {
  color: inherit;
  line-height: inherit;
}

.hero-form fieldset.form-columns-1 > div:last-child .input,
.hero-form fieldset.form-columns-2 > div:last-child .input {
  margin-right: 0;
}

.hero-form fieldset.form-columns-2,
.hero-form fieldset.form-columns-1 {
  width: 100%;
}

.hero-form .legal-consent-container a > * {
  color: inherit;
}

.hero-form .legal-consent-container a {
  color: #ff633a;
  line-height: inherit;
}

.hero-form .legal-consent-container span a:hover {
  text-decoration: underline;
}

.hero-form .legal-consent-container .hs-richtext,
.hero-form .legal-consent-container .hs-form-booleancheckbox-display p,
.hero-form .hs-form-booleancheckbox span {
  margin: 0;
  color: #121017;
  font-family: var(--secondary-font), var(--primary-font), "sans-serif";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
}

.hero-form .inputs-list li {
  list-style: none;
  background: 0 0;
  margin: 0;
  padding: 0;
}

.hero-form .legal-consent-container .field.hs-form-field {
  margin-bottom: 0;
}

.hero-form .legal-consent-container .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
}

.hero-form .legal-consent-container .hs-form-booleancheckbox-display input {
  display: flex;
  float: none;
  margin-bottom: 0;
  margin-top: 4px;
}

.hero-form .hs-custom-form .hs-form-field.hs-recaptcha .grecaptcha-badge {
  margin-left: 0;
}

.hero-form .hs-custom-form .hs-form-field.hs-recaptcha {
  margin-top: 18px;
}

.hero-form .legal-consent-container .hs-form-booleancheckbox-display > span {
  display: block;
  margin-left: 10px !important;
}

.hero-form .actions {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.hero-form input.hs-button.primary.large {
  font-family:
    var(--primary-font), var(--secondary-font), "sans-serif" !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  align-items: center;
  transition: all 0.3s ease;
  display: inline-flex;
  flex-flow: row;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: pre-wrap;
  appearance: none;
  min-height: 56px;
  background: var(--grayscale-black);
  padding: 12px 12px 12px 20px;
  color: #fff;
  background-image: url("https://info.yugabyte.com/hubfs/19913802/themes/yugabytedb/images/button-arrow-white.svg");
  background-size: auto;
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  padding-right: 58px;
  margin: 20px 0 0;
  cursor: pointer;
}

.hs-thank-you-message h3,
.hero-form .submitted-message * {
  color: #121017;
  font-size: 22px;
  font-family: var(--primary-font), var(--secondary-font), "sans-serif";
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.hero-form input[type="text"]:focus,
.hero-form input[type="email"]:focus,
.hero-form input[type="tel"]:focus,
.hero-form textarea:focus,
.hero-form input[type="text"]:focus-visible,
.hero-form input[type="email"]:focus-visible,
.hero-form input[type="tel"]:focus-visible,
.hero-form textarea:focus-visible,
.hero-form .hs-fieldtype-select .input.focus-field {
  border: 1px solid #735af5;
  outline: none;
}

.hero-form input[type="text"].invalid.error,
.hero-form input[type="email"].invalid.error,
.hero-form input[type="tel"].invalid.error,
.hero-form .hs-fieldtype-select .input.invalid.error,
.hero-form textarea.invalid.error,
.hero-form .hs-fieldtype-select .input.invalid-error {
  border: 1px solid #bf2933;
}

.hero-form label.hs-error-msg.hs-main-font-element,
.hero-form .hs-error-msgs label {
  margin: 0 0 10px;
  margin-top: -20px;
  display: block;
  color: #bf2933;
  font-family: var(--secondary-font), var(--primary-font), "sans-serif";
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-form .hs-custom-form {
  display: flex;
  flex-flow: wrap;
  gap: 0 10px;
}

.hero-form .hs-custom-form .hs-form-field {
  width: 100%;
}

.hero-form .hs-custom-form .hs-phone input.hs-input {
  margin-bottom: 20px;
}

.hero-form .hs-custom-form fieldset.hero-formumns-1 {
  width: 100%;
}

.hero-form .hs-dependent-field {
  width: 100%;
}

.hero-form .footer-note {
  color: #121017;
  font-family: var(--secondary-font), var(--primary-font), "sans-serif";
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding-right: 40px;
  margin-top: auto;
}

.hero-form .legal-consent-container {
  font-size: var(--form-font-size);
  line-height: 1.2;
  color: #121017;
}

.hero-form .legal-consent-container .hs-richtext br:first-child {
  display: none;
}

.hero-form .legal-consent-container .hs-form-booleancheckbox-display *,
.hero-form .legal-consent-container .hs-form-booleancheckbox-display > span,
.hero-form .legal-consent-container .hs-richtext {
  font-size: var(--form-font-size);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-form .legal-consent-container .hs-richtext:last-child {
  margin-bottom: 0;
}

.yb-form-10 {
  --form-font-size: 10px;
}

.yb-form-12 {
  --form-font-size: 12px;
}

.yb-form-14 {
  --form-font-size: 14px;
}

.yb-form-16 {
  --form-font-size: 16px;
}

.hs_technical_challenges.hs-technical_challenges.hs-fieldtype-textarea.field.hs-form-field {
  height: 0;
}

.hs_technical_challenges.hs-technical_challenges.hs-fieldtype-textarea.field.hs-form-field
  .input
  > [name="technical_challenges"] {
  height: 0;
  opacity: 0;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

.yb-form-heading-40 {
  --form-heading-size: 40px;
}

.yb-form-heading-32 {
  --form-heading-size: 32px;
}

.yb-form-heading-24 {
  --form-heading-size: 24px;
}

.yb-form-heading-20 {
  --form-heading-size: 20px;
}

.inline-message.hidden {
  display: none;
}

@media (max-width: 1199px) {
  .yb-form-heading-40 {
    --form-heading-size: 24px;
  }

  .yb-form-heading-32 {
    --form-heading-size: 22px;
  }

  .yb-form-heading-24 {
    --form-heading-size: 20px;
  }

  .yb-form-heading-20 {
    --form-heading-size: 18px;
  }
}

@media (max-width: 1024px) {
  .hero-form {
    width: 550px;
    margin: 0 auto;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .hero-form {
    padding: 20px;
  }

  .hero-form fieldset.form-columns-2 > div {
    width: 100% !important;
  }

  .hero-form fieldset.form-columns-2 .input {
    margin-right: 0 !important;
  }
}

@media (max-width: 991px) {
  .hero-form {
    width: 600px;
  }

  .yb-hero-section .hero-form {
    width: 100%;
    margin: 0 auto !important;
  }
}

@media (max-width: 767px) {
  .hero-form {
    padding: 32px;
    margin-top: 0;
    min-width: 10px;
  }

  .hero-form .hs-custom-form .hs-firstname,
  .hero-form .hs-custom-form .hs-lastname,
  .hero-form .hs-custom-form .hs-phone,
  .hero-form .hs-custom-form .hs-company {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .hero-form fieldset.form-columns-2 .input {
    margin-right: 0 !important;
  }

  .hero-form {
    padding: 32px 20px;
  }
}

/* "Fit to column" option */
@media (max-width: 1024px) {
  .hero-form.hero-form--fit {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .hero-form.hero-form--fit {
    margin-top: 32px;
  }
}

/* Shrink the 256px reCAPTCHA badge only where it doesn't fit */
.hero-form .hs-recaptcha {
  container-type: inline-size;
}

@container (max-width: 255px) {
  .hero-form .grecaptcha-badge {
    transform: scale(0.84);
    transform-origin: left top;
  }
}

/* Pop-up (added by module.js) */
.hero-form-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgb(18 16 23 / 70%);
}

.hero-form.hero-form--popup {
  position: fixed;
  inset: 0;
  z-index: 10002;
  width: calc(100% - 32px);
  max-width: 560px;
  height: fit-content;
  max-height: calc(100% - 32px);
  margin: auto !important;
  padding: 40px 32px 32px;
  overflow-y: auto;
}

.hero-form.hero-form--popup > * {
  flex-shrink: 0;
}

.hero-form .hero-form-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121017;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 479px) {
  .hero-form.hero-form--popup {
    padding: 40px 20px 24px;
  }
}

/* Dropdowns: the whole box opens the list */
.hero-form .hs-fieldtype-select .input {
  padding: 0;
}

.hero-form .hs-fieldtype-select .input select {
  height: 100%;
  padding: 0 40px 0 20px;
  cursor: pointer;
}

.hero-form .hs-fieldtype-select .input::after {
  pointer-events: none;
}

/* Pop-up dropdowns open below the field (Chrome/Edge with a mouse) */
@media (pointer: fine) {
  @supports (appearance: base-select) {
    .hero-form.hero-form--popup .hs-fieldtype-select .input select,
    .hero-form.hero-form--popup
      .hs-fieldtype-select
      .input
      select::picker(select) {
      appearance: base-select;
    }

    .hero-form.hero-form--popup .hs-fieldtype-select .input select {
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 0;
      border: 0;
      background: transparent;
    }

    .hero-form.hero-form--popup .hs-fieldtype-select select::picker-icon {
      display: none;
    }

    .hero-form.hero-form--popup .hs-fieldtype-select select::picker(select) {
      position-area: block-end span-all;
      position-try-fallbacks: none;
      width: anchor-size(width);
      max-height: min(260px, 100%);
      margin: 0;
      padding: 4px 0;
      border: 1px solid #c2c0cc;
      border-radius: 4px;
      background: #fff;
      overflow-y: auto;
    }

    .hero-form.hero-form--popup .hs-fieldtype-select select option {
      min-height: 0;
      padding: 8px 20px;
      font-size: 16px;
      cursor: pointer;
    }

    .hero-form.hero-form--popup .hs-fieldtype-select select option::checkmark {
      display: none;
    }

    /* Same blue highlight as the browser's own list */
    .hero-form.hero-form--popup .hs-fieldtype-select select option:hover,
    .hero-form.hero-form--popup
      .hs-fieldtype-select
      select:not(:has(option:hover))
      option:focus {
      background: #0075ff;
      background: AccentColor;
      color: #fff;
    }
  }
}
