.main-header { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 1.42rem; font-weight: 700; letter-spacing: -0.4px; color: var(--accent, #2c2c2c); text-decoration: none; white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: flex-end; min-width: 240px; }
.search-bar { flex: 1; max-width: 420px; position: relative; }
.search-input { width: 100%; padding: 9px 16px 9px 40px; border: 1px solid var(--border, #ddd); border-radius: 999px; background: #f9f9f9; font-size: 0.95rem; }
.search-input:focus { outline: none; border-color: #2c2c2c; background: #fff; }
.search-bar::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; border: 2px solid #888; border-radius: 50%; transform: translateY(-50%); pointer-events: none; }
.search-bar::after { content: ""; position: absolute; left: 26px; top: 62%; width: 7px; height: 2px; background: #888; transform: rotate(45deg); pointer-events: none; }
.header-link { color: #2c2c2c; text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.header-link:hover { text-decoration: underline; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.12); z-index: 200; overflow: hidden; }
.search-hit, .search-more, .search-empty { display: block; padding: 10px 14px; text-decoration: none; color: #111; border-bottom: 1px solid #f0f0f0; }
.search-hit:hover, .search-more:hover { background: #f6f6f6; }
.search-hit-name { display: block; font-weight: 600; font-size: 0.92rem; }
.search-hit-meta { display: block; font-size: 0.78rem; color: #666; }
.search-more, .search-empty { font-size: 0.88rem; color: #333; }
.search-row { display: block; padding: 16px 0; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; }
.search-row strong { display: block; margin-bottom: 4px; }
.search-row span { font-size: 0.9rem; color: #555; }

.page-wrap { max-width: 720px; margin: 0 auto; padding: 36px 16px 60px; }
.page-wrap h1 { font-size: 1.7rem; margin-bottom: 8px; }
.lede { color: #555; margin-bottom: 28px; }
.form-grid { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.parts-only[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.submit-btn { background: #2c2c2c; color: #fff; border: none; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 1rem; cursor: pointer; }
.submit-btn:hover { background: #111; }
.form-note { font-size: 0.85rem; color: #666; margin-top: 10px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; }
.alert-ok { background: #eef8ee; color: #145214; }
.alert-err { background: #fdeeee; color: #7a1f1f; }
@media (max-width: 720px) {
  .main-header { flex-direction: column; align-items: stretch; }
  .header-tools { justify-content: stretch; }
  .search-bar { max-width: none; }
  .form-row-2 { grid-template-columns: 1fr; }
}
