.xleb-forms-alert {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  border-radius: 5px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); */
  /* opacity: 0.8; */
  /* padding: 10px 20px; */
  margin: 10px 0;
  color: var(--accentHoverColor);
}

.field-error {
  position: absolute;
  top: 100%;
  line-height: var(--textXSheightS);
  margin-top: var(--textXStopS);
  margin-bottom: var(--textXSbottomS);
  font-size: var(--textXSsize);
  letter-spacing: var(--textXSspacing);
  color: var(--error);
}

.xleb-forms-dialog {
  border-radius: 5px;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  margin: auto;
}

.xleb-forms-dialog>.inner {
  display: grid;
  padding: var(--gapX6);
}

.xleb-forms-dialog p {
  padding: 20px 0px;
}

.xleb-form {
  display: flex;
  flex-direction: column;
  gap: var(--gapX5);
  width: 100%;
  position: relative;
}

.input-box {
  display: flex;
  flex-direction: column;
  position: relative;
}

.input-box input[type="checkbox"] {
  max-width: fit-content;
  font-family: "Phosphor" !important;
  -webkit-text-stroke: 1px;
}

/* .input-box.accent input[type="checkbox"]::before {
  max-width: fit-content;
  font-family: "Phosphor" !important;
  -webkit-text-stroke: 1px;
  background: var(--accentColor);
  color: var(--white);
  font-size: 16px;
} */

.input-box.accent input[type="checkbox"]{
  max-width: fit-content;
  font-family: "Phosphor" !important;
  -webkit-text-stroke: 1px;
  background: transparent;
  color: var(--white);
  min-height: 22px;
  min-width: 22px;
}

.input-box.accent input[type=checkbox]:checked {
  max-width: fit-content;
  font-family: "Phosphor" !important;
  background: var(--accentColor);
  color: var(--white);
  -webkit-text-stroke: 1px;
  font-size: 16px;
  border: transparent;
  min-width: 24px;
  min-height: 24px;
}


.input-box:has(input[type="hidden"]) {
  display: none;
}

.xleb-form input[type=submit]:hover {
  background: var(--accentHoverColor);
}

.checkbox-group {
  margin-bottom: 15px;
}

.checkbox-item {
  margin-bottom: 5px;
  display: flex;
  gap: var(--gapX2);
}

.checkbox-item label {
  display: inline;
  font-weight: normal;
}

.input-box input[type="checkbox"] {
  display: grid;
  place-content: center;
  min-width: 22px;
  min-height: 22px;
  line-height: normal;
  border: 1px solid var(--inputBorder);
  background: transparent;
}

.input-box input[type="checkbox"]:hover {
  background: transparent;
  border: 1px solid var(--black);
}

input[type="checkbox"]::before {
  content: "\e182";
  /* width: 15px;
  height: 8px;
  border: 1px solid var(--mainColor); */
  border-width: 0 0 2px 2px;
  transform: scale(0) rotate(-45deg);
  transition: 120ms transform ease-in-out;
  font-size: 16px;
  -webkit-text-stroke: 1px;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.radio-item {
  display: flex;
  gap: var(--gapX2);
  align-items: center;
}

input[type="radio"] {
  padding: unset !important;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-content: center;
}

input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: black;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

.xleb-form .terms-field {
  display: flex;
  flex-direction: row;
  gap: var(--gapX3);
  align-items: baseline;
}

@keyframes trembling {
  0% {
    transform: translateX(-2px);
  }

  20% {
    transform: translateX(2px);
  }

  40% {
    transform: translateX(-2px);
  }

  60% {
    transform: translateX(2px);
  }

  80% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

.error-animation {
  animation: trembling 0.4s ease-in-out;
  border: 1px solid var(--inputErrorBorder) !important;
}

/* --- DaData AJAX Suggestions CSS --- */
.city-suggestions-container {
  position: relative; /* Needed for absolute positioning of the dropdown */
  margin-bottom: 1em; /* Or adjust as needed */
}

.city-suggestions-dropdown {
  position: absolute;
  left: 0;
  width: 100%;
  top: 100%;
  background-color: #ffffff;
  border: 1px solid var(--inputBg);
  border-top: none;
  max-height: 250px;
  /* max-width: 350px; */
  overflow-y: auto;
  z-index: 1001;
  display: none;
  /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  /* margin-top: var(--gapX2); */
  border-radius: var(--gapX1);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

.city-suggestions-dropdown.active {
  display: block; /* Show when active */
}

.suggestion-item {
  padding: var(--gapX3) var(--gapX4);
  cursor: pointer;
  font-size: var(--textMsize);
  border-top: 1px solid var(--blackOpacity100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: var(--textSheightT);
  margin: 0px;
  background-color: var(--inputBg);
}
.suggestion-item:last-child {
  border-bottom: none;
}

.xleb-form.sep-yes .suggestion-item:first-child{
  border-top: 1px solid var(--blackOpacity100);
  border-bottom: 1px solid var(--blackOpacity100);
}

.xleb-form.sep-yes .suggestion-item{
  border-bottom: 1px solid var(--blackOpacity100);
}


.xleb-form.sep-no .suggestion-item:first-child{
  border-top: 0px;
}

.xleb-form.sep-no .suggestion-item{
  border-top: 0px;
  border-bottom: 0px;
}

.xleb-form.outlined .suggestion-item{
  background: white;
}

.xleb-form.outlined.sep-yes .suggestion-item.highlighted{
  background-color: var(--inputBg);
  color: var(--contentColor);
}

.xleb-form.outlined.sep-no .suggestion-item.highlighted{
  background: transparent;
  color: var(--primary500);
}

.xleb-form.underline.sep-yes .suggestion-item{
  background: white;
}

.xleb-form.underline.sep-yes .suggestion-item.highlighted{
  background: var(--inputBg);
  color: var(--contentColor);
}

.xleb-form.underline.sep-no .suggestion-item{
  background: white;
  border-top: 0px;
  border-bottom: 0px;
}

.xleb-form.underline.sep-no .suggestion-item:first-child{
  background: white;
  border-top: 1px solid var(--blackOpacity100);
  border-bottom: 0px;
}

.xleb-form.underline.sep-no .suggestion-item.highlighted{
  background: white;
  color: var(--primary500);
}


/* Highlight style for hover and keyboard navigation */
.suggestion-item:hover,
.suggestion-item.highlighted {
  background-color: var(--inputBg);
  color: var(--accentColor);
}

/* Style for the region part */
.suggestion-item .region {
  color: var(--contentOpacityColor);
  font-size: var(--textSsize);
  margin-left: var(--gapX2);
}

/* Loading/No Results messages */
.city-suggestions-dropdown .loading,
.city-suggestions-dropdown .no-results {
  padding: var(--gap) var(--gapX4);
  color: var(--blackOpacity200);
  font-size: var(--textSsize);
  text-align: center;
}


/*----------------------------------------------UNDERLINE------------------------------------------*/

.xleb-form.underline.m input:not(.submit-input, .terms, .input-box input[type="checkbox"]),
.form-attach label{
  background: transparent;
  border-bottom: 1px solid var(--inputBorder);
  border-radius: unset;
  font-size: var(--textMsize);
  padding: 10px 20px 10px 0px;
}

.xleb-form.underline.l input:not(.submit-input, .terms, .input-box input[type="checkbox"]),
.form-attach label{
  background: transparent;
  border-bottom: 1px solid var(--inputBorder);
  border-radius: unset;
  font-size: var(--textLsize);
  padding: 10px 20px 10px 0px;
}

.xleb-form.underline.xl input:not(.submit-input, .terms, .input-box input[type="checkbox"]),
.form-attach label{
  background: transparent;
  border-bottom: 1px solid var(--inputBorder);
  border-radius: unset;
  font-size: var(--textXLsize);
  padding: 10px 20px 10px 0px;
}

.xleb-form.underline textarea {
    height: 120px;
    background: transparent;
    border-bottom: 1px solid var(--inputBorder);
    font-size: var(--textMsize);
    padding: var(--gapX4) var(--gapX4) auto 0px;
    border-radius: 0px;
}

.xleb-form.underline > .input-box > input.error-animation:not(.xleb-form.underline > .input-box > input.privacy.terms.error-animation){
    animation: trembling 0.4s ease-in-out;
    border: unset !important;
    border-bottom: 1px solid var(--inputBorder) !important;
}

.xleb-form.outlined.m input:not(.submit-input, .terms),
.form-attach label,
.xleb-form select{
  background: transparent;
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: var(--textMsize);
}

.xleb-form.outlined.l input:not(.submit-input, .terms),
.form-attach label,
.xleb-form select{
  background: transparent;
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: var(--textLsize);
}

.xleb-form.outlined.xl input:not(.submit-input, .terms),
.form-attach label,
.xleb-form select{
  background: transparent;
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: var(--textXLsize);
}

.xleb-form.filled.m input:not(.submit-input, .terms),
.form-attach label,
.xleb-form select{
  background: var(--inputBg);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: var(--textMsize);
}

.xleb-form.filled.l input:not(.submit-input, .terms),
.form-attach label,
.xleb-form select{
  background: var(--inputBg);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: var(--textLsize);
}

.xleb-form.filled.xl input:not(.submit-input, .terms),
.form-attach label,
.xleb-form select{
  background: var(--inputBg);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: var(--textXLsize);
}

.xleb-form.outlined textarea{
  height: 120px;
  background: transparent;
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: var(--textMsize);
  padding: var(--gapX4);
}

.xleb-form.filled textarea{
  height: 120px;
  background: var(--inputBg);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: var(--textMsize);
  padding: var(--gapX4);
}

.xleb-form.outlined input.error-animation{
  border: 1px solid var(--inputErrorBorder) !important;
}

.xleb-form.filled input.error-animation{
  background: var(--inputErrorBg) !important;
  border: transparent !important;
}

.radio-buttons .radio-item:first-child label{
  border-top-left-radius: var(--gapX1);
  border-bottom-left-radius: var(--gapX1);
}

.radio-buttons .radio-item:last-child label{
  border-top-right-radius: var(--gapX1);
  border-bottom-right-radius: var(--gapX1);
}

.radio-item label{
  display: block;
  padding: var(--gapX2) var(--gapX5);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-out;
  border: 1px solid var(--inputBorder);
  background-color: var(--bgColor);
  color: var(--contentColor);
}

.radio-item input[type="radio"]:checked + label {
  background-color: var(--primary500);
  color: var(--bgColor);
  border-color: var(--primary500);
  position: relative;
  z-index: 1;
}

.xleb-form .radio-buttons{
  display: flex;
  width: fit-content;
}

.xleb-form .radio-buttons .radio-item input[type="radio"] {
  display: none;
}

.xleb-form .radio-buttons .radio-item input:disabled + label{
  cursor: pointer;
  border-color: var(--btnOutlineDisableBorder);
  color: var(--btnOutlineDisableBorder);
}

@media (max-width: 991px){
  .xleb-form.underlined.m input:not(.submit-input, .terms){
    padding: 10px 1px;
    font-size: var(--textMsize);
    background: transparent;
    border-bottom: 1px solid var(--inputBorder);
    border-radius: unset;
  }
  .xleb-form.underlined.l input:not(.submit-input, .terms){
    padding: 13px 1px;
    font-size: var(--textLsize);
    background: transparent;
    border-bottom: 1px solid var(--inputBorder);
    border-radius: unset;
  }
  .xleb-form.underlined.xl input:not(.submit-input, .terms){
    padding: 9px 1px;
    font-size: var(--textXLsize);
    background: transparent;
    border-bottom: 1px solid var(--inputBorder);
    border-radius: unset;
  }
  .xleb-form.outlined.m input:not(.submit-input, .terms){
    padding: 10px 12px;
    font-size: var(--textMsize);
    background: transparent;
    border-bottom: 1px solid var(--inputBorder);
    border-radius: 4px;
  }
  .xleb-form.outlined.l input:not(.submit-input, .terms){
    padding: 12px 12px;
    font-size: var(--textLsize);
    background: transparent;
    border-bottom: 1px solid var(--inputBorder);
    border-radius: 4px;
  }
  .xleb-form.outlined.xl input:not(.submit-input, .terms){
    padding: 9px 12px;
    font-size: var(--textXLsize);
    background: transparent;
    border-bottom: 1px solid var(--inputBorder);
    border-radius: 4px;
  }
  .xleb-form.filled.m input:not(.submit-input, .terms){
    padding: 10px 12px;
    font-size: var(--textMsize);
    background: var(--inputBg);
    border: 1px solid transparent;
    border-radius: 4px;
  }
  .xleb-form.filled.l input:not(.submit-input, .terms){
    padding: 12px 12px;
    font-size: var(--textLsize);
    background: var(--inputBg);
    border: 1px solid transparent;
    border-radius: 4px;
  }
  .xleb-form.filled.xl input:not(.submit-input, .terms){
    padding: 9px 12px;
    font-size: var(--textXLsize);
    background: var(--inputBg);
    border: 1px solid transparent;
    border-radius: 4px;
  }
  .xleb-form.outlined textarea{
    height: 94px;
    background: transparent;
    border: 1px solid var(--inputBorder);
    border-radius: 4px;
    padding: var(--gapX3);
  }
  .xleb-form.filled textarea{
    height: 94px;
    background: var(--inputBg);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: var(--gapX3);
  }
  .input-box input[type="checkbox"] {
    display: grid;
    place-content: center;
    min-width: 18px;
    min-height: 18px;
    line-height: normal;
    border: 1px solid var(--inputBorder);
    background: transparent;
    border-radius: 3px;
  }

  .input-box input[type="checkbox"]:hover {
    display: grid;
    place-content: center;
    min-width: 18px;
    min-height: 18px;
    line-height: normal;
    border: 1px solid var(--black);
    background: transparent;
    border-radius: 3px;
  }

  /* .input-box.accent input[type="checkbox"]::before {
    max-width: fit-content;
    font-family: "Phosphor" !important;
    -webkit-text-stroke: 1px;
    background: var(--accentColor);
    color: var(--white);
    font-size: 14px;
    border: transparent;
  } */

  .input-box.accent input[type=checkbox]:checked {
    max-width: fit-content;
    font-family: "Phosphor" !important;
    -webkit-text-stroke: 1px;
    background: var(--accentColor);
    color: var(--white);
    font-size: 14px;
    border: transparent;
    min-width: 20px;
    min-height: 20px;
  }

  .input-box.accent input[type="checkbox"]{
    max-width: fit-content;
    font-family: "Phosphor" !important;
    -webkit-text-stroke: 1px;
    background: transparent;
    color: var(--white);
    border-radius: 3px;
    border: 1px solid var(--inputBorder);
    min-width: 18px;
    min-height: 18px;
  }

  .input-box.accent input[type="checkbox"]:checked{
    border: transparent;
  }

  
}

.custom-dropdown-container {
  position: relative;
  width: 100%;
  border: unset;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  /* margin-top: 5px; */
  display: flex;
}

.custom-dropdown-selected {
  padding: var(--gapX4);
  font-size: var(--textMsize);
  /* color: var(--inputPlaceholder); */
  border-radius: 4px;
  width: 100%;
}

.custom-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.custom-option {
  padding: 9px 0px 9px var(--gapX4);
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  color: var(--inputPlaceholder);
}

.custom-option:hover {
  background: #f0f0f0;
}

.custom-option.selected {
  background: #0073aa;
  color: var(--contentColor);
}

.custom-option:last-child {
  border-bottom: none;
}


.custom-dropdown-container .custom-dropdown-options {
    display: none;
}
.custom-dropdown-container.open .custom-dropdown-options {
    display: block;
}

.custom-dropdown-selected::after {
    display: flex;
    content: '\e136';
    font-family: "Phosphor";
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.custom-dropdown-selected:hover::after,
.custom-dropdown-selected.open::after {
    transform: rotate(180deg);
}


.xleb-form.filled .custom-dropdown-selected {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  background: var(--inputBg);
  padding: 9px var(--gapX4) 9px var(--gapX4);
  display: flex;
}

.xleb-form.filled .custom-dropdown-selected {
  border-radius: 4px;
  width: 100%;
}

.xleb-form.filled .custom-option {
    cursor: pointer;
    border-bottom: 1px solid var(--dividerDefault);
    transition: background 0.2s;
    background: var(--inputBg);
}

.xleb-form.outlined .custom-dropdown-selected {
  position: relative;
  width: 100%;
  border: 1px solid var(--dividerDefault);
  border-radius: 4px;
  border-color: var(--dividerDefault);
  cursor: pointer;
  background: transparent;
  margin-top: 5px;
  display: flex;
  padding: 9px var(--gapX4) 9px var(--gapX4);
}



.xleb-form.underline .custom-dropdown-selected {
  position: relative;
  width: 100%;
  border: unset;
  border-bottom: 1px solid var(--dividerDefault);
  cursor: pointer;
  background: transparent;
  display: flex;
  border-radius: unset;
}

.xleb-form.underline .custom-dropdown-selected {
  padding: 8px 0px;
  background: transparent;
  width: 100%;
}

.xleb-form.underline .custom-dropdown-container{
  border: unset;
}

.xleb-form.underline .custom-dropdown-selected::after {
    display: flex;
    content: '\e136';
    font-family: "Phosphor";
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.xleb-form.underline .custom-dropdown-selected:hover::after,
.xleb-form.underline .custom-dropdown-selected.open::after {
    transform: rotate(180deg);
}

.xleb-form.sep-yes .custom-option{
  border-bottom: 1px solid var(--dividerDefault);
  /* border-top: 1px solid var(--dividerDefault); */
}

.xleb-form.sep-no .custom-option{
  border-bottom: unset;
}

.xleb-form.outlined.sep-no .custom-dropdown-container.open .custom-dropdown-selected,
.xleb-form.filled.sep-no .custom-dropdown-container.open .custom-dropdown-selected{
  border-bottom: unset;
  border-bottom-left-radius: unset;
  border-bottom-right-radius: unset;
}

.xleb-form.filled.sep-yes .custom-option:hover,
.xleb-form.outlined.sep-yes .custom-option:hover,
.xleb-form.underline.sep-yes .custom-option:hover{
  color: var(--contentColor);
}

.xleb-form.filled.sep-no .custom-option:hover,
.xleb-form.outlined.sep-no .custom-option:hover,
.xleb-form.underline.sep-no .custom-option:hover{
  color: var(--primary500);
}

.xleb-form.filled .custom-dropdown-container.open .custom-dropdown-selected {
    position: relative;
    width: 100%;
    border: 1px solid var(--dividerDefault);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0px; 
    cursor: pointer;
    background: var(--inputBg);
    display: flex;
    padding: 9px var(--gapX4) 9px var(--gapX4);
    border-top-left-radius: var(--roundedXS);
    border-top-right-radius: var(--roundedXS);
}

.xleb-form.accent .input-box input[type=checkbox]:checked {
    max-width: fit-content;
    font-family: "Phosphor" !important;
    background: var(--accentColor);
    color: var(--white);
    -webkit-text-stroke: 1px;
    font-size: 16px;
    border: transparent;
    min-width: 24px;
    min-height: 24px;
}

.xleb-form.accent .input-box input[type=checkbox]:hover {
  border-color: var(--accentColor);
}

.xleb-form.accent .input-box input[type="checkbox"] {
    display: grid;
    place-content: center;
    border-radius: 3px;
}

.xleb-form.base .input-box input[type="checkbox"] {
    display: grid;
    place-content: center;
    border-radius: 3px;
}

.xleb-form .checkbox-item{
  align-items: center;
}

.xleb-form.base .input-box input[type="checkbox"]:checked {
    border-color: var(--contentColor);
}

@media (max-width: 991px){
  .xleb-form.accent .input-box input[type=checkbox]:checked {
    min-width: 20px;
    min-height: 20px;
}
}
