/* VoltEdge RC1 - scoped search and form styles */
.ve-search-results {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}
.ve-search-results[hidden],
.ve-ask[hidden] {
  display: none !important;
}

.ve-search-results a {
  display: block;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border, #1a2540);
  color: var(--text, #e8edf5);
  text-decoration: none;
}

.ve-search-results li:last-child a {
  border-bottom: 0;
}

.ve-search-results a:hover,
.ve-search-results a[data-active="true"],
.ve-search-results a:focus-visible {
  background: rgba(0, 212, 255, .08);
  outline: 2px solid var(--accent, #00d4ff);
  outline-offset: -2px;
}

.ve-search-results__category {
  color: var(--accent, #00d4ff);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ve-search-results__title {
  margin-top: .15rem;
  font-weight: 600;
}

.ve-search-results__excerpt,
.ve-search-results__empty,
.ve-form-help {
  color: var(--muted, #9aacbf);
  font-size: .86rem;
}

.ve-search-results__empty {
  padding: 1rem 1.2rem;
}

.ve-search-results__ask {
  width: 100%;
  min-height: 44px;
  padding: .75rem 1rem;
  border: 1px solid var(--accent, #00d4ff);
  border-radius: 4px;
  background: rgba(0, 212, 255, .08);
  color: var(--accent, #00d4ff);
  cursor: pointer;
  font: 700 .9rem/1.25 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.ve-search-results__ask:hover,
.ve-search-results__ask:focus-visible {
  background: rgba(0, 212, 255, .16);
  outline: 3px solid rgba(0, 212, 255, .35);
  outline-offset: 2px;
}

.ve-ask {
  margin: 2rem 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--border, #1a2540);
  border-radius: 8px;
  background: var(--card, #0f1628);
}

.ve-ask h2 {
  margin: 0 0 .5rem;
  color: var(--text, #e8edf5);
  font: 700 clamp(1.35rem, 4vw, 2rem)/1.2 "Barlow Condensed", system-ui, sans-serif;
}

.ve-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.ve-form label,
.ve-form legend {
  color: var(--text, #e8edf5);
  font-weight: 600;
}

.ve-form textarea,
.ve-form input[type="email"] {
  width: 100%;
  min-width: 0;
  margin-top: .35rem;
  padding: .75rem;
  border: 1px solid var(--border, #1a2540);
  border-radius: 6px;
  background: var(--bg, #06080f);
  color: var(--text, #e8edf5);
  font: inherit;
}

.ve-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.ve-form textarea:focus-visible,
.ve-form input:focus-visible,
.ve-form button:focus-visible {
  outline: 3px solid rgba(0, 212, 255, .45);
  outline-offset: 2px;
}

.ve-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ve-form__check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .6rem;
  align-items: start;
  margin-top: .7rem;
  color: var(--muted, #9aacbf);
  font-weight: 400 !important;
}

.ve-form__check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  accent-color: var(--accent, #00d4ff);
}

.ve-form__submit {
  justify-self: start;
  min-height: 44px;
  padding: .75rem 1.3rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent, #00d4ff);
  color: var(--bg, #06080f);
  cursor: pointer;
  font: 700 .9rem/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ve-form__submit[disabled] {
  cursor: wait;
  opacity: .65;
}

.ve-form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted, #9aacbf);
}

.ve-form-status[data-state="success"] {
  color: var(--green, #00e676);
}

.ve-form-status[data-state="error"] {
  color: #ff8b7e;
}

.ve-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 420px) {
  .ve-search-results a,
  .ve-search-results__empty {
    padding: .85rem;
  }

  .ve-form__submit {
    width: 100%;
  }
}
