.nq-local-market-panel,
.nq-local-market-panel * {
  box-sizing: border-box;
}

.nq-local-market-panel {
  width: 100%;
  min-width: 0;
  margin: 18px 0;
  padding: 18px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.nq-local-market-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.3;
}

.nq-local-market-help {
  margin: 0 0 14px;
  color: #526174;
  font-size: 0.84rem;
  line-height: 1.5;
}

.nq-local-market-state-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: -2px 0 12px;
  color: #4338ca;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-underline-offset: 2px;
}

.nq-local-market-state-link:hover {
  color: #3730a3;
  text-decoration: underline;
}

.nq-local-market-state-link:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.3);
  outline-offset: 2px;
  border-radius: 2px;
}

.nq-local-market-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.nq-local-market-field {
  display: block;
  min-width: 0;
  color: #344256;
  font-size: 0.78rem;
  font-weight: 700;
}

.nq-local-market-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  margin-top: 5px;
  padding: 9px 11px;
  color: #111827;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
  font-size: 1rem;
}

.nq-local-market-input:focus {
  outline: 3px solid rgba(79, 70, 229, 0.18);
  border-color: #4f46e5;
}

.nq-local-market-submit,
.nq-local-market-link {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #fff;
  background: #4338ca;
  border: 1px solid #4338ca;
  border-radius: 7px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.nq-local-market-submit:hover,
.nq-local-market-link:hover {
  background: #3730a3;
  border-color: #3730a3;
}

.nq-local-market-submit:focus-visible,
.nq-local-market-link:focus-visible,
.nq-local-market-service-list a:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.3);
  outline-offset: 2px;
}

.nq-local-market-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.nq-local-market-status {
  margin: 10px 0 0;
  color: #9f1239;
  font-size: 0.82rem;
  line-height: 1.45;
}

.nq-local-market-result {
  min-width: 0;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.nq-local-market-result[hidden],
.nq-local-market-status[hidden] {
  display: none;
}

.nq-local-market-result-summary {
  margin: 0 0 7px;
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.5;
}

.nq-local-market-result-note {
  margin: 0 0 12px;
  color: #526174;
  font-size: 0.78rem;
  line-height: 1.45;
}

.nq-local-market-service-heading {
  margin: 15px 0 8px;
  color: #344256;
  font-size: 0.82rem;
}

.nq-local-market-service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nq-local-market-service-list li {
  min-width: 0;
}

.nq-local-market-service-list a {
  display: block;
  min-width: 0;
  padding: 9px 10px;
  color: #3730a3;
  background: #f5f6ff;
  border: 1px solid #e0e4ff;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nq-local-market-service-list a:hover {
  background: #eceeff;
  border-color: #c7ceff;
}

.locations-zip-lookup {
  margin-bottom: 22px;
}

.locations-city-search-heading {
  margin: 0 0 11px;
  color: #334155;
  font-size: 0.95rem;
}

.nq-national-cost-table-scroll {
  max-width: 100%;
  min-width: 0;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nq-national-cost-table-scroll:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.3);
  outline-offset: 2px;
}

@media (min-width: 761px) and (max-width: 800px) {
  body.locations-index .nav-dropdown {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 480px) {
  .nq-local-market-panel {
    padding: 15px;
  }

  .nq-local-market-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .nq-local-market-submit,
  .nq-local-market-link {
    width: 100%;
  }
}