.rwlm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.rwlm-modal.is-open {
  display: block;
}

.rwlm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.rwlm-dialog {
  position: relative;
  width: min(380px, calc(100% - 28px));
  margin: 120px auto 0;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.rwlm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 0;
  background: #fff;
  color: #ba3286;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  z-index: 10;
}

.rwlm-close span {
  display: block;
  transform: translateY(-1px);
}

.rwlm-head {
  background: linear-gradient(135deg, #d81b86, #ba3286);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 12px 22px 16px;
  position: relative;
  text-align: center;
}

.rwlm-head::after {
  content: none;
}

.rwlm-head-plane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 10px;
}

.rwlm-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.rwlm-subtitle {
  font-size: 14px;
  opacity: 0.92;
  /*margin-top: 10px;*/
}

.rwlm-body {
  background: #fff;
  padding: 0 18px 18px;
}

.rwlm-form {
  margin-top: -30px;
  background: #fff;
  border-radius: 20px;
  /*box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);*/
  padding: 46px 16px 14px;
}

.rwlm-field {
  margin: 12px 0;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #eef0f5;
  background: #fff;
  /*box-shadow: 0 8px 22px rgba(20, 22, 38, 0.06);*/
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.rwlm-ico {
  color: #ba3286;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  pointer-events: none;
}

.rwlm-chevron {
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  pointer-events: none;
}

.rwlm-field input,
.rwlm-field select {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  outline: none;
}

.rwlm-field select {
  appearance: none;
}

.rwlm-field input::placeholder {
  color: #9aa3b2;
}

.rwlm-field input:focus,
.rwlm-field select:focus {
  box-shadow: none;
}

.rwlm-consent {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #5e6675;
  font-size: 12px;
  line-height: 1.45;
}

.rwlm-consent input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #ba3286;
}

.rwlm-consent a {
  color: #004494;
  font-weight: 700;
  text-decoration: none;
}

.rwlm-consent a:hover {
  text-decoration: underline;
}

.rwlm-submit {
  margin-top: 16px;
  width: 100%;
  height: 54px;
  border-radius: 9999px;
  border: 0;
  background: linear-gradient(135deg, #d81b86, #ba3286);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.rwlm-arrow {
  font-size: 22px;
  line-height: 1;
}

.rwlm-submit:disabled {
  opacity: 0.92;
  cursor: wait;
}

.rwlm-submit.is-loading {
  cursor: wait;
}

.rwlm-submit.is-loading .rwlm-arrow {
  display: none;
}

.rwlm-submit.is-loading::after {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: rwlmSpin 0.7s linear infinite;
}

@keyframes rwlmSpin {
  to {
    transform: rotate(360deg);
  }
}

.rwlm-note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rwlm-lock {
  display: inline-flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.55);
}

.rwlm-msg {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

.rwlm-msg.is-error {
  color: #b42318;
}

.rwlm-msg.is-success {
  color: #067647;
}

.rwlm-hp {
  position: absolute;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
