/* Rentalmatch Tenant Wizard Styles */

/* Wizard container */
.rm-tenant-section { 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; }
