:root {
  --formful-padding-top: 50px;
  --formful-padding-right: 45px;
  --formful-padding-bottom: 35px;
  --formful-padding-left: 45px;

  --formful--phone-padding-left: 60px;
}

.formful__wrapper {
  position: relative;
  margin: 0 auto;
}

.formful__form {
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

.formful__field-wrapper {
  position: relative;
}

.formful__field-wrapper label:first-of-type {
  display: flex;
  margin-block-end: 5px;
}

.formful__radio-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  column-gap: 1rem;
  row-gap: 0.5rem;
  flex-wrap: wrap;
  flex-direction: column;
}

.formful__checkbox-group-wrapper {
  display: flex;
  flex-direction: column;
}

.formful__checkbox-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.formful__error {
  color: #e02229;
  font-size: small;
  margin-top: 5px;
  display: block;
}

.formful__input--error {
  border-color: #e02229 !important;
  outline-color: #e02229 !important;
  box-shadow: 0 0 0 1px #e02229 !important;
  background-color: rgba(224, 34, 41, 0.05) !important;
}

.formful__radio-group label {
  cursor: pointer;
  display: flex;
  align-items: center;
  column-gap: 5px;
  margin: 0;
  /* padding: 0; */
}

.formful__radio-group input {
  margin: 0 !important;
  cursor: pointer;
  /* width: fit-content; */
  min-width: fit-content;
}

.formful__checkbox-label {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(auto, max-content);
  align-items: center;
  column-gap: 10px;
  cursor: pointer;
}

.formful__checkbox-label input {
  margin: 0 !important;
  inset-block-start: auto;
}

.formful__checkbox-label span,
.formful__checkbox-label .rte p {
  cursor: pointer;
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.formful__checkbox-label p {
  margin: 0;
}

.formful__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 2rem;
  row-gap: 1rem;
  text-align: start;
}

.formful__fields label,
.formful__fields textarea,
.formful__fields input {
  text-align: start;
}

.formful__fields input:not([type="checkbox"]):not([type="radio"]),
.formful__fields .input {
  margin: 0 !important;
}

@media screen and (min-width: 769px) {
  .formful__fields {
    grid-template-columns: repeat(2, 1fr);
  }
  .formful__fullwidth {
    grid-row-start: span 2;
    grid-column-start: span 2;
  }
}

#dropzone {
  width: 300px;
  height: 200px;
  border: 2px dashed #ccc;
  text-align: center;
  line-height: 200px;
  font-size: 20px;
  color: #999;
}

.formful__upload-button {
  display: flex;
  position: relative;
  justify-content: space-between;
  flex: 1;
}

.formful__hide {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1; /* Check if this work on all themes for upload field */
}

.formful__show {
  position: relative;
  opacity: 1;
  transition: opacity 0.5s;
  z-index: 1;
}

.formful__footer {
  background-color: #f9f9f9;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 10px;
}

.formful__reverse {
  display: flex;
  flex-direction: column-reverse;
}

.formful__no-padding-y {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.formful__upload {
  color: inherit;
  text-overflow: ellipsis !important;
  text-wrap: nowrap !important;
  line-height: inherit;
}

.formful__upload--theme-xclusive {
  padding-top: 11px;
}

.formful__upload--theme-monaco {
  padding-top: 15px !important;
}

/* .formful__upload--theme-dawn {
  padding-top: calc(1rem + var(--inputs-border-width));
} */

/* .formful__upload::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.formful__upload::after {
  content: "";
  display: inline-block;
  height: 100%:
  vertical-align: middle;
} */

.formful__upload::file-selector-button {
  background-color: #e5e5e5;
  border: 0px;
  transition: 0.5s;
  padding: 5px 8px;
  /* padding-right: 4px; */
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  visibility: visible !important;
}

.formful__upload::file-selector-button:hover {
  background-color: #b7b7b7;
  cursor: pointer;
}

.formful__info-banner {
  border: 1px solid rgba(109, 211, 222, 1);
  background-color: rgba(222, 245, 247, 1);
  border-radius: 10px; /* Round borders */
  padding: 20px;
  max-width: 500px;
  margin: 30px auto;
  display: flex;
}

.formful__info-banner__text {
  margin-left: 25px;
}

.formful_items-center {
  align-items: center;
}

.formful__thanks-message {
  margin-bottom: 15px;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

.formful__thanks-message.formful__hide {
  height: 0;
}

.formful__thanks-message.formful__show {
  height: auto;
}

.formful__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: none; /* Initially the spinner is hidden */
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.formful__text-left {
  /* text-align: left; */
  display: flex;
  justify-content: left;
}
.formful__text-center {
  /* text-align: center; */
  display: flex;
  justify-content: center;
}
.formful__text-right {
  /* text-align: right; */
  display: flex;
  justify-content: right;
}

.formful__w-100 {
  width: 100% !important;
}

.formful__max-w-100 {
  max-width: 100% !important;
}

.formful__d-block {
  display: block !important;
}

.formful__button {
  position: relative;
  margin-top: 2rem;
}

.flatpickr-wrapper {
  width: 100%;
}

.formful__datepicker {
  color: inherit;
}

.formful__button-label {
  position: relative;
  z-index: 2;
}

.formful__branding {
  color: inherit;
  font-size: 12px;
  text-align: right;
  margin-left: auto;
  display: block !important;
  visibility: visible !important;
  margin-top: 10px;
}

.pretty-select {
  width: 100%;
}

.formful__input {
  min-width: 100%;
}

.formful__input--phone {
  padding-left: 60px !important;
}

/* START Align theme */
.formful__form .grid-archive__subnav {
  gap: initial;
  align-items: initial;
}

.formful__form .grid-archive__subnav .sort-by {
  display: block;
}

.formful__form .grid-archive__subnav .sort-by select {
  padding: 1.6rem;
  line-height: normal;
}
/* END Align theme */

.formful__form .d-none {
  display: none !important;
}

.formful__form .d-flex {
  display: flex !important;
}

.formful__form .m-0 {
  margin: 0 !important;
}

.formful__form .pt-15 {
  padding-top: 15px !important;
}

.formful__form .d-block {
  display: block !important;
}

.formful__form .normalize-padding {
  /* padding-top: 1.5rem !important; */
  /* padding-bottom: 1.5rem !important; */
  padding: 1.5rem;
}

.formful__form .show-placeholder::placeholder {
  opacity: 1;
}

.formful__form .min-w-fit-content {
  min-width: fit-content;
}

.formful__form .min-h-fit-content {
  min-height: fit-content;
}

.formful__form .w-fit-content {
  width: fit-content;
}

.formful__form .transform-unset {
  transform: unset !important;
}

.formful__form .align-items-start {
  align-items: start !important;
}

.formful__form .position-relative {
  position: relative !important;
}

.formful__overlay {
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  backdrop-filter: blur(5px);
}

.formful__overlay-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
}

.formful__form .step {
  background: transparent;
  display: none;
}

.formful__form .step.active {
  display: block;
}

.formful__button-group {
  display: flex;
  justify-content: space-between;
  column-gap: 2rem;
}

/* Styles for Progress Bar */
.formful__progressbar {
  position: relative;
  display: flex;
  counter-reset: step;
  margin: 2rem 0 2rem;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (min-width: 426px) {
  .formful__progressbar {
    justify-content: space-around;
    flex-direction: row;
    margin: 2rem 0 6rem;
  }
}

.formful__progressbar::before,
.formful__progress {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background-color: #dcdcdc;
}
.formful__progress {
  background-color: green;
  width: 0%;
  transition: 0.3s;
  display: none;
  left: 0;
  transition: all 0.3s linear;
}

@media screen and (min-width: 426px) {
  .formful__progressbar::before {
    content: "";
  }
  .formful__progress {
    display: block !important;
  }
}

.formful__progress-step {
  width: 40px;
  height: 40px;
  background-color: #dcdcdc;
  border-radius: 50%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: all 0.15s 0.15s linear;
}

.formful__progress-step::before {
  counter-increment: step;
  content: counter(step);
  font-weight: bold;
}
.formful__progress-step::after {
  content: attr(data-title);
  position: absolute;
  color: #666;
  left: 5rem;
}
@media screen and (min-width: 426px) {
  .formful__progress-step::after {
    top: calc(100% + 0.5rem);
    left: auto;
  }
}

.formful__progress-step-active {
  background-color: green;
  color: #f3f3f3;
}

.formful__button-prev {
  margin-top: 2rem;
}

.formful__button-next {
  transition: unset;
  margin-top: 2rem;
}

.formful__country-picker {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 3;
  margin: 0;
}

.formful__country-picker select {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.formful__country-picker img {
  display: block;
  cursor: pointer;
  height: 25px;
  width: 25px;
}

.border-none {
  border: none !important;
}
