/* BASE - Definition of general field behavior */

.hubspot-form .hbspt-form h2 {
  margin-bottom: 1.25rem;
}

.hubspot-form .hs-form div.input {
  border-style: none;
  margin: 0;
  padding: 0;
}

.hubspot-form .hs-form-field {
  position: relative;
  margin-bottom: 1.25rem;
}

.hubspot-form .hs-form a {
  text-decoration-line: underline;
}

.hubspot-form .hs-field-desc {
  font-size: clamp(0.7563rem, 0.7685rem + -0.0617vw, 0.6944rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #706f6f;
}

.hubspot-form .hs-form ul {
  display: flex;
}

/* mobile behavior of fieldsets and radio button rows (stack on mobile in full display width) */
@media (max-width: 768px) {
  .hubspot-form fieldset {
    flex-direction: column;
    gap: 0;
  }

  .hubspot-form fieldset.form-columns-2 .hs-form-field,
  .hubspot-form fieldset.form-columns-3 .hs-form-field {
    width: 100% !important;
  }

  .hubspot-form .hs-form ul {
    display: block;
  }
}

/* form title styling */
.hubspot-form .form-title {
  margin: 0;
  text-align: center;
}

.hubspot-form .form-title ~ div > form {
  border-top-width: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* headings and text styling */
.hubspot-form .hs-richtext {
  line-height: 1.5;
}

.hubspot-form form .hs-richtext {
  line-height: 1.5;
}

.hubspot-form form .hs-richtext img {
  max-width: 100% !important;
  line-height: 1.5;
}

.hubspot-form form .header {
  border-style: none;
  background-color: transparent;
}

/* GDPR text styling */
.hubspot-form .legal-consent-container .hs-form-booleancheckbox-display > span,
.hubspot-form .legal-consent-container .hs-form-booleancheckbox-display > span p {
  line-height: 1.5;
}

/* form field label styling */

.hubspot-form .hs-form-field > label {
  display: block;
  margin-bottom: 0.5rem;
  width: auto;
  text-align: left;
  font-size: clamp(0.8694rem, 0.8768rem + -0.0362vw, 0.8331rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: #000000;
}

/* FIELDTYPE: INPUT POSITION AND STYLES — matches passthrough-inputtext.ts */

.hubspot-form .input {
  position: relative;
  width: 100%;
}

.hubspot-form input[type='text'],
.hubspot-form input[type='email'],
.hubspot-form input[type='password'],
.hubspot-form input[type='tel'],
.hubspot-form input[type='number'],
.hubspot-form input[type='file'],
.hubspot-form textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 100% !important;
  height: 3rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px #4a4a49;
  font-family: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1;
  color: #000000;
  transition-property: all;
  transition-duration: 200ms;
}

.hubspot-form input[type='text']::placeholder,
.hubspot-form input[type='email']::placeholder,
.hubspot-form input[type='password']::placeholder,
.hubspot-form input[type='tel']::placeholder,
.hubspot-form input[type='number']::placeholder,
.hubspot-form input[type='file']::placeholder,
.hubspot-form textarea::placeholder {
  color: #929292;
}

.hubspot-form input[type='text']:hover,
.hubspot-form input[type='email']:hover,
.hubspot-form input[type='password']:hover,
.hubspot-form input[type='tel']:hover,
.hubspot-form input[type='number']:hover,
.hubspot-form input[type='file']:hover,
.hubspot-form textarea:hover {
  box-shadow: inset 0 0 0 2px #2e2d2c;
}

.hubspot-form input[type='text']:focus,
.hubspot-form input[type='email']:focus,
.hubspot-form input[type='password']:focus,
.hubspot-form input[type='tel']:focus,
.hubspot-form input[type='number']:focus,
.hubspot-form input[type='file']:focus,
.hubspot-form textarea:focus {
  background-color: #f6f6f6;
  color: #2e2d2c;
  box-shadow: inset 0 0 0 2px #2e2d2c;
}

.hubspot-form select::-ms-expand {
  display: none;
}

.hubspot-form fieldset {
  display: flex !important;
  max-width: 100% !important;
  gap: 8px !important;
}

.hubspot-form fieldset.form-columns-2 .hs-form-field,
.hubspot-form fieldset.form-columns-3 .hs-form-field {
  width: auto !important;
  flex: 1 1 0%;
}

.hubspot-form div.input {
  padding-right: 0.5rem;
}

/* FIELDTYPE: DROPDOWN SELECT — matches passthrough-select.ts */

.hubspot-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 200px;
  width: 100% !important;
  height: 3rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #4a4a49;
  cursor: pointer;
  font-family: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: #4a4a49;
  transition-property: all;
  transition-duration: 200ms;
}

.hubspot-form select:hover {
  box-shadow: inset 0 0 0 2px #2e2d2c;
}

.hubspot-form select:focus {
  background-color: #f6f6f6;
  color: #2e2d2c;
  box-shadow: inset 0 0 0 2px #2e2d2c;
}

.hubspot-form .hs-fieldtype-select .input::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: inline-block;
  padding: 0.25rem;
  border: solid #4a4a49;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

/* FIELDTYPE: CHECKBOX/ RADIO BASE SETUP */

.hubspot-form form .inputs-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.hubspot-form .inputs-list > li {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

.hubspot-form input[type='checkbox'],
.hubspot-form input[type='radio'] {
  display: none;
  height: auto;
  width: auto;
  padding: 0;
  cursor: pointer;
}

/* CUSTOM CHECKBOX STYLING — matches passthrough-checkbox.ts */

.hubspot-form .hs-form-booleancheckbox-display span,
.hubspot-form .hs-form-checkbox span {
  position: relative;
  margin-left: 0 !important;
  padding: 0;
}

.hubspot-form .hs-form-booleancheckbox label,
.hubspot-form .hs-form-checkbox label {
  text-indent: 2em hanging;
}

.hubspot-form .hs-form-booleancheckbox span:not(.hs-form-required)::before,
.hubspot-form .hs-form-checkbox span:not(.hs-form-required)::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  height: 1.5rem;
  width: 1.5rem;
  vertical-align: middle;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #4a4a49;
  background-color: #ffffff;
  cursor: pointer;
  transition-property: all;
  transition-duration: 200ms;
}

.hubspot-form .hs-form-booleancheckbox input:checked + span::before,
.hubspot-form .hs-form-booleancheckbox input:checked + span:not(.hs-form-required)::before,
.hubspot-form .hs-form-checkbox input:checked ~ span::before {
  background-color: #000000;
  box-shadow: inset 0 0 0 1px #000000;
}

.hubspot-form .hs-form-booleancheckbox input:checked + span::after,
.hubspot-form .hs-form-booleancheckbox input:checked + span:not(.hs-form-required)::after,
.hubspot-form .hs-form-checkbox input:checked ~ span::after {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 0;
  margin-top: 0.25rem;
  margin-left: 0.25rem;
  height: 0.375rem;
  width: 0.875rem;
  border-bottom: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  transform: rotate(-60deg);
}

/* CUSTOM RADIO BUTTON STYLING — matches passthrough-radiobutton.ts */

.hubspot-form ul.inputs-list.multi-container li.hs-form-radio label {
  position: relative;
}

.hubspot-form ul.inputs-list.multi-container li.hs-form-radio label span {
  display: inline-block;
  margin-top: 0.5rem;
  margin-left: 2.5rem;
  margin-right: 1rem;
}

.hubspot-form ul.inputs-list.multi-container li.hs-form-radio label input {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  opacity: 0;
}

.hubspot-form ul.inputs-list.multi-container li.hs-form-radio label span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  border: 1px solid #4a4a49;
  border-radius: 9999px;
  transition-property: all;
  transition-duration: 200ms;
}

.hubspot-form ul.inputs-list.multi-container li.hs-form-radio label input:checked + span::before {
  border-color: #4a4a49;
}

.hubspot-form ul.inputs-list.multi-container li.hs-form-radio label input:checked + span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 9999px;
  background-color: #4a4a49;
  opacity: 1;
  transition-property: all;
  transition-duration: 200ms;
}

.hubspot-form ul.inputs-list.multi-container li.hs-form-radio label input:focus + span::before {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2e2d2c;
}

/* INPUT - DATEPICKER STYLING */

.hubspot-form .hs-fieldtype-date .input .hs-dateinput:before {
  content: '\01F4C5';
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
}

.hubspot-form .fn-date-picker td.is-selected .pika-button {
  border-radius: 0;
  box-shadow: none;
}

.hubspot-form .fn-date-picker td .pika-button:hover {
  border-radius: 0 !important;
}

/* ERROR MESSAGES - Styling and Positioning */

.hubspot-form .hs-form-field .hs-error-msg.hs-main-font-element {
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
  margin-left: 1.5rem;
  padding-top: 0;
  padding-bottom: 1.25rem !important;
  background-color: #ffffff;
  color: #d51130 !important;
}

.hubspot-form .hs_error_rollup {
  width: fit-content;
  padding: 0.5rem 1.5rem;
  background-color: #d51130;
  color: #ffffff;
}

/* SUBMIT BUTTON — matches SlvButton primary/standard (passthrough-button.ts) */

.hubspot-form .hs-button,
.hubspot-form .hs-form input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  height: 3rem;
  margin-top: 1.25rem;
  margin-right: 1rem;
  padding: 0 1.5rem;
  outline: none;
  background-color: #ffcc00;
  text-align: center;
  text-transform: uppercase;
  font-family: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 1rem + 0vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #4a4a49;
  cursor: pointer;
  transition-property: all;
  transition-duration: 200ms;
}

.hubspot-form .hs-button:hover,
.hubspot-form .hs-form input[type='submit']:hover {
  background-color: #ffd21f;
  color: #2e2d2c;
}

.hubspot-form .hs-button:active,
.hubspot-form .hs-form input[type='submit']:active {
  background-color: #ebbc02;
  color: #2e2d2c;
}

.hubspot-form .hs-button:focus-visible,
.hubspot-form .hs-form input[type='submit']:focus-visible {
  background-color: #ebbc02;
  color: #2e2d2c;
  outline: 2px dashed #4a4a49;
  outline-offset: 4px;
}

/* custom: SLV Submit Button Arrow */

.hubspot-form .hs-button::after,
.hubspot-form .hs-form input[type='submit']::after {
  content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 32 32' style='fill:%234b4b4d;'%3E%3Ctitle%3Ecaret-right%3C/title%3E%3Cpath d='M8.885 28.547l12.59-12.59-12.504-12.504c-0.302-0.302-0.302-0.789 0-1.091s0.789-0.302 1.091 0l13.053 13.053c0.302 0.302 0.302 0.789 0 1.091l-13.133 13.133c-0.148 0.148-0.345 0.228-0.543 0.228s-0.395-0.074-0.543-0.228c-0.308-0.302-0.308-0.789-0.012-1.091z'%3E%3C/path%3E%3C/svg%3E");
  display: inline-block;
  margin-left: 0.5rem;
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* custom: Submit hover */

.hubspot-form .hs-button:hover::after,
.hubspot-form .hs-form input[type='submit']:hover::after {
  content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 32 32' style='fill:%23ffffff;'%3E%3Ctitle%3Ecaret-right%3C/title%3E%3Cpath d='M8.885 28.547l12.59-12.59-12.504-12.504c-0.302-0.302-0.302-0.789 0-1.091s0.789-0.302 1.091 0l13.053 13.053c0.302 0.302 0.302 0.789 0 1.091l-13.133 13.133c-0.148 0.148-0.345 0.228-0.543 0.228s-0.395-0.074-0.543-0.228c-0.308-0.302-0.308-0.789-0.012-1.091z'%3E%3C/path%3E%3C/svg%3E");
  transform: translateX(0.25rem);
}

/* CAPTCHA - Position */

.hubspot-form .grecaptcha-badge {
  margin: 0 auto;
}

/* THANK YOU MESSAGE STYLING */

.hubspot-form .submitted-message {
  margin: 6rem 0;
  padding: 4rem 6rem;
  background-color: #f6f6f6;
  font-size: clamp(1rem, 1rem + 0vw, 1rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #2e2d2c;

  background-image: url(https://25577031.fs1.hubspotusercontent-eu1.net/hubfs/25577031/Logos%20%2B%20Icons/SLV_Icon_AUSGEWAEHLT_RGB.png);
  background-size: 25px;
  background-repeat: no-repeat;
  background-position: 2rem 3rem;
}
