/* NFC Roof Estimator V3 — Widget Styles */
/* Copyright (c) 2026 Northern Forge Construction. All Rights Reserved. */

:root {
  --nfc-green:        #248232;
  --nfc-green-light:  #e8f5e9;
  --nfc-green-dark:   #1a6325;
  --nfc-black:        #1A1A2E;
  --nfc-slate:        #6B7280;
  --nfc-text-light:   #9CA3AF;
  --nfc-off-white:    #F8FAFC;
  --nfc-border:       #E5E7EB;
  --nfc-white:        #ffffff;
  --nfc-radius:       16px;
  --nfc-radius-sm:    10px;
  --nfc-shadow:       0 20px 60px rgba(26,26,46,0.12);
  --nfc-shadow-sm:    0 4px 16px rgba(26,26,46,0.08);
  --nfc-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page Shell ── */
.nfc-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nfc-off-white);
  font-family: var(--nfc-font);
  color: var(--nfc-black);
}

/* ── Header ── */
.nfc-header {
  background: var(--nfc-white);
  border-bottom: 1px solid var(--nfc-border);
  padding: 14px 24px;
}
.nfc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nfc-brand { display: flex; align-items: center; gap: 14px; }
.nfc-brand-icon {
  background: var(--nfc-green);
  border-radius: 10px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nfc-brand-icon svg { color: white; }
.nfc-brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nfc-brand-sub {
  font-size: 0.65rem;
  color: var(--nfc-green);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nfc-header-contact {
  display: flex; align-items: center; gap: 20px;
}
.nfc-phone-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700;
}
.nfc-phone-label svg { color: var(--nfc-green); }
.nfc-btn-contact {
  background: var(--nfc-black); color: white;
  padding: 9px 20px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.nfc-btn-contact:hover { background: var(--nfc-green); }

@media (max-width: 600px) {
  .nfc-header-contact { display: none; }
}

/* ── Main ── */
.nfc-main { flex: 1; padding: 32px 16px; }
.nfc-main-inner { max-width: 900px; margin: 0 auto; }

/* ── Step Indicator ── */
.nfc-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 28px;
}
.nfc-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.nfc-step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--nfc-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
  color: var(--nfc-text-light);
  transition: all 0.25s;
}
.nfc-step-dot.active {
  background: var(--nfc-green); border-color: var(--nfc-green); color: white;
}
.nfc-step-dot.done {
  background: var(--nfc-black); border-color: var(--nfc-black); color: white;
}
.nfc-step-label {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--nfc-text-light);
}
.nfc-step-label.active { color: var(--nfc-green); }
.nfc-step-label.done   { color: var(--nfc-black); }
.nfc-step-line {
  width: 48px; height: 2px; background: var(--nfc-border);
  margin: 0 4px; margin-bottom: 22px; border-radius: 2px;
  transition: background 0.25s;
}
.nfc-step-line.done { background: var(--nfc-black); }
@media (max-width: 480px) {
  .nfc-step-line { width: 20px; }
  .nfc-step-label { display: none; }
}

/* ── Card ── */
.nfc-card {
  background: var(--nfc-white);
  border-radius: var(--nfc-radius);
  box-shadow: var(--nfc-shadow);
  border: 1px solid var(--nfc-border);
  overflow: hidden;
}
.nfc-card-header {
  padding: 22px 28px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--nfc-border);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.nfc-card-title {
  font-size: 1.4rem; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.1;
}
.nfc-card-sub {
  font-size: 0.8rem; color: var(--nfc-slate);
  margin-top: 5px; font-weight: 500;
}
.nfc-card-header-dark {
  background: var(--nfc-black); color: white;
}
.nfc-card-header-dark .nfc-card-sub { color: #9CA3AF; }

/* ── MAP STEP ── */
.nfc-map-grid {
  display: grid; grid-template-columns: 1fr 240px;
}
@media (max-width: 700px) {
  .nfc-map-grid { grid-template-columns: 1fr; }
  .nfc-map-sidebar { border-left: none !important; border-top: 1px solid var(--nfc-border); }
}
.nfc-map-body { padding: 24px; }
.nfc-map-sidebar {
  padding: 24px;
  background: #F8FAFC;
  border-left: 1px solid var(--nfc-border);
  display: flex; flex-direction: column; gap: 24px;
}

/* Address input */
.nfc-input-wrap { position: relative; }
.nfc-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--nfc-slate); pointer-events: none;
}
.nfc-input {
  width: 100%;
  padding: 13px 16px 13px 40px;
  border: 2px solid var(--nfc-border);
  border-radius: var(--nfc-radius-sm);
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--nfc-font);
  outline: none;
  transition: border-color 0.2s;
  color: var(--nfc-black);
  background: white;
}
.nfc-input:focus { border-color: var(--nfc-green); }

/* Map container */
.nfc-map-container {
  width: 100%; height: 460px;
  border-radius: var(--nfc-radius-sm);
  border: 2px solid var(--nfc-border);
  overflow: hidden; margin: 12px 0;
  position: relative;
}
.nfc-map-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--nfc-black); color: white;
  padding: 10px 20px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  z-index: 10; white-space: nowrap;
  animation: bounce 2s infinite;
}
.nfc-map-hint-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444; border: 2px solid white;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
@keyframes bounce {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-4px)}
}
@keyframes pulse {
  0%,100%{opacity:1} 50%{opacity:0.5}
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.nfc-map-tools {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.nfc-sqft-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--nfc-green-light); color: var(--nfc-green-dark);
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 800;
}
.nfc-btn-clear {
  background: none; border: none; cursor: pointer;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nfc-slate); transition: color 0.2s;
}
.nfc-btn-clear:hover { color: var(--nfc-black); }

/* How-to sidebar */
.nfc-how-label {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--nfc-slate); margin-bottom: 14px;
}
.nfc-how-steps { display: flex; flex-direction: column; gap: 16px; }
.nfc-how-step { display: flex; align-items: flex-start; gap: 12px; }
.nfc-how-num {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900; flex-shrink: 0;
}
.nfc-how-num.green { background: var(--nfc-green); color: white; }
.nfc-how-num.red   { background: #ef4444; color: white; }
.nfc-how-step-title {
  font-size: 0.7rem; font-weight: 900;
  text-transform: uppercase; color: var(--nfc-black);
}
.nfc-how-step-desc {
  font-size: 0.65rem; color: var(--nfc-text-light);
  margin-top: 2px; line-height: 1.4;
}
.red-text { color: #ef4444; font-weight: 700; }

/* Diagram */
.nfc-diagram {
  aspect-ratio: 1/1;
  background: #F1F5F9; border-radius: 10px;
  position: relative; overflow: hidden;
  border: 1px solid var(--nfc-border);
}
.nfc-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nfc-diagram-marker {
  position: absolute; border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.nfc-diagram-caption {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 4px; background: white;
  position: absolute;
}

/* Continue button */
.nfc-btn-primary {
  width: 100%; background: var(--nfc-green); color: white;
  padding: 16px; border-radius: var(--nfc-radius-sm);
  font-size: 0.8rem; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(36,130,50,0.25);
}
.nfc-btn-primary:hover:not(:disabled) { background: var(--nfc-green-dark); transform: translateY(-1px); }
.nfc-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ── QUESTIONS STEP ── */
.nfc-q-body { padding: 32px 28px; }
.nfc-q-section { margin-bottom: 32px; }
.nfc-q-label {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--nfc-slate); margin-bottom: 14px; display: block;
}
.nfc-option-grid { display: grid; gap: 12px; }
.nfc-option-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nfc-option-grid-4 { grid-template-columns: repeat(4, 1fr); }
.nfc-option-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) {
  .nfc-option-grid-3 { grid-template-columns: 1fr; }
  .nfc-option-grid-4 { grid-template-columns: 1fr 1fr; }
  .nfc-option-grid-2 { grid-template-columns: 1fr; }
}
.nfc-option {
  padding: 14px;
  border-radius: var(--nfc-radius-sm);
  border: 2px solid var(--nfc-border);
  cursor: pointer; text-align: left;
  transition: all 0.15s;
  background: white;
}
.nfc-option:hover { border-color: #D1D5DB; }
.nfc-option.selected {
  border-color: var(--nfc-green);
  background: var(--nfc-green-light);
}
.nfc-option-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; background: #F1F5F9; color: var(--nfc-slate);
  transition: all 0.15s;
}
.nfc-option.selected .nfc-option-icon {
  background: var(--nfc-green); color: white;
}
.nfc-option-title {
  font-size: 0.78rem; font-weight: 900;
  text-transform: uppercase; color: var(--nfc-black);
}
.nfc-option-desc { font-size: 0.65rem; color: var(--nfc-text-light); margin-top: 3px; }
.nfc-option-num {
  font-size: 1.5rem; font-weight: 900; color: var(--nfc-black);
  text-align: center; display: block;
  transition: color 0.15s;
}
.nfc-option.selected .nfc-option-num { color: var(--nfc-green); }
.nfc-option-center { text-align: center; }

.nfc-select {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--nfc-border);
  border-radius: var(--nfc-radius-sm);
  font-size: 0.88rem; font-weight: 700;
  font-family: var(--nfc-font); color: var(--nfc-black);
  background: #F8FAFC; outline: none;
  transition: border-color 0.2s; cursor: pointer;
}
.nfc-select:focus { border-color: var(--nfc-green); }

.nfc-q-nav {
  display: flex; align-items: center;
  justify-content: space-between; padding-top: 24px;
  border-top: 1px solid var(--nfc-border); flex-wrap: wrap; gap: 12px;
}
.nfc-btn-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nfc-slate); transition: color 0.2s;
}
.nfc-btn-back:hover { color: var(--nfc-black); }
.nfc-btn-secondary {
  background: var(--nfc-black); color: white;
  padding: 14px 28px; border-radius: var(--nfc-radius-sm);
  font-size: 0.8rem; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.nfc-btn-secondary:hover { background: #2d2d4e; }

/* ── LEAD STEP ── */
.nfc-lead-body { padding: 32px 28px; }
.nfc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 500px) { .nfc-field-row { grid-template-columns: 1fr; } }
.nfc-field { margin-bottom: 20px; }
.nfc-field-last { margin-bottom: 0; }
.nfc-field-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--nfc-slate); margin-bottom: 8px;
}
.nfc-field-input {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--nfc-border);
  border-radius: var(--nfc-radius-sm);
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--nfc-font); color: var(--nfc-black);
  background: #F8FAFC; outline: none;
  transition: border-color 0.2s;
}
.nfc-field-input:focus { border-color: var(--nfc-green); background: white; }
.nfc-field-input.error { border-color: #ef4444; }
.nfc-error-box {
  background: #FEF2F2; border: 1px solid #FECACA;
  color: #DC2626; border-radius: 10px;
  padding: 12px 16px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 20px;
}
.nfc-lead-nav {
  display: flex; align-items: center;
  justify-content: space-between; padding-top: 24px;
  border-top: 1px solid var(--nfc-border); flex-wrap: wrap; gap: 12px;
}
.nfc-btn-submit {
  background: var(--nfc-green); color: white;
  padding: 16px 36px; border-radius: var(--nfc-radius-sm);
  font-size: 0.82rem; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(36,130,50,0.3);
  min-width: 200px;
}
.nfc-btn-submit:hover:not(:disabled) { background: var(--nfc-green-dark); }
.nfc-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.nfc-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

/* ── RESULTS STEP ── */
.nfc-results { display: flex; flex-direction: column; gap: 28px; }
.nfc-results-card {
  background: white;
  border-radius: 24px;
  box-shadow: var(--nfc-shadow);
  border: 1px solid var(--nfc-border);
  padding: 36px;
}
@media (max-width: 600px) { .nfc-results-card { padding: 20px; } }

.nfc-results-header { text-align: center; margin-bottom: 28px; }
.nfc-results-title {
  font-size: 2rem; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1;
}
.nfc-results-sub { color: var(--nfc-slate); font-size: 0.9rem; margin-top: 6px; }

/* Report header (PDF) */
.nfc-report-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 20px; border-bottom: 4px solid var(--nfc-black);
  margin-bottom: 20px;
}
.nfc-report-brand { display: flex; align-items: center; gap: 14px; }
.nfc-report-brand-icon {
  background: var(--nfc-black); border-radius: 12px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.nfc-report-brand-name {
  font-size: 1.6rem; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1;
}
.nfc-report-brand-sub {
  font-size: 0.65rem; color: var(--nfc-green); font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px;
}
.nfc-report-meta { text-align: right; }
.nfc-report-meta-label {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nfc-slate);
}
.nfc-report-meta-date { font-size: 1.2rem; font-weight: 900; margin-top: 2px; }
.nfc-report-meta-name { font-size: 0.75rem; color: var(--nfc-slate); margin-top: 4px; }

/* Report detail boxes */
.nfc-report-detail {
  background: #F8FAFC; border-radius: 12px;
  padding: 14px 18px; border: 1px solid var(--nfc-border);
  margin-bottom: 12px;
}
.nfc-report-detail-label {
  font-size: 0.58rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--nfc-slate); margin-bottom: 4px;
}
.nfc-report-detail-value { font-size: 0.88rem; font-weight: 700; }

.nfc-report-specs {
  background: var(--nfc-green-light);
  border: 2px solid #C8E6C9;
  border-radius: 12px; padding: 18px 20px;
  margin: 14px 0;
}
.nfc-report-specs-title {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--nfc-green); margin-bottom: 12px;
}
.nfc-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 560px) { .nfc-specs-grid { grid-template-columns: 1fr 1fr; } }
.nfc-spec-label {
  font-size: 0.58rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nfc-slate);
}
.nfc-spec-value { font-size: 0.82rem; font-weight: 700; margin-top: 2px; }

/* Satellite image */
.nfc-sat-wrap {
  border-radius: 16px; overflow: hidden;
  border: 2px solid var(--nfc-border); margin: 16px 0;
}
.nfc-sat-header {
  background: #F8FAFC; padding: 10px 16px;
  border-bottom: 1px solid var(--nfc-border);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nfc-slate);
}
.nfc-sat-header svg { color: var(--nfc-green); }
.nfc-sat-img { aspect-ratio: 2/1; background: #E5E7EB; }
.nfc-sat-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nfc-sat-footer {
  padding: 10px 16px; background: #FBFCFE;
  font-size: 0.68rem; color: var(--nfc-text-light); font-style: italic;
  line-height: 1.4;
}

/* Tier cards */
.nfc-tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 24px;
}
@media (max-width: 700px) {
  .nfc-tiers-grid { grid-template-columns: 1fr; }
}
.nfc-tier-card {
  background: white; border-radius: 24px;
  border: 2px solid var(--nfc-border);
  padding: 24px; position: relative;
  box-shadow: var(--nfc-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nfc-tier-card:hover { transform: translateY(-2px); box-shadow: var(--nfc-shadow); }
.nfc-tier-card.popular {
  border-color: var(--nfc-green);
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(36,130,50,0.2);
  z-index: 1;
}
.nfc-tier-card.popular:hover { transform: scale(1.03) translateY(-2px); }
.nfc-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--nfc-green); color: white;
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.62rem; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.nfc-tier-label {
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--nfc-slate); text-align: center; margin-bottom: 10px;
}
.nfc-tier-price {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 2px; margin-bottom: 20px; flex-wrap: wrap;
}
.nfc-price-sign { font-size: 1rem; font-weight: 900; margin-top: 6px; }
.nfc-price-val { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.nfc-price-sep { font-size: 1.2rem; font-weight: 900; color: #D1D5DB; margin: 4px 4px 0; }
.nfc-tier-features { border-top: 1px solid var(--nfc-border); padding-top: 16px; }
.nfc-feature-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.nfc-feature-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.nfc-feature-icon.green { background: #E8F5E9; color: var(--nfc-green); }
.nfc-feature-icon.amber { background: #FFF8E1; color: #F59E0B; }
.nfc-feature-icon.blue  { background: #EFF6FF; color: #3B82F6; }
.nfc-feature-key {
  font-size: 0.55rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nfc-slate);
}
.nfc-feature-val { font-size: 0.7rem; font-weight: 700; color: var(--nfc-black); margin-top: 2px; line-height: 1.3; }
.nfc-feature-val.muted { color: var(--nfc-text-light); font-weight: 600; }
.nfc-feature-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.nfc-mini-key {
  font-size: 0.52rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nfc-slate);
}
.nfc-mini-val { font-size: 0.68rem; font-weight: 700; margin-top: 2px; }

/* Actions */
.nfc-results-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.nfc-btn-download {
  display: flex; align-items: center; gap: 8px;
  background: var(--nfc-black); color: white;
  padding: 14px 28px; border-radius: var(--nfc-radius-sm);
  font-size: 0.78rem; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--nfc-shadow-sm);
}
.nfc-btn-download:hover:not(:disabled) { background: #2d2d4e; }
.nfc-btn-download:disabled { opacity: 0.6; cursor: not-allowed; }
.nfc-btn-share {
  display: flex; align-items: center; gap: 8px;
  background: white; color: var(--nfc-black);
  padding: 14px 28px; border-radius: var(--nfc-radius-sm);
  font-size: 0.78rem; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 2px solid var(--nfc-black); cursor: pointer;
  transition: all 0.2s;
}
.nfc-btn-share:hover { background: #F8FAFC; }

/* CTA box */
.nfc-cta-box {
  background: var(--nfc-green-light);
  border: 2px solid #C8E6C9;
  border-radius: 16px; padding: 24px;
  text-align: center;
}
.nfc-cta-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 6px; }
.nfc-cta-sub { font-size: 0.82rem; color: var(--nfc-slate); }
.nfc-cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--nfc-green); font-size: 0.88rem; font-weight: 900;
  text-decoration: none; margin-top: 14px;
}
.nfc-cta-link:hover { text-decoration: underline; }

/* ── Footer ── */
.nfc-footer { background: var(--nfc-black); color: white; padding: 52px 24px 28px; }
.nfc-footer-inner { max-width: 1200px; margin: 0 auto; }
.nfc-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .nfc-footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.nfc-footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nfc-footer-brand-icon {
  background: var(--nfc-green); border-radius: 10px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nfc-footer-brand-name { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.nfc-footer-brand-sub { font-size: 0.62rem; color: var(--nfc-green); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px; }
.nfc-footer-desc { color: #9CA3AF; font-size: 0.82rem; line-height: 1.6; max-width: 260px; }
.nfc-footer-heading { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nfc-green); margin-bottom: 16px; }
.nfc-footer-text { color: #9CA3AF; font-size: 0.82rem; line-height: 1.7; }
.nfc-footer-contact { display: flex; flex-direction: column; gap: 14px; }
.nfc-footer-contact-row { display: flex; align-items: center; gap: 10px; color: #9CA3AF; font-size: 0.82rem; font-weight: 700; }
.nfc-footer-contact-row svg { color: var(--nfc-green); flex-shrink: 0; }
.nfc-footer-bottom { border-top: 1px solid #374151; padding-top: 20px; text-align: center; }
.nfc-footer-copy { font-size: 0.65rem; color: #6B7280; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Tooltip ── */
.nfc-tooltip-wrap { position: relative; display: inline-flex; }
.nfc-tooltip-icon { color: var(--nfc-slate); cursor: help; display: flex; align-items: center; }
.nfc-tooltip-icon:hover { color: var(--nfc-green); }
.nfc-tooltip-box {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  width: 280px; background: var(--nfc-black); color: white;
  border-radius: 14px; padding: 14px 16px;
  font-size: 0.72rem; line-height: 1.5;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.nfc-tooltip-box::after {
  content: '';
  position: absolute; top: 100%; right: 14px;
  border: 7px solid transparent;
  border-top-color: var(--nfc-black);
}
.nfc-tooltip-wrap:hover .nfc-tooltip-box { opacity: 1; }
.nfc-tooltip-title {
  font-size: 0.62rem; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nfc-green); margin-bottom: 6px;
}

/* ── Print / PDF ── */
@media print {
  .nfc-header, .nfc-steps, .nfc-results-actions, .nfc-cta-box, .nfc-footer { display: none !important; }
  .nfc-results-card { box-shadow: none; border: 1px solid #E5E7EB; }
}

/* ── V4: Auto-detect building list ─────────────────────────────── */
.nfc-building-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 6px; margin-bottom: 14px;
}
.nfc-building-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--nfc-border);
  border-radius: 10px;
  background: #fff; color: #64748b;
  cursor: pointer; user-select: none;
  transition: border-color .12s, background .12s, color .12s;
}
.nfc-building-row:hover { border-color: #94a3b8; }
.nfc-building-row.active {
  border-color: #3b82f6; background: #eff6ff; color: #0f172a;
}
.nfc-building-check {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #e2e8f0; color: #475569;
  flex-shrink: 0;
}
.nfc-building-row.active .nfc-building-check {
  background: #3b82f6; color: #fff;
}
.nfc-building-label { flex: 1; min-width: 0; }
.nfc-building-name { font-weight: 700; font-size: 0.82rem; }
.nfc-building-sqft { font-size: 0.72rem; opacity: .75; margin-top: 1px; }

/* Loading / error overlays reuse nfc-map-hint base */
.nfc-map-loading {
  background: #1e293b \!important;
}
.nfc-map-err {
  background: #7f1d1d \!important;
  white-space: normal \!important;
  max-width: 80%;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: none;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ── Embed mode (iframe): strip outer padding + dev banners ── */
.nfc-app.nfc-embed { padding-top: 0 !important; }
.nfc-app.nfc-embed .nfc-dev-banner,
.nfc-app.nfc-embed .dev-banner { display: none !important; }
.nfc-input-error { border-color: #ef4444 !important; }
.nfc-input-hint { color: #ef4444; font-size: 0.78rem; margin-top: 4px; }
.nfc-inferred-badge {
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
  padding: 8px 12px; border-radius: 8px; font-size: 0.82rem;
  margin-bottom: 12px;
}

/* ── Print: native browser print-to-PDF for #nfc-report ──
   Strategy: at print time JS clones #nfc-report into #nfc-print-mount on
   <body>. Below we hide EVERYTHING and unhide only the mount + its
   descendants. This works regardless of where in the DOM the widget was
   originally embedded (iframes, deep wrappers, etc). */
#nfc-print-mount { display: none; }
@media print {
  @page { size: letter; margin: 0.4in; }
  html.nfc-printing, body.nfc-printing { background: #fff !important; }
  html.nfc-printing body.nfc-printing > * { display: none !important; }
  html.nfc-printing body.nfc-printing #nfc-print-mount {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  #nfc-print-mount, #nfc-print-mount * {
    color: #111 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
    visibility: visible !important;
  }
  #nfc-print-mount #nfc-report {
    width: 100% !important; max-width: 100% !important;
    margin: 0 !important; padding: 0 !important;
    border: 0 !important;
  }
  /* Single-page compaction: drop the page break, shrink header/specs */
  #nfc-print-mount .nfc-page-break { display: none !important; }
  #nfc-print-mount .nfc-report-header {
    padding: 10px 14px !important; margin-bottom: 8px !important;
  }
  #nfc-print-mount .nfc-report-brand-name { font-size: 14px !important; }
  #nfc-print-mount .nfc-report-brand-sub  { font-size: 10px !important; }
  #nfc-print-mount .nfc-report-brand-icon { width: 28px !important; height: 28px !important; }
  #nfc-print-mount .nfc-report-meta-label,
  #nfc-print-mount .nfc-report-meta-date,
  #nfc-print-mount .nfc-report-meta-name { font-size: 10px !important; line-height: 1.3 !important; }
  #nfc-print-mount .nfc-report-detail {
    padding: 6px 10px !important; margin: 6px 0 !important;
  }
  #nfc-print-mount .nfc-report-detail-label { font-size: 9px !important; }
  #nfc-print-mount .nfc-report-detail-value { font-size: 11px !important; }
  #nfc-print-mount .nfc-report-specs {
    padding: 8px 10px !important; margin-bottom: 10px !important;
  }
  #nfc-print-mount .nfc-report-specs-title { font-size: 11px !important; margin-bottom: 4px !important; }
  #nfc-print-mount .nfc-spec-label { font-size: 9px !important; }
  #nfc-print-mount .nfc-spec-value { font-size: 11px !important; }
}
