/**
 * MR-2026-09-002 STEP 9 — Shared booking detail-address chrome.
 * Foundation: car reserve 「住所」 card (都道府県 / 市区町村・町名 / 番地 / 建物名).
 * Postal entry remains booking-postal-entry (already SHARED). This module is post-postal detail only.
 * FE validation = assist only. Server / evaluation / slot revalidation stay outside.
 * CAR ONLY (address type / store hours / visit-map / pin) stay outside this module.
 */

.booking-detail-address-host,
.booking-detail-address,
.nbd-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nbd-shell {
  display: grid;
  gap: 0;
}

.nbd-title {
  margin: 0 0 0.65rem;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent, #0f6b5c);
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #cfd9e0);
}

.nbd-lead {
  margin: 0 0 1rem;
  color: var(--ink-muted, #5a6b78);
  font-size: 14px;
  line-height: 1.55;
}

.nbd-fields {
  display: grid;
  gap: 0;
}

.nbd-shell .form-row,
.booking-detail-address-shared-fields .form-row {
  margin-bottom: 16px;
}

.nbd-shell .form-row:last-child,
.booking-detail-address-shared-fields .form-row:last-child {
  margin-bottom: 0;
}

.nbd-shell label.field,
.booking-detail-address-shared-fields label.field {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #0f6b5c);
  margin-bottom: 6px;
}

.nbd-shell .req,
.booking-detail-address-shared-fields .req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bad-bg, #fde8e8);
  color: var(--bad, #b42318);
  font-size: 11px;
}

.nbd-shell .nbd-optional,
.booking-detail-address-shared-fields .nbd-optional {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted, #5a6b78);
}

.nbd-shell input[type="text"],
.nbd-shell input[type="tel"],
.booking-detail-address-shared-fields input[type="text"],
.booking-detail-address-shared-fields input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line, #cfd9e0);
  border-radius: var(--radius-input, 10px);
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink, #1a2836);
  min-height: 48px;
  margin: 0;
}

.nbd-shell input[readonly],
.booking-detail-address-shared-fields input[readonly] {
  background: #f3f6f8;
  color: var(--ink-muted, #5a6b78);
}

.nbd-shell .field-note,
.booking-detail-address-shared-fields .field-note {
  font-size: 13px;
  color: var(--ink-muted, #5a6b78);
  margin-top: 8px;
  margin-bottom: 0;
}

.nbd-shell .field-err,
.booking-detail-address-shared-fields .field-err,
.nbd-field-err {
  color: var(--bad, #b42318);
  font-size: 0.95rem;
  margin: 6px 0 0;
  min-height: 1.2em;
}

.nbd-shell .form-row.is-invalid input,
.booking-detail-address-shared-fields .form-row.is-invalid input {
  border-color: var(--bad, #b42318);
}

.nbd-postal-summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line, #cfd9e0);
  border-radius: var(--radius-panel, 12px);
  background: var(--accent-soft, #e8f5f1);
}

.nbd-postal-summary-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted, #5a6b78);
}

.nbd-postal-summary-value {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink, #1a2836);
}

.nbd-candidates {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nbd-candidate {
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-input, 10px);
  border: 1px solid var(--line, #cfd9e0);
  background: #fff;
  cursor: pointer;
  min-height: 48px;
}

.nbd-candidate.is-selected,
.nbd-candidate[aria-pressed="true"] {
  border-color: var(--accent, #0f6b5c);
  background: var(--accent-soft, #e8f5f1);
}

.nbd-candidate-empty {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted, #5a6b78);
}

.nbd-nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.nbd-nav .btn {
  width: auto;
  min-width: 7rem;
  flex: 1;
  margin: 0;
  text-align: center;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-btn, 999px);
  border: 1px solid var(--line, #cfd9e0);
  background: #fff;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nbd-nav .btn.primary {
  background: var(--accent, #0f6b5c);
  color: #fff;
  border-color: var(--accent, #0f6b5c);
}

.nbd-nav .btn.ghost {
  background: #fff;
  border: 1px solid var(--accent, #0f6b5c);
  color: var(--accent, #0f6b5c);
}

.nbd-nav .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
