/* ==========================================================================
 Author's custom styles
 ========================================================================== */


@import "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/css/intlTelInput.css";




.iti__flag {
  background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags.png");
}




@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags@2x.png");
  }
}




.iti {
  width: 100% !important;
}




.iti__country-list {
  max-width: 320px;
  overflow-x: hidden;
  font-size: 14px;
}




.iti--allow-dropdown .iti__flag-container, .iti--separate-dial-code .iti__flag-container {
  z-index: 99;
}




.iti--separate-dial-code .iti__selected-dial-code {
  font-size: 14px;
}




input {
  outline: none;
  box-shadow: none;
}




.is-error {
  border: 1px solid #ff0000 !important;
}




.error-message {
  position: absolute;
  bottom: -3px;
  left: 0;
  z-index: 2;
  width: 100%;
  font-size: 12px;
  line-height: 1;
  color: #ff0000;
  padding-bottom: 3px;
  -moz-transform: translateY(100%);
  -webkit-transform: translateY(100%);
  -o-transform: translateY(100%);
  -ms-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: all 400ms ease;
  -moz-transition: all 400ms ease;
  -ms-transition: all 400ms ease;
  -o-transition: all 400ms ease;
  transition: all 400ms ease;
}




.error-code {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #ff0000;
  padding: 12px 16px;
  background: #ffffff;
  -moz-transform: translateY(-105%);
  -webkit-transform: translateY(-105%);
  -o-transform: translateY(-105%);
  -ms-transform: translateY(-105%);
  transform: translateY(-105%);
  -webkit-transition: all 400ms ease;
  -moz-transition: all 400ms ease;
  -ms-transition: all 400ms ease;
  -o-transition: all 400ms ease;
  transition: all 400ms ease;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -khtml-border-radius: 10px;
  border-radius: 10px;
}


.error-message {
  position: relative;
  bottom: -3px;
  transform: translateY(0%);
}




/* ==========================================================================
 Sovenka lead-form integration: the field wrapper is a flex row, so the
 injected .error-message needs to wrap onto its own line instead of
 squeezing into the row and overflowing it.
 ========================================================================== */
[data-lead-form] [data-form-fields] label,
[data-lead-form] [data-form-fields] .input-box {
  flex-wrap: wrap;
}

[data-lead-form] .error-message {
  flex-basis: 100%;
  order: 3;
  white-space: normal;
}




/* ==========================================================================
 Sovenka lead-form integration: checkmark glyph for the agreement checkbox
 (drawn in --ink on top of the existing checked:bg-accent fill, same pair
 of colors already used for accent-filled controls elsewhere on the site)
 and a disabled state for the submit button while it is unchecked.
 ========================================================================== */
[data-lead-form] input[type="checkbox"] {
  position: relative;
}

[data-lead-form] input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 75% 75%;
  mask-size: 75% 75%;
}

[data-lead-form] button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
