form.hs-form {
  font-size: 1.6em;
  font-weight: 300;
}

form.hs-form fieldset {
  max-width: none !important;
}

form.hs-form fieldset.form-columns-2 {
  margin: 0 -0.5em !important;
}

form.hs-form fieldset.form-columns-2 .hs-form-field {
  padding: 0 0.5em;
}

form.hs-form .hs-form-required {
  display: none;
}

form.hs-form .hs-form-field {
  display: flex;
  flex-direction: column;
  margin: 0 0 1em;
}

@media (max-width: 767px) {
  form.hs-form .hs-form-field {
    float: none !important;
    width: 100% !important;
  }
}

form.hs-form .hs-form-field .input {
  margin: 0 !important;
}

form.hs-form .hs-input {
  width: 100% !important;
}

/* Legends */

form.hs-form legend.hs-field-desc {
  font-size: 1em !important;
  font-weight: 300;
  border: 0;
  margin: 0 0 5px 0;
  color: #666666;
  padding: 0;
  line-height: inherit;
}

/* Labels */

form.hs-form label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 1em;
}

form.hs-form .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

form.hs-form label.hs-error-msg,
form.hs-form .hs_error_rollup label {
  color: #dc3232;
  font-weight: normal !important;
  display: block;
}

/* Inputs */

form.hs-form input[type="text"],
form.hs-form input[type="search"],
form.hs-form input[type="email"],
form.hs-form input[type="password"],
form.hs-form input[type="tel"],
form.hs-form input[type="number"],
form.hs-form input[type="file"],
form.hs-form select,
form.hs-form textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: 1;
  font-weight: inherit;
  width: 100% !important;
  direction: ltr;
  padding: 2px;
}

/* Inputs - Intl phone */

form.hs-form .hs-fieldtype-intl-phone.hs-input {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-right: 1em;
}

form.hs-form .hs-fieldtype-intl-phone.hs-input select {
  width: 30% !important;
  margin-right: 1em;
}

form.hs-form .hs-fieldtype-intl-phone.hs-input input {
  width: 70% !important;
}

/* Inputs - Textarea */

form.hs-form .hs-input.hs-fieldtype-textarea {
  width: 100% !important;
  resize: vertical;
  height: 50px;
  min-height: 50px;
}

/* Inputs - Date picker */

form.hs-form .hs-fieldtype-date .input .hs-dateinput:before {
  color: #000000;
}

form.hs-form .fn-date-picker td.is-selected .pika-button {
  background: #000000;
}

form.hs-form .fn-date-picker td .pika-button:hover {
  background-color: #000000 !important;
}

form.hs-form .fn-date-picker td.is-today .pika-button {
  color: #000000;
}

/* Inputs - Checkbox */

form.hs-form label.hs-form-booleancheckbox-display {
  display: flex;
  flex-wrap: nowrap;
  gap: 1em;
  font-weight: 500;
}

form.hs-form label.hs-form-booleancheckbox-display input {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  z-index: 2;
  position: relative;
  margin: 0;
  cursor: pointer;
  height: 24px !important;
  width: 24px !important;
  overflow: hidden;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cg data-name='Rettangolo 1' fill='%23fff' stroke='%23dfdfdf'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpath fill='none' d='M.5.5h23v23H.5z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  outline: none;
}

form.hs-form label.hs-form-booleancheckbox-display input:checked {
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cg data-name='Rettangolo 1' fill='%23fff' stroke='%23dfdfdf'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpath fill='none' d='M.5.5h23v23H.5z'/%3E%3C/g%3E%3Cpath data-name='Rettangolo 2' fill='%23000000' d='M6 6h12v12H6z'/%3E%3C/svg%3E");
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

/* Inputs - Radio */

form.hs-form label.hs-form-radio-display {
  display: flex;
  flex-wrap: nowrap;
  gap: 1em;
  font-weight: 500;
}

form.hs-form label.hs-form-radio-display input {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  z-index: 2;
  position: relative;
  margin: 0;
  cursor: pointer;
  height: 24px !important;
  width: 24px !important;
  overflow: hidden;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGl2ZWxsb18xIiBkYXRhLW5hbWU9IkxpdmVsbG8gMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogbm9uZTsKICAgICAgICBzdHJva2U6ICNkZmRmZGY7CiAgICAgIH0KCiAgICAgIC5jbHMtMiB7CiAgICAgICAgZmlsbDogI2ZmZjsKICAgICAgICBzdHJva2Utd2lkdGg6IDBweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2RlZnM+CiAgPHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMCwwaDI0djI0SDBWMFoiLz4KICA8cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMiwuNWgwYzYuNCwwLDExLjUsNS4xLDExLjUsMTEuNWgwYzAsNi40LTUuMSwxMS41LTExLjUsMTEuNWgwQzUuNiwyMy41LjUsMTguNC41LDEyaDBDLjUsNS42LDUuNi41LDEyLC41WiIvPgo8L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  outline: none;
}

form.hs-form label.hs-form-radio-display input:checked {
  background-color: #fff;
  background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGl2ZWxsb18xIiBkYXRhLW5hbWU9IkxpdmVsbG8gMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogIzAwMDsKICAgICAgfQoKICAgICAgLmNscy0xLCAuY2xzLTIgewogICAgICAgIHN0cm9rZS13aWR0aDogMHB4OwogICAgICB9CgogICAgICAuY2xzLTMgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgICAgc3Ryb2tlOiAjZGZkZmRmOwogICAgICB9CgogICAgICAuY2xzLTIgewogICAgICAgIGZpbGw6ICNmZmY7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9kZWZzPgogIDxnPgogICAgPHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMCwwaDI0djI0SDBWMFoiLz4KICAgIDxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTEyLC41aDBjNi40LDAsMTEuNSw1LjEsMTEuNSwxMS41aDBjMCw2LjQtNS4xLDExLjUtMTEuNSwxMS41aDBDNS42LDIzLjUuNSwxOC40LjUsMTJoMEMuNSw1LjYsNS42LjUsMTIsLjVaIi8+CiAgPC9nPgogIDxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTEyLDZoMGMzLjMsMCw2LDIuNyw2LDZoMGMwLDMuMy0yLjcsNi02LDZoMGMtMy4zLDAtNi0yLjctNi02aDBjMC0zLjMsMi43LTYsNi02WiIvPgo8L3N2Zz4=");
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

/* Placeholders */

form.hs-form ::-webkit-input-placeholder,
form.hs-form ::-moz-placeholder,
form.hs-form :-ms-input-placeholder,
form.hs-form ::placeholder {
  color: #999999;
}

/* Legal consent */

form.hs-form .legal-consent-container {
  margin: 0;
}

form.hs-form .legal-consent-container label {
  font-weight: 300;
  margin: 0;
}

form.hs-form .legal-consent-container a {
  color: #000000;
  text-decoration: underline;
}

form.hs-form .legal-consent-container a:hover {
  color: #000000;
  text-decoration: none;
}

form.hs-form .legal-consent-container p {
  font-size: 1em !important;
}

form.hs-form .legal-consent-container .hs-form-booleancheckbox-display > span {
  margin: 0 !important;
}

form.hs-form .legal-consent-container .field.hs-form-field {
  margin-bottom: 0.5em;
}

/* Submit button */

form.hs-form .hs-submit input[type="submit"],
form.hs-form .hs-submit .hs-button {
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid #000000;
  border-top: 1px solid #000000;
  text-transform: uppercase;
  font-family: "Cousine", monospace;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  width: 20%;
  min-width: 200px;
  padding: 10px 0;
  background: #ffffff;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 30px;
  line-height: 1em;
}

form.hs-form .hs-submit input[type="submit"]:hover,
form.hs-form .hs-submit input[type="submit"]:focus,
form.hs-form .hs-submit input[type="submit"]:active,
form.hs-form .hs-submit .hs-button:hover,
form.hs-form .hs-submit .hs-button:focus,
form.hs-form .hs-submit .hs-button:active {
  background: #000000;
  color: #ffffff;
}

/* reCAPTCHA */

form.hs-form .hs_recaptcha {
  height: 0;
  visibility: hidden;
  margin: 0;
}

/* Submitted message */

form.hs-form .submitted-message {
  position: relative;
  padding: 0.75em 1.25em;
  margin-bottom: 1em;
  border: 1px solid transparent;
  border-radius: 0;
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}