.psfus-wrapper {
  max-width: 400px;
  margin: 24px auto;
  padding: 16px;
  border-radius: 20px;
  background: #2a2a2aff;
  color: white;
  height: 760px;
  /* max-height: calc(100vh - 48px); */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.psfus-open {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #da5b63ff;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}

.psfus-modal[hidden] {
  display: none !important;
}
.psfus-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
}
.psfus-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.psfus-modal-dialog {
  position: relative;
  margin: 0 auto;
  max-width: 460px;
  padding: 24px;
  width: calc(100% - 24px);
  top: 5vh;
}

.psfus-modal .psfus-wrapper {
  margin: 0;
  /* height: auto; */
}
.psfus-modal-close {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 24px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.psfus-welcome {
  width: 300px;
  font-weight: 100;
  font-size: 30px;
  margin-bottom: 30px;
  color: white;
}

.psfus-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: #4a4a4aff;
  overflow: hidden;
}

.psfus-wrapper h1,
h2,
h3,
h4,
h5,
h6 {
  color: white !important;
}

.psfus-header h2 {
  margin: 0 0 40px 0;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.psfus-header p {
  margin: 0 0 12px 0;
  color: #475569;
  line-height: 1.2;
}

.psfus-text {
  height: 100px;
  line-height: 1.2;
}

.psfus-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #da5b63ff, #da5b63ff);
}

.psfus-step {
  display: none;
}

.psfus-input {
  border-radius: 100px;
  border: none !important;
  text-align: center;
  font-size: 18px;
  padding: 0 10px !important;
  height: 35px;
  position: relative;
}

textarea.psfus-notes {
  position: absolute;
  top: 50% !important;
  left: 0;
  width: 100%;
  border: none !important;
  resize: none;
  border-radius: 0 !important;
  height: 80px !important;
  padding: 20px 12px 6px 12px !important;
  display: none;
  border-bottom-left-radius: 15px !important;
  border-bottom-right-radius: 15px !important;
}

.psfus-input > input {
    z-index: 1;
}

.psfus-input > input:checked + textarea.psfus-notes {
  display: block;
}

.psfus-input.red {
  background: #da5b63ff;
}

.psfus-input.grey {
  background: #4a4a4aff;
}

.psfus-input.white {
  background: white;
}

.psfus-input.red,
.psfus-input.red:focus,
.psfus-input.red::placeholder,
.psfus-input.grey,
.psfus-input.grey:focus,
.psfus-input.grey::placeholder {
  color: white;
}

.psfus-input.white,
.psfus-input.white:focus,
.psfus-input.white::placeholder {
  color: black;
}

.psfus-answers {
  padding-top: 10px;
  height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psfus-step.is-active {
  display: block;
}

.psfus-step.is-center {
  text-align: center;
}

.psfus-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.psfus-actions.is-center {
  justify-content: center;
}

.psfus-actions button {
  appearance: none;
  border: 0;
  border-radius: 100px;
  padding: 6px 14px;
  width: 100px;
  cursor: pointer;
  font-size: 18px;
}

.psfus-actions .psfus-prev {
  background: #4a4a4aff;
  color: white;
}
.psfus-actions .psfus-next,
.psfus-actions .psfus-submit {
  background: #da5b63ff;
  color: #fff;
}

label.psfus-input {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
}

label.psfus-input input {
}

label.psfus-input span {
  flex-grow: 10;
  transform: translateX(-12px);
}

.psfus-hint {
  font-size: 12px;
  margin-top: 6px;
  margin-left: 5px;
}

.psfus-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.psfus-inline input[type="email"],
.psfus-step textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.psfus-success {
  padding: 16px;
  border: 0;
  color: white;
  background: #2a2a2aff;
  border-radius: 100px;
  text-align: center;
}

.psfus-success h3 {
  line-height: 1.3;
  font-weight: bold;
  margin-bottom: 20px;
}

.psfus-success img {
  margin: auto;
  display: block;
  margin-bottom: 40px;
  width: 100px;
}

.psfus-error {
  padding: 8px 6px;
  border: 1px solid #ef4444;
  color: #991b1b;
  background: #fef2f2;
  border-radius: 8px;
  margin-top: 12px;
  position: absolute;
  bottom: 20px;
  line-height: 1.2;
  font-size: 16px;
}

@media screen and (max-width: 768px) {

    .psfus-wrapper {
        height: 700px;
    }

    .psfus-modal-dialog {
        top: 0;
    }

}
