.request-result-dialog {
  width: min(92vw, 520px);
  border: 0;
  border-top: 4px solid var(--gold);
  padding: 42px;
  border-radius: 12px;
  color: var(--navy);
  box-shadow: 0 24px 70px rgba(6, 23, 39, .32);
  text-align: center;
}
.request-result-dialog::backdrop { background: rgba(6, 23, 39, .72); }
.request-result-dialog h4 { margin: 14px 0 8px; font-size: 25px; }
.request-result-dialog p { margin: 0; color: var(--muted); line-height: 1.65; }
.request-result-dialog strong {
  display: block;
  width: max-content;
  margin: 18px auto 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: #f5ead7;
  color: #805719;
  font-size: 18px;
  letter-spacing: .05em;
}
.request-result-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe1e6;
  border-radius: 50%;
  background: #f2f5f7;
  color: var(--navy);
  font-size: 24px;
  cursor: pointer;
}
.request-result-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 800;
}
.request-result-dialog.success .request-result-icon { background: #e6f5ec; color: #1e8650; }
.request-result-dialog.success .request-result-icon::before { content: "✓"; }
.request-result-dialog.error .request-result-icon { background: #fdebe7; color: #be3f2d; }
.request-result-dialog.error .request-result-icon::before { content: "!"; }
.request-result-ok {
  min-width: 120px;
  margin-top: 24px;
  padding: 12px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}
.searchable-select-native {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.conditional-field[hidden] { display: none !important; }
.searchable-select { position: relative; min-width: 0; width: 100%; font-weight: 500; }
.phone-field,
.follow-up-phone { grid-template-columns: 150px minmax(0, 1fr) !important; }
.phone-field .searchable-select,
.follow-up-phone .searchable-select { width: 100%; min-width: 0; }
.searchable-select-trigger {
  position: relative;
  width: 100%;
  min-height: 43px;
  padding: 10px 36px 10px 12px;
  overflow: hidden;
  border: 1px solid #cbc8c1;
  background: #faf9f6;
  color: var(--navy);
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
}
[dir="rtl"] .searchable-select-trigger { padding: 10px 12px 10px 36px; }
.searchable-select-trigger::after {
  content: "⌄";
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 16px;
}
.searchable-select-trigger:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189,144,80,.15); outline: 0; }
.searchable-select-menu {
  position: absolute;
  z-index: 120;
  inset: calc(100% + 5px) 0 auto;
  max-height: 310px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #d3d9de;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(6,23,39,.2);
}
.searchable-select-filter {
  width: 100%;
  margin-bottom: 7px;
  padding: 10px 11px !important;
  border: 1px solid #c9d0d6 !important;
  background: #fff !important;
}
.searchable-select-options { max-height: 238px; overflow-y: auto; }
.searchable-select-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  text-align: start;
  cursor: pointer;
}
.searchable-select-option:hover,
.searchable-select-option:focus,
.searchable-select-option.selected { background: #f5ead7; outline: 0; }
.searchable-select-empty { margin: 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) {
  .request-result-dialog { padding: 36px 22px 28px; }
  .phone-field,
  .follow-up-phone { grid-template-columns: 125px minmax(0, 1fr) !important; }
  .searchable-select-trigger { padding-inline-start: 9px; font-size: 11px; }
}

.agent-id-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: stretch;
}
.agent-id-check-row button {
  min-width: 7rem;
  border: 1px solid #bd9050;
  border-radius: 0.35rem;
  background: #bd9050;
  color: #0b1d2d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.agent-id-check-row button:disabled { opacity: 0.6; cursor: wait; }
.agent-lookup-result[hidden] { display: none; }
.agent-lookup-result.available {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #a8d8bd;
  border-radius: 0.35rem;
  background: #edf8f1;
  color: #176b3a;
  font-weight: 700;
}
