.rmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmodal {
  position: relative;
  background: #fffbf0;
  border: 3px solid #333;
  border-radius: 20px;
  box-shadow: 6px 6px 0px #333;
  padding: 28px 28px 24px;
  width: min(440px, 92vw);
  font-family: 'Fredoka', sans-serif;
}

.rmodal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  line-height: 1;
}
.rmodal__close:hover { color: #111; }

.rmodal__title {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.rmodal__type-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.rmodal__type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid #333;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  transition: background .1s;
}
.rmodal__type-btn input { display: none; }
.rmodal__type-btn--active {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}
.rmodal__type-btn:hover:not(.rmodal__type-btn--active) { background: #f0f4ff; }

.rmodal__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #333;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  resize: vertical;
  background: #fff;
  outline: none;
}
.rmodal__textarea:focus { border-color: #2563eb; }

.rmodal__counter {
  text-align: right;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  margin-bottom: 12px;
}

.rmodal__error {
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 10px;
}

.rmodal__submit {
  width: 100%;
  padding: 10px;
  border: 2px solid #333;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 0px #333;
  transition: transform .1s, box-shadow .1s;
}
.rmodal__submit:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #333;
}
.rmodal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.rmodal__thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0 8px;
  text-align: center;
  font-size: 16px;
  color: #1a1a2e;
}
.rmodal__thanks-icon { font-size: 40px; }
