/**
 SASS files that don't get compiled into CSS. Do not put element selectors in here.
 Every file not starting with '_' should import this file if you want to use functions and mixins.
 */
/**
 * SASS variables
 *
 These are only used in the properties and abstract SASS files.
 */
/**
 Breakpoints and columns
 */
/**
 Text
 */
/**
Fill in the header styles, only write the properties you want to override.
 */
/**
  Buttons
 */
/**
 Breakpoints

 @param {Keyword} $breakpoint - The breakpoint name of the minimum width. Can be any of the names in the $breakpoint variable
 */
/**
  Custom column size.
  Especially handy inside other columns.

  @param {Number|string} $size - the size in columns or 'expand'/'shrink'.
  @param {number} $total - the total size in columns. Ignored when size is 'expand'/'shrink'
 */
/**
  Custom offset size.
  Especially handy inside other columns.

  @param {Number|string} $size - the size of the offset.
  @param {number} $total - the total size in columns.
  @param {string} - the side from the offset.
 */
:root {
  --form-columns: 1;
}

div:has(> form) {
  container-name: form-wrapper;
  container-type: inline-size;
}

form:not(.views-exposed-form) {
  display: grid;
  grid-template-columns: repeat(var(--form-columns), minmax(0, 1fr));
  gap: var(--form-item-margin) var(--gutter);
  margin-bottom: var(--form-margin-bottom);
}

@container form-wrapper (min-width: 640px) {
  form {
    --form-columns: 2;
    --form-item-margin: 0px;
  }
}
.form-item input.error,
.form-item textarea.error,
.form-item select.error {
  border: 2px solid red;
}

/* Inline error messages. */
.form-item--error-message:before {
  display: inline-block;
  width: 14px;
  height: 14px;
  content: "";
  vertical-align: sub;
  background-size: contain;
}

label {
  font-size: var(--font-size-label);
  color: var(--form-label-color);
  transition: color var(--transition-duration) var(--transition-effect);
}

label.form-required:after {
  content: "*";
}

input {
  accent-color: var(--accent-color);
}

input[readonly] {
  background-color: var(--light-gray);
  cursor: not-allowed;
}

.form-item label {
  display: block;
  margin-bottom: 4px;
}

.form-item:has(input:focus, textarea:focus) label {
  --form-label-color: var(--primary-dark-color);
}

[type=text],
[type=email],
[type=tel],
[type=password],
textarea {
  width: 100%;
  border-top: none;
  border-right: none;
  border-left: none;
  font-size: 1.5rem;
  color: var(--text-color);
  outline: none;
  background: transparent;
  margin-bottom: 50px;
  border-bottom: solid 1px var(--primary-dark-color);
}
[type=text]:focus-visible,
[type=email]:focus-visible,
[type=tel]:focus-visible,
[type=password]:focus-visible,
textarea:focus-visible {
  border-color: var(--primary-color);
  border-width: 1px;
}

textarea {
  margin-bottom: 10px;
}

.form-textarea-wrapper {
  width: 100%;
}

.webform-type-textarea,
.js-form-type-textarea,
.webform-type-checkbox,
.js-form-type-checkbox,
.captcha {
  grid-column: 1/-1;
}

.webform-type-checkbox,
.js-form-type-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: first baseline;
  gap: 15px;
}
.webform-type-checkbox label,
.js-form-type-checkbox label {
  flex: 1;
}

.form-item-consent, .js-form-type-checkbox {
  line-height: 26px; /* 160% */
  margin: 0;
  margin-bottom: 10px;
}
.form-item-consent input, .js-form-type-checkbox input {
  margin-top: 7px;
  display: none;
}
.form-item-consent input + label, .js-form-type-checkbox input + label {
  display: -webkit-inline-box;
  margin-left: 0px;
  color: var(--text-color);
  font-size: 1rem;
}
.form-item-consent input + label:before, .js-form-type-checkbox input + label:before {
  content: "";
  width: 20px;
  border-radius: 0px;
  height: 20px;
  display: block;
  transition: 0.4s ease;
  margin-right: 10px;
  margin-top: 0px;
  border: solid 1px var(--primary-dark-color);
  background-color: transparent;
}
.form-item-consent input + label:after, .js-form-type-checkbox input + label:after {
  display: none;
}
.form-item-consent input:checked + label:before, .js-form-type-checkbox input:checked + label:before {
  background-image: url("/themes/custom/elaba/images/icons/check.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 10px;
}

.captcha {
  padding: 0;
  border: none;
}
.captcha .captcha__title {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
