/* Rentalmatch Tenant Wizard Styles */

/* Wizard container */
.rm-tenant-section:not(.rd-light) { background: #0a0f1a; }

/* ── Wizard explanation ─────────────────────── */
.rm-how {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}
@media(max-width:900px) { .rm-how { grid-template-columns: 1fr; } }

.rm-how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rm-how-step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
}
.rm-how-step-item.is-visible {
  opacity: 1;
  transform: none;
}
.rm-how-step-item:first-child { padding-top: 0; }
.rm-how-step-item:last-child { border-bottom: none; }
.rm-how-step-num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(140,245,208,0.5);
  flex-shrink: 0;
  padding-top: 4px;
  width: 24px;
}
.rm-how-step-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.rm-how-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f4ff;
  margin: 0 0 6px;
}
.rm-how-step-desc {
  font-size: 0.83rem;
  color: rgba(180,205,245,0.55);
  line-height: 1.65;
  margin: 0;
}

/* Score box */
.rm-how-score-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.rm-score-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(180,205,245,0.4);
  margin-bottom: 20px;
}
.rm-score-bars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.rm-score-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(180,205,245,0.55);
}
.rm-score-bar-row > span:last-child { text-align: right; color: rgba(180,205,245,0.4); }
.rm-score-bar {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.rm-score-fill {
  height: 100%;
  border-radius: 3px;
  animation: rm-bar-grow 1.2s ease both;
}
@keyframes rm-bar-grow { from { width: 0 !important; } }
.rm-btn-start {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8cf5d0, #63b3ed);
  color: #06090f;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.rm-btn-start:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Natural language search ────────────────── */
.rm-nl-wrap {
  max-width: 720px;
  margin: 0 auto 40px;
}
.rm-nl-label {
  font-size: 0.82rem;
  color: rgba(180,205,245,0.4);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.rm-nl-field {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(140,245,208,0.2);
  border-radius: 16px;
  padding: 4px 4px 4px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rm-nl-field:focus-within {
  border-color: rgba(140,245,208,0.5);
  box-shadow: 0 0 0 3px rgba(140,245,208,0.06);
}
.rm-nl-icon {
  color: #8cf5d0;
  font-size: 1rem;
  margin-right: 10px;
  flex-shrink: 0;
  animation: rm-pulse 2s ease-in-out infinite;
}
.rm-nl-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f4ff;
  font-size: 0.95rem;
  padding: 12px 0;
  min-width: 0;
}
.rm-nl-input::placeholder { color: rgba(180,205,245,0.3); }
.rm-nl-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8cf5d0, #63b3ed);
  color: #06090f;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rm-nl-btn:hover { opacity: 0.85; }
.rm-nl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 0;
}
.rm-nl-tag {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(140,245,208,0.1);
  border: 1px solid rgba(140,245,208,0.2);
  color: #8cf5d0;
  font-size: 0.78rem;
  font-weight: 600;
}
.rm-nl-separator {
  text-align: center;
  position: relative;
  margin: 28px 0 0;
}
.rm-nl-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.07);
}
.rm-nl-separator span {
  position: relative;
  background: #0a0f1a;
  padding: 0 16px;
  font-size: 0.75rem;
  color: rgba(180,205,245,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Wizard hidden by default, animated entrance */
.rm-wizard {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  display: none; /* hidden by default */
}
.rm-wizard.rm-wizard--visible {
  display: block;
}
.rm-wizard.rm-wizard--animated {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* Overlay glow when wizard appears */
.rm-wizard-glow {
  position: absolute;
  width: 400px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(140,245,208,0.12), transparent 70%);
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.rm-wizard--animated .rm-wizard-glow { opacity: 1; }

/* Dossier complete notification bar */
.rm-dossier-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(52,199,89,0.08);
  border: 1px solid rgba(52,199,89,0.25);
  border-radius: 14px;
  margin-bottom: 32px;
  animation: rm-banner-in 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes rm-banner-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.rm-dossier-banner-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(52,199,89,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #34C759;
  font-size: 1rem;
  flex-shrink: 0;
}
.rm-dossier-banner-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: 2px;
}
.rm-dossier-banner-text span {
  font-size: 0.78rem;
  color: rgba(180,205,245,0.5);
}

/* Progress bar */
.rm-progress { margin-bottom: 0; }
.rm-progress-track { height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; margin-bottom: 12px; }
.rm-progress-fill { height: 100%; background: linear-gradient(90deg, #8cf5d0, #63b3ed); border-radius: 2px; transition: width .4s ease; }
.rm-progress-steps { display: flex; justify-content: space-between; }
.rm-step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; font-size: .75rem; color: rgba(180,205,245,.5); transition: all .3s; }
.rm-step-dot.active { border-color: #8cf5d0; background: rgba(140,245,208,.15); color: #8cf5d0; font-weight: 700; }
.rm-step-dot.done { border-color: rgba(140,245,208,.4); background: rgba(140,245,208,.08); color: #8cf5d0; }
.rm-step-labels { display: flex; justify-content: space-between; margin-top: 6px; }
.rm-step-labels span { font-size: .68rem; color: rgba(180,205,245,.35); text-transform: uppercase; letter-spacing: .06em; width: 28px; text-align: center; }

/* Steps */
.rm-step { padding: 40px 0; }
.rm-step.hidden { display: none; }
.rm-step-title { font-size: 1.5rem; font-weight: 800; color: #f0f4ff; margin-bottom: 8px; }
.rm-step-sub { color: rgba(180,205,245,.55); font-size: .92rem; margin-bottom: 28px; }

/* Inputs */
.rm-field { margin-bottom: 24px; position: relative; }
.rm-field--row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rm-label { font-size: .82rem; color: rgba(180,205,245,.5); text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: 10px; }
.rm-field--row .rm-label { margin-bottom: 0; white-space: nowrap; }
.rm-input { width: 100%; padding: 14px 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #f0f4ff; font-size: 1rem; outline: none; transition: border-color .2s; box-sizing: border-box; }
.rm-input:focus { border-color: rgba(140,245,208,.5); background: rgba(140,245,208,.04); }
.rm-input::placeholder { color: rgba(180,205,245,.3); }

/* Autocomplete suggestions */
.rm-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: #12192a; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; margin-top: 6px; overflow: hidden; z-index: 100; display: none; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.rm-suggestions.open { display: block; }
.rm-sugg-item { padding: 12px 18px; cursor: pointer; color: rgba(180,205,245,.8); font-size: .9rem; transition: background .15s; }
.rm-sugg-item:hover { background: rgba(140,245,208,.08); color: #f0f4ff; }

/* Chips for multi-select */
.rm-chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-chip { padding: 9px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: rgba(180,205,245,.7); font-size: .88rem; cursor: pointer; transition: all .2s; }
.rm-chip:hover { border-color: rgba(140,245,208,.3); color: #f0f4ff; }
.rm-chip.active { border-color: #8cf5d0; background: rgba(140,245,208,.12); color: #8cf5d0; font-weight: 600; }

/* Radius / commute pills */
.rm-radius-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-pill { padding: 7px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(180,205,245,.6); font-size: .82rem; cursor: pointer; transition: all .2s; }
.rm-pill:hover { border-color: rgba(140,245,208,.25); }
.rm-pill.active { border-color: #8cf5d0; background: rgba(140,245,208,.1); color: #8cf5d0; }

/* Amenity cards */
.rm-amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rm-amenity-card { padding: 20px 12px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: rgba(180,205,245,.6); cursor: pointer; text-align: center; font-size: .82rem; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rm-amenity-card span { font-size: .8rem; line-height: 1.3; }
.rm-amenity-card > :first-child { font-size: 1.6rem; }
.rm-amenity-card:hover { border-color: rgba(140,245,208,.25); background: rgba(140,245,208,.04); }
.rm-amenity-card.active { border-color: #8cf5d0; background: rgba(140,245,208,.1); color: #8cf5d0; }
@media(max-width:600px) { .rm-amenity-grid { grid-template-columns: repeat(2,1fr); } }

/* Budget slider */
.rm-budget-display { font-size: 2.4rem; font-weight: 800; color: #8cf5d0; text-align: center; margin-bottom: 20px; letter-spacing: -.03em; }
.rm-slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); outline: none; }
.rm-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #8cf5d0; cursor: pointer; box-shadow: 0 0 12px rgba(140,245,208,.4); }
.rm-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #8cf5d0; cursor: pointer; border: none; }
.rm-budget-labels { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(180,205,245,.35); margin-top: 8px; }

/* Toggle */
.rm-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.rm-toggle input { opacity: 0; width: 0; height: 0; }
.rm-toggle-track { position: absolute; inset: 0; border-radius: 12px; background: rgba(255,255,255,.1); transition: .3s; cursor: pointer; }
.rm-toggle-track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; border-radius: 50%; background: rgba(255,255,255,.5); transition: .3s; }
.rm-toggle input:checked + .rm-toggle-track { background: rgba(140,245,208,.3); }
.rm-toggle input:checked + .rm-toggle-track::before { transform: translateX(20px); background: #8cf5d0; }

/* Navigation */
.rm-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); }
.rm-btn-next { padding: 14px 32px; border-radius: 12px; background: linear-gradient(135deg, #8cf5d0, #63b3ed); color: #06090f; font-weight: 700; font-size: .95rem; border: none; cursor: pointer; transition: opacity .2s, transform .1s; }
.rm-btn-next:hover { opacity: .9; transform: translateY(-1px); }
.rm-btn-back { padding: 12px 20px; border-radius: 12px; background: transparent; border: 1px solid rgba(255,255,255,.1); color: rgba(180,205,245,.6); font-size: .9rem; cursor: pointer; transition: all .2s; }
.rm-btn-back:hover { border-color: rgba(255,255,255,.2); color: #f0f4ff; }
.rm-skip-btn { background: none; border: none; color: rgba(140,245,208,.6); font-size: .88rem; cursor: pointer; margin-top: 8px; padding: 0; text-decoration: underline; }
.rm-skip-btn:hover { color: #8cf5d0; }

/* Loading */
.rm-loading { text-align: center; padding: 60px 0; }
.rm-loading-orb { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(140,245,208,.6), rgba(99,179,237,.3)); margin: 0 auto 20px; animation: rm-pulse 1.4s ease-in-out infinite; }
@keyframes rm-pulse { 0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.15);opacity:1} }
.rm-loading p { color: rgba(180,205,245,.6); font-size: .95rem; }

/* Results */
.rm-results { margin-top: 20px; }
.rm-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.rm-results-title { font-size: 1.4rem; font-weight: 800; color: #f0f4ff; }
.rm-results-title span { color: #8cf5d0; }
.rm-btn-reset { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: rgba(180,205,245,.6); font-size: .85rem; cursor: pointer; transition: all .2s; }
.rm-btn-reset:hover { border-color: rgba(255,255,255,.25); color: #f0f4ff; }
.rm-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.rm-result-card { border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); overflow: hidden; transition: transform .2s, border-color .2s; cursor: pointer; text-decoration: none; display: block; }
.rm-result-card:hover { transform: translateY(-4px); border-color: rgba(140,245,208,.25); }
.rm-result-img { width: 100%; height: 180px; object-fit: cover; background: rgba(255,255,255,.04); display: block; }
.rm-result-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, rgba(140,245,208,.06), rgba(99,179,237,.04)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,.15); }
.rm-result-body { padding: 18px 20px; }
.rm-result-score { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; margin-bottom: 10px; }
.rm-result-score--high { background: rgba(140,245,208,.12); color: #8cf5d0; }
.rm-result-score--mid { background: rgba(99,179,237,.12); color: #63b3ed; }
.rm-result-score--low { background: rgba(251,191,36,.1); color: #fbbf24; }
.rm-result-city { font-size: .8rem; color: rgba(180,205,245,.45); margin-bottom: 4px; }
.rm-result-price { font-size: 1.35rem; font-weight: 800; color: #f0f4ff; letter-spacing: -.02em; }
.rm-result-price span { font-size: .8rem; font-weight: 400; color: rgba(180,205,245,.45); }
.rm-result-specs { display: flex; gap: 12px; margin-top: 10px; font-size: .8rem; color: rgba(180,205,245,.5); flex-wrap: wrap; }
.rm-result-spec { display: flex; align-items: center; gap: 4px; }
.rm-no-results { text-align: center; padding: 60px 20px; color: rgba(180,205,245,.5); }
.rm-no-results p { font-size: 1rem; }

/* ════════════════════════════════════════════════════════════════════
   LIGHT-MODE OVERRIDES — section uses .rd-light (was originally dark)
   so all inner colors needed light-bg adapted variants to be readable.
   ════════════════════════════════════════════════════════════════════ */

.rd-light.rm-tenant-section,
.rm-tenant-section.rd-light {
  background: #f6f7fb !important;
  color: #11151f;
}

/* Eyebrow */
.rd-light.rm-tenant-section .rd-eyebrow {
  background: linear-gradient(135deg, rgba(0,122,255,0.10), rgba(140,245,208,0.08)) !important;
  color: #0055bb !important;
  border: 1px solid rgba(0,122,255,0.25) !important;
}

/* H2 + lead readable on light */
.rd-light.rm-tenant-section .rd-h2 {
  background: linear-gradient(175deg, #0a0e1a 0%, #1e3560 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rd-light.rm-tenant-section .rd-lead {
  color: #424b6a !important;
}

/* 4-step list — dark text on light bg */
.rd-light.rm-tenant-section .rm-how-step-item {
  border-bottom: 1px solid rgba(0, 30, 80, 0.08);
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background .25s ease, transform .25s ease;
  border-radius: 14px;
  padding-left: 14px;
  padding-right: 14px;
}
.rd-light.rm-tenant-section .rm-how-step-item:hover {
  background: rgba(0, 122, 255, 0.04);
  transform: translateX(4px);
}
.rd-light.rm-tenant-section .rm-how-step-num {
  color: #007AFF !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(140,245,208,0.08));
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(0, 122, 255, 0.18);
  flex-shrink: 0;
}
.rd-light.rm-tenant-section .rm-how-step-icon {
  font-size: 1.7rem !important;
  width: 40px;
  filter: saturate(1.1);
}
.rd-light.rm-tenant-section .rm-how-step-title {
  color: #0a1424 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em;
}
.rd-light.rm-tenant-section .rm-how-step-desc {
  color: #424b6a !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Score box — premium glass card on light bg */
.rd-light.rm-tenant-section .rm-how-score-box {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,247,250,0.90) 100%) !important;
  border: 1px solid rgba(0, 30, 80, 0.10) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 40px rgba(0, 30, 80, 0.08) !important;
  border-radius: 22px !important;
  padding: 32px 28px !important;
}
.rd-light.rm-tenant-section .rm-score-title {
  color: #0055bb !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}
.rd-light.rm-tenant-section .rm-score-bar-row {
  color: #0a1424 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
.rd-light.rm-tenant-section .rm-score-bar-row > span:last-child {
  color: #424b6a !important;
  font-weight: 600;
}
.rd-light.rm-tenant-section .rm-score-bar {
  background: rgba(0, 30, 80, 0.08) !important;
}

/* Start wizard button — gradient pill Apple-style */
.rd-light.rm-tenant-section .rm-btn-start {
  background: linear-gradient(135deg, #007AFF 0%, #5ac8fa 50%, #8cf5d0 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 32px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  width: 100% !important;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 32px rgba(0, 122, 255, 0.35) !important;
  transition: transform .2s ease, box-shadow .3s ease, filter .15s ease;
}
.rd-light.rm-tenant-section .rm-btn-start:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 16px 40px rgba(0, 122, 255, 0.45) !important;
}

/* Natural language label + input */
.rd-light.rm-tenant-section .rm-nl-label {
  color: #424b6a !important;
  font-weight: 500 !important;
}
.rd-light.rm-tenant-section .rm-nl-field {
  background: #ffffff !important;
  border: 1px solid rgba(0, 30, 80, 0.15) !important;
  box-shadow: 0 4px 14px rgba(0, 30, 80, 0.06) !important;
}
.rd-light.rm-tenant-section .rm-nl-input {
  color: #0a1424 !important;
}
.rd-light.rm-tenant-section .rm-nl-input::placeholder {
  color: rgba(10, 20, 36, 0.4) !important;
}

/* === AGENCY SUPER HERO REDESIGN === */
/* ════════════════════════════════════════════════════════════════════
   RENTALMATCH AGENCIES — Apple-style super-hero section
   Centered hero, 4-stat strip, 6-card advantage grid (3 shared owners
   + 3 agency-exclusive), gradient pill CTA, animated scroll indicator.
   High-contrast typography on light gradient background.
   ════════════════════════════════════════════════════════════════════ */

.rm-agency-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%) !important;
  color: #0a1424;
  min-height: 100vh;
  padding-top: clamp(80px, 10vh, 130px) !important;
  padding-bottom: clamp(80px, 10vh, 130px) !important;
  display: flex;
  align-items: center;
}
.rm-agency-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.rm-agency-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.rm-agency-orb--1 {
  top: -120px; left: -80px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,122,255,0.42), transparent 70%);
  animation: rm-orb-float-a 18s ease-in-out infinite;
}
.rm-agency-orb--2 {
  bottom: -140px; right: -100px; width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(140,245,208,0.40), transparent 70%);
  animation: rm-orb-float-b 22s ease-in-out infinite;
}
.rm-agency-orb--3 {
  top: 40%; right: 25%; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(168,85,247,0.22), transparent 70%);
  animation: rm-orb-float-c 26s ease-in-out infinite;
}
.rm-agency-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 20, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 20, 36, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: 0.7;
}
@keyframes rm-orb-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes rm-orb-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.05); }
}
@keyframes rm-orb-float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(0.95); }
  66% { transform: translate(20px, -25px) scale(1.05); }
}

.rm-agency-container {
  position: relative; z-index: 1; width: 100%;
  max-width: min(1240px, 94%) !important;
  margin: 0 auto !important;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(48px, 7vh, 88px);
  text-align: center;
}
.rm-agency-hero {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 2.5vh, 28px);
}
.rm-agency-eyebrow {
  background: linear-gradient(135deg, rgba(0,122,255,0.10), rgba(140,245,208,0.08)) !important;
  color: #0055bb !important;
  border: 1px solid rgba(0,122,255,0.22) !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
.rm-agency-h2 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
  font-weight: 800 !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #0a0e1a 0%, #1e3560 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rm-agency-h2 .rd-g-blue {
  background: linear-gradient(135deg, #007AFF 0%, #5ac8fa 50%, #8cf5d0 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important;
}
.rm-agency-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  line-height: 1.55 !important;
  color: #424b6a !important;
  max-width: 720px; margin: 0 auto !important;
}
.rm-agency-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  width: 100%; max-width: 1080px; margin: 0 auto;
}
.rm-agency-stat {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,247,250,0.85));
  border: 1px solid rgba(0, 30, 80, 0.10);
  border-radius: 22px;
  padding: clamp(20px, 2.5vh, 32px) clamp(16px, 2vw, 24px);
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 8px 24px rgba(0, 30, 80, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.rm-agency-stat:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 16px 36px rgba(0, 30, 80, 0.10);
}
.rm-agency-stat-num {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--c1, #007AFF), var(--c2, #5ac8fa));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.rm-agency-stat-label {
  font-size: 0.8rem; color: #424b6a;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
.rm-agency-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
  width: 100%; max-width: 1180px; margin: 0 auto;
  text-align: left;
}
.rm-agency-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(248,250,253,0.88));
  border: 1px solid rgba(0, 30, 80, 0.10);
  border-radius: 22px;
  padding: clamp(24px, 3vh, 34px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 6px 20px rgba(0, 30, 80, 0.05);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .25s ease;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
}
.rm-agency-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 122, 255, 0.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 48px rgba(0, 30, 80, 0.12);
}
.rm-agency-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rm-agency-card-icon--blue   { color: #007AFF; background: linear-gradient(135deg, rgba(0,122,255,0.10), rgba(90,200,250,0.10)); border: 1px solid rgba(0,122,255,0.22); }
.rm-agency-card-icon--purple { color: #a855f7; background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(192,132,252,0.10)); border: 1px solid rgba(168,85,247,0.22); }
.rm-agency-card-icon--mint   { color: #10b981; background: linear-gradient(135deg, rgba(140,245,208,0.18), rgba(52,199,89,0.12)); border: 1px solid rgba(52,199,89,0.22); }
.rm-agency-card-icon--gradient {
  color: #fff;
  background: linear-gradient(135deg, #007AFF 0%, #5ac8fa 50%, #8cf5d0 100%);
  border: 1px solid rgba(0,122,255,0.35);
  box-shadow: 0 6px 16px rgba(0,122,255,0.25);
}
.rm-agency-card-title {
  font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em;
  color: #0a1424; margin: 4px 0 0 !important; line-height: 1.3;
}
.rm-agency-card-desc {
  font-size: 0.92rem; line-height: 1.55; color: #424b6a;
  margin: 0 !important; flex-grow: 1;
}
.rm-agency-card-tag {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 5px 11px; border-radius: 999px;
}
.rm-agency-tag--shared {
  background: rgba(168, 85, 247, 0.10); color: #7c3aed;
  border: 1px solid rgba(168, 85, 247, 0.22);
}
.rm-agency-tag--pro {
  background: linear-gradient(135deg, rgba(0,122,255,0.10), rgba(140,245,208,0.12));
  color: #0055bb; border: 1px solid rgba(0,122,255,0.28);
}
.rm-agency-card--pro {
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(240,247,255,0.92));
  border: 1px solid rgba(0, 122, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 24px rgba(0, 122, 255, 0.08);
}
.rm-agency-card--pro::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007AFF 0%, #5ac8fa 50%, #8cf5d0 100%);
  border-radius: 22px 22px 0 0; opacity: 0.9;
}
.rm-agency-cta-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-top: clamp(8px, 2vh, 24px);
}
.rm-agency-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #007AFF 0%, #5ac8fa 50%, #8cf5d0 100%);
  color: #fff !important;
  padding: 18px 36px; border-radius: 999px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 16px 40px rgba(0, 122, 255, 0.35);
  transition: transform .25s ease, box-shadow .35s ease, filter .15s ease;
}
.rm-agency-cta:hover {
  transform: translateY(-3px); filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.28) inset,
    0 22px 52px rgba(0, 122, 255, 0.45);
}
.rm-agency-cta:hover svg { transform: translateX(4px); }
.rm-agency-cta svg { transition: transform .25s ease; }
.rm-agency-cta-hint {
  font-size: 0.88rem; color: #6b7593; font-weight: 500; margin: 0;
}
.rm-agency-scroll {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-top: clamp(32px, 6vh, 56px);
  opacity: 0.55; transition: opacity .3s ease;
}
.rm-agency-scroll:hover { opacity: 0.85; }
.rm-agency-scroll-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: #424b6a; font-weight: 600;
}
.rm-agency-scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(10, 20, 36, 0.35); border-radius: 12px;
  position: relative; display: flex; justify-content: center;
}
.rm-agency-scroll-dot {
  width: 3px; height: 8px;
  background: rgba(10, 20, 36, 0.55); border-radius: 2px;
  margin-top: 6px;
  animation: rm-agency-scroll-bob 1.6s ease-in-out infinite;
}
@keyframes rm-agency-scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%      { transform: translateY(10px); opacity: 0.3; }
}
@media (max-width: 980px) {
  .rm-agency-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .rm-agency-section { min-height: auto; padding-top: 60px !important; padding-bottom: 60px !important; }
  .rm-agency-stats   { grid-template-columns: repeat(2, 1fr); }
  .rm-agency-grid    { grid-template-columns: 1fr; }
  .rm-agency-card    { min-height: auto; }
  .rm-agency-orb     { filter: blur(60px); opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-agency-orb, .rm-agency-scroll-dot { animation: none !important; }
}
