.hpf-root {
  --hpf-bg: #0b1220;
  --hpf-surface: rgba(255, 255, 255, 0.92);
  --hpf-surface-2: rgba(246, 248, 252, 0.88);
  --hpf-border: rgba(15, 23, 42, 0.1);
  --hpf-border-strong: rgba(37, 99, 235, 0.2);
  --hpf-text: #020617;
  --hpf-muted: #334155;
  --hpf-accent: #2563eb;
  --hpf-accent-2: #7c3aed;
  --hpf-success: #0f766e;
  --hpf-error: #b91c1c;
  max-width: 1100px;
  margin: 24px auto;
  color: var(--hpf-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hpf-form {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
  border: 1px solid var(--hpf-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.hpf-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(135deg, #081226, #13213c 55%, #1e293b);
  color: #fff;
}

.hpf-eyebrow,
.hpf-section-label,
.hpf-header-badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.hpf-eyebrow,
.hpf-section-label {
  margin: 0 0 8px;
  opacity: 0.8;
}

.hpf-header-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  color: #fff;
}

.hpf-subtitle {
  max-width: 640px;
  margin: 10px 0 0;
  color: rgba(255,255,255,0.82);
}

.hpf-header-badge {
  padding: 12px 16px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  white-space: nowrap;
}

.hpf-section {
  padding: 30px 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hpf-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.hpf-section-heading h3 {
  margin: 0;
  font-size: 24px;
}

.hpf-lookup-card {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid var(--hpf-border-strong);
  padding: 18px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.hpf-lookup-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hpf-lookup-copy strong {
  font-size: 16px;
}

.hpf-lookup-copy span,
.hpf-powered {
  font-size: 14px;
  color: var(--hpf-muted);
}

.hpf-field-help {
  margin: 8px 2px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hpf-muted);
}

.hpf-field-help-strong {
  font-weight: 700;
}

.hpf-field-help.is-error {
  color: var(--hpf-error);
}

.hpf-business-insights {
  background: var(--hpf-surface-2);
  border: 1px solid var(--hpf-border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
}

.hpf-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hpf-insight-item {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--hpf-border);
  border-radius: 18px;
  padding: 14px 16px;
}

.hpf-insight-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.hpf-insight-value {
  color: var(--hpf-text);
  font-size: 15px;
  word-break: break-word;
}

.hpf-insight-value a {
  color: var(--hpf-accent);
  text-decoration: none;
}

.hpf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hpf-grid-business {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hpf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hpf-field-span-2 {
  grid-column: span 2;
}

.hpf-grid-business .hpf-field-span-2 {
  grid-column: span 2;
}

.hpf-field-note {
  padding-top: 2px;
}

.hpf-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--hpf-text);
}

.hpf-field input,
.hpf-field select,
.hpf-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.hpf-field input::placeholder,
.hpf-field textarea::placeholder {
  color: #6b7280;
}

.hpf-field input:focus,
.hpf-field select:focus,
.hpf-field textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.hpf-field input:invalid,
.hpf-field select:invalid,
.hpf-field textarea:invalid {
  box-shadow: none;
}

.hpf-field-search .hpf-place-picker-wrap {
  position: relative;
  z-index: 8;
}

.hpf-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  margin-top: 0;
  border: 1px solid var(--hpf-border);
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  z-index: 50;
}

.hpf-search-result {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hpf-search-result:last-child {
  border-bottom: 0;
}

.hpf-search-result.is-active,
.hpf-search-result:hover,
.hpf-search-result:focus {
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}

.hpf-search-result-name {
  font-weight: 700;
  color: var(--hpf-text);
}

.hpf-search-result-address {
  font-size: 13px;
  color: var(--hpf-muted);
}

.hpf-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 32px 32px;
}

.hpf-submit-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  min-width: 240px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--hpf-accent), var(--hpf-accent-2));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.hpf-submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

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

.hpf-alert {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.hpf-alert.is-success {
  background: rgba(15, 118, 110, 0.08);
  color: var(--hpf-success);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.hpf-alert.is-error {
  background: rgba(185, 28, 28, 0.08);
  color: var(--hpf-error);
  border: 1px solid rgba(185, 28, 28, 0.18);
}

.hpf-error-list {
  margin: 10px 0 0 18px;
  padding: 0;
}

.hpf-error-list li {
  margin: 6px 0;
  font-weight: 600;
}

.hpf-lookup-card-inline {
  grid-template-columns: 1fr auto;
  align-items: center;
}

@media (max-width: 960px) {
  .hpf-lookup-card,
  .hpf-grid-business,
  .hpf-grid,
  .hpf-insight-grid,
  .hpf-header-card {
    grid-template-columns: 1fr;
  }

  .hpf-header-card {
    display: grid;
  }

  .hpf-field-span-2,
  .hpf-grid-business .hpf-field-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hpf-header-card,
  .hpf-section,
  .hpf-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hpf-header-card {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
