/* RentMate Academy Mid-Article Dropoff Widget & Woven Links (Mobile-First 375px + RTL/LTR) */
.rm-dropoff-widget-slot { margin: 28px 0 32px 0; width: 100%; max-width: 100%; box-sizing: border-box; }

.rm-dw-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(17, 34, 51, 0.92) 100%);
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  box-sizing: border-box;
  width: 100%;
}

.rm-dw-card[dir="rtl"] { text-align: right; direction: rtl; }
.rm-dw-card[dir="ltr"] { text-align: left; direction: ltr; }

.rm-dw-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.4;
}

.rm-dw-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }

.rm-dw-tab, .rm-bdw-tab {
  min-height: 48px;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 245, 249, 0.85);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.rm-dw-tab.active, .rm-dw-tab:hover, .rm-bdw-tab.active, .rm-bdw-tab:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: #2dd4bf;
  color: #ffffff;
}

.rm-dw-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 16px; }

.rm-dw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.9);
}

.rm-dw-field input, .rm-dw-field select, .rm-bdw-input {
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 13, 22, 0.88);
  color: #ffffff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
}

.rm-dw-result {
  background: rgba(78, 159, 117, 0.13);
  border: 1px solid rgba(99, 185, 141, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.rm-dw-result-amount { font-size: 1.2rem; font-weight: 800; color: #63B98D; margin-bottom: 4px; }
.rm-dw-result-meta { font-size: 0.9rem; color: rgba(241, 245, 249, 0.84); line-height: 1.5; }
.rm-dw-actions { display: flex; flex-direction: column; gap: 10px; }
.rm-dw-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rm-dw-btn, .rm-bdw-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  border: none;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.rm-dw-btn-ics { background: #2dd4bf; color: #090d16; }
.rm-dw-btn-calc { background: #4E9F75; color: #ffffff; }
.rm-dw-btn-wa { background: rgba(37, 211, 102, 0.14); color: #86efac; border: 1px solid rgba(134, 239, 172, 0.38); }
.rm-dw-btn-scanner { background: #2dd4bf; color: #090d16; }
.rm-dw-btn-copy-summary { background: rgba(45, 212, 191, 0.14); color: #2dd4bf; border: 1px solid rgba(45, 212, 191, 0.38); }
.rm-dw-app-link { display: block; margin-top: 2px; font-size: 0.9rem; font-weight: 700; color: #2dd4bf; text-decoration: underline; }
.rm-dw-legal { margin: 12px 0 0 0 !important; font-size: 0.8rem !important; color: rgba(241, 245, 249, 0.65) !important; line-height: 1.45 !important; }

/* AI Contract Landlord Checklist */
.rm-dw-header { margin-bottom: 14px; text-align: start; }
.rm-dw-title { margin: 0 0 6px 0; font-size: 1.15rem; font-weight: 800; color: #2dd4bf; }
.rm-dw-subtitle { margin: 0; font-size: 0.88rem; color: rgba(241, 245, 249, 0.82); line-height: 1.45; }

.rm-dw-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.rm-dw-check-row, .rm-bdw-check-row {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: start;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rm-dw-check-row:hover, .rm-bdw-check-row:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.4);
}

.rm-dw-check-input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: #2dd4bf;
  cursor: pointer;
}

.rm-dw-check-text { display: flex; flex-direction: column; gap: 4px; text-align: start; }
.rm-dw-check-label { font-size: 0.92rem; font-weight: 700; color: #ffffff; line-height: 1.4; }
.rm-dw-check-risk { font-size: 0.8rem; font-weight: 500; color: #fca5a5; line-height: 1.35; }

.rm-dw-score-box {
  background: rgba(78, 159, 117, 0.12);
  border: 1px solid rgba(99, 185, 141, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: start;
}

.rm-dw-score-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rm-dw-readiness-meter { font-size: 1.05rem; font-weight: 800; color: #63B98D; text-align: start; }

.rm-dw-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.rm-dw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2dd4bf, #4E9F75);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.rm-dw-missing-box { margin-top: 10px; text-align: start; }
.rm-dw-missing-title { font-size: 0.88rem; font-weight: 700; color: #fca5a5; margin-bottom: 6px; }
.rm-dw-missing-list { margin: 0; padding-inline-start: 20px; text-align: start; }
.rm-dw-missing-item { font-size: 0.84rem; color: rgba(241, 245, 249, 0.9); margin-bottom: 4px; line-height: 1.4; }

.auto-seo-links {
  margin-top: 34px;
  padding: 20px 22px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 14px;
  box-sizing: border-box;
  max-width: 100%;
}

.auto-seo-links h3 { margin: 0 0 12px 0; font-size: 1.12rem; color: #2dd4bf; }
.auto-seo-links ul { margin: 0; padding-inline-start: 20px; }
.auto-seo-links li { margin-bottom: 8px; }
.auto-seo-links a { color: #f1f5f9; text-decoration: none; font-weight: 600; word-break: break-word; }
.auto-seo-links a:hover { color: #2dd4bf; text-decoration: underline; }

@media (max-width: 640px) {
  .rm-dw-card, .auto-seo-links { padding: 16px 14px; }
  .rm-dw-tabs, .rm-dw-btn-row, .rm-dw-inputs { grid-template-columns: 1fr; }
}
