.rbm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 36, 0.35);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.rbm-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(31, 42, 36, 0.18);
  padding: 20px 22px 22px;
  box-sizing: border-box;
}

.rbm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rbm-title {
  font-family: var(--font-logo-text, 'Cormorant Garamond', serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--hdr-text, #1f2a24);
  margin: 0;
}

.rbm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--hdr-text-muted, #5b6b61);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.rbm-close:hover {
  background: var(--hdr-green-tint, #eaf4ee);
}

.rbm-close:focus-visible {
  outline: 2px solid var(--hdr-green, #5fa87c);
  outline-offset: 2px;
}

.rbm-form {
  display: flex;
  flex-direction: column;
}

.rbm-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  box-sizing: border-box;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.9rem;
  color: var(--hdr-text, #1f2a24);
  background: #fafcfb;
  border: 1px solid var(--hdr-border, #e6ede8);
  border-radius: 12px;
  padding: 12px 14px;
}

.rbm-textarea:focus-visible {
  outline: 2px solid var(--hdr-green, #5fa87c);
  outline-offset: 1px;
}

.rbm-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.rbm-counter {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.75rem;
  color: var(--hdr-text-muted, #5b6b61);
}

.rbm-counter-limit {
  color: #b3413a;
}

.rbm-hint {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--hdr-text-muted, #5b6b61);
  margin: 10px 0 0;
}

.rbm-hint-link {
  color: var(--hdr-green, #5fa87c);
  text-decoration: underline;
}

.rbm-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.rbm-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--hdr-green, #5fa87c);
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.rbm-send-btn:hover {
  opacity: 0.9;
}

.rbm-send-btn:disabled:not(.rbm-send-btn-sending) {
  opacity: 0.5;
  cursor: not-allowed;
}

.rbm-send-btn-sending {
  cursor: default;
}

.rbm-send-btn:focus-visible {
  outline: 2px solid var(--hdr-green, #5fa87c);
  outline-offset: 2px;
}

.rbm-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rbm-spin 0.6s linear infinite;
}

@keyframes rbm-spin {
  to {
    transform: rotate(360deg);
  }
}

.rbm-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px 4px;
}

.rbm-success-icon {
  color: var(--hdr-green, #5fa87c);
  margin-bottom: 12px;
}

.rbm-success-text {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.9rem;
  color: var(--hdr-text, #1f2a24);
  margin: 0 0 4px;
  line-height: 1.45;
}

.rbm-actions-center {
  justify-content: center;
  margin-top: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}