:root {
  --navy:   #0B2A4A;
  --ink:    #042B56;
  --sky:    #0A63B0;
  --cyan:   #0DC3F4;
  --fog:    #F4F7FB;
  --line:   rgba(11,42,74,.10);
  --shadow: 0 20px 48px rgba(10,40,70,.10);
  --r:      999px;
  --ease:   cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.rv-page {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background: #ffffff;
  font-family: var(--font-body);
}

.rv-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  animation: slideUp .5s var(--ease) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rv-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--sky) 55%, var(--cyan) 100%);
}

.rv-body {
  padding: 2.75rem 2.5rem 2.5rem;
}

.rv-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10,99,176,.08);
  color: var(--sky);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.rv-step svg { flex-shrink: 0; }

.rv-heading {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: .5rem;
}

.rv-sub {
  font-size: .875rem;
  color: #7a8fa6;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.rv-search-wrap { position: relative; }

.rv-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aafbf;
  pointer-events: none;
  transition: color .2s;
}

.rv-search-wrap:focus-within .rv-search-icon { color: var(--sky); }

.rv-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9aafbf;
  padding: 4px;
  display: none;
  line-height: 0;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.rv-search-clear:hover { color: var(--ink); background: var(--fog); }

.rv-input {
  width: 100%;
  padding: 14px 44px;
  border-radius: var(--r);
  background: var(--fog);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: .975rem;
  color: var(--ink);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background .2s;
  outline: none;
  will-change: border-color, box-shadow;
}

.rv-input:focus,
.rv-input:active {
  background: #fff;
  border-color: var(--sky);
  box-shadow: 0 0 0 3.5px rgba(10,99,176,.12) !important;
  outline: none !important;
}

.rv-input:-webkit-autofill,
.rv-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #fff inset !important;
  box-shadow: 0 0 0 40px #fff inset !important;
  -webkit-text-fill-color: var(--ink) !important;
}

.rv-spinner {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.rv-spinner svg { animation: spin .7s linear infinite; }

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

.rv-dropdown {
  margin-top: 6px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(10,40,70,.10);
  overflow: hidden;
  display: none;
}

.rv-dropdown.open { display: block; }

.rv-list {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0dae6 transparent;
}

.rv-list::-webkit-scrollbar { width: 5px; }
.rv-list::-webkit-scrollbar-thumb { background: #d0dae6; border-radius: 10px; }

.rv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background .18s;
  border-bottom: 1px solid rgba(11,42,74,.05);
}

.rv-item:last-child { border-bottom: none; }

.rv-item:hover,
.rv-item.active { background: rgba(10,99,176,.05); }

.rv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.rv-item-info strong {
  display: block;
  font-size: .9rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

.rv-item-info span { font-size: .78rem; color: #7a8fa6; }

.rv-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(16,185,129,.10);
  color: #0e9e6f;
}

.rv-empty {
  padding: 20px 18px;
  font-size: .875rem;
  color: #7a8fa6;
  text-align: center;
}

.rv-footer-hint {
  padding: 9px 18px;
  font-size: .73rem;
  color: #9aafbf;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
}

.rv-selected {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(10,99,176,.06);
  border: 1.5px solid rgba(10,99,176,.18);
  animation: fadeIn .25s var(--ease);
}

.rv-selected.show { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.rv-selected-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rv-selected-name {
  flex: 1;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.rv-selected-loc {
  font-size: .78rem;
  color: #7a8fa6;
  margin-top: 1px;
}

.rv-selected-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #9aafbf;
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  transition: color .2s, background .2s;
}

.rv-selected-clear:hover { color: #e53e3e; background: rgba(229,62,62,.08); }

.rv-submit {
  display: none;
  width: 100%;
  margin-top: 1.5rem;
  padding: 15px;
  border-radius: var(--r);
  border: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), opacity .2s;
  position: relative;
  overflow: hidden;
}

.rv-submit.show { display: block; }

.rv-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
}

.rv-submit:hover {
  transform: translateY(-2px);

}

.rv-submit:active { transform: translateY(0); }

.rv-submit .arrow {
  display: inline-block;
  transition: transform .22s var(--ease);
}

.rv-submit:hover .arrow { transform: translateX(4px); }

@media (max-width: 480px) {
  .rv-body { padding: 2rem 1.25rem 1.75rem; }
}
