/* Mobile-first, conversational. Visual language follows the production widget
   (reference/static/embed/qualifier.js CSS block: green #10b981 accents,
   rounded cards, soft grays). */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f6f8f7;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 14px 48px; }

.header { padding: 8px 2px 14px; }
.brand { font-size: 1.05rem; font-weight: 800; color: #065f46; }
.header-sub { font-size: .82rem; color: #6b7280; margin-top: 2px; }

.progress-track { height: 5px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 5px; width: 0%; background: #10b981; transition: width .3s ease; }
.progress-label { font-size: .72rem; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .08em; margin: 6px 2px 10px; }

.card { background: #fff; border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 22px 20px; min-height: 220px; }

.screen-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.screen-sub { font-size: .88rem; color: #6b7280; margin: 0 0 18px; }

.q { margin-bottom: 18px; }
.q[hidden] { display: none; }
.q-label { display: block; font-size: .95rem; font-weight: 600; color: #374151;
  margin-bottom: 8px; line-height: 1.45; }
.q-hint { font-size: .78rem; color: #9ca3af; margin-top: 5px; }
.q-error { font-size: .82rem; color: #ef4444; margin-top: 5px; display: none; }
.q-error.show { display: block; }

.choices { display: flex; flex-direction: column; gap: 9px; }
.choice { border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 12px 15px;
  cursor: pointer; font-size: .93rem; color: #374151; font-weight: 500;
  background: #fff; text-align: left; width: 100%;
  transition: border-color .15s, background .15s; }
.choice:hover { border-color: #10b981; background: #f0fdf4; }
.choice.selected { border-color: #10b981; background: #f0fdf4; color: #065f46; }

.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.tinput { width: 100%; padding: 12px 14px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: 1rem; color: #111827; outline: none;
  transition: border-color .15s; background: #fff; }
.tinput:focus { border-color: #10b981; }
.input-wrap { position: relative; }
.prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #9ca3af; font-size: 1rem; }
.has-prefix { padding-left: 26px; }

select.tinput { appearance: none; cursor: pointer; }

.footer { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 2px 0; }
.footer-right { display: flex; gap: 10px; align-items: center; }
.btn-next { background: #10b981; color: #fff; border: none; border-radius: 8px;
  padding: 12px 26px; font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: background .15s; }
.btn-next:hover { background: #059669; }
.btn-next:disabled { background: #a7f3d0; cursor: not-allowed; }
.btn-back, .btn-save { background: none; border: none; color: #9ca3af;
  font-size: .9rem; cursor: pointer; padding: 6px 4px; }
.btn-back:hover, .btn-save:hover { color: #374151; }
.btn-save { text-decoration: underline; }

.fineprint { font-size: .74rem; color: #9ca3af; line-height: 1.5; margin-top: 18px;
  padding: 0 4px; }

/* results */
.result-banner { font-size: .78rem; font-weight: 700; color: #92400e;
  background: #fef3c7; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }
.result-banner.live { color: #065f46; background: #f0fdf4; }
.result-num { font-size: 2.6rem; font-weight: 800; color: #10b981; line-height: 1;
  text-align: center; }
.result-caption { font-size: .85rem; color: #6b7280; text-align: center; margin-top: 3px; }
.result-maxltv { font-size: .9rem; color: #374151; text-align: center; margin-top: 6px; }
.bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px,1fr));
  gap: 10px; margin: 16px 0; }
.band { background: #f0fdf4; border-radius: 10px; padding: 12px; text-align: center; }
.band-ltv { font-size: 1.35rem; font-weight: 800; color: #10b981; }
.band-count { font-size: .8rem; color: #6b7280; }
.tip { font-size: .85rem; color: #374151; padding: 8px 12px; background: #fffbeb;
  border-left: 3px solid #f59e0b; border-radius: 4px; margin-bottom: 8px; }
.disclaimer { font-size: .75rem; color: #9ca3af; margin-top: 14px; line-height: 1.5; }

/* owners table */
.owner-row { border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 12px;
  margin-bottom: 10px; }
.owner-row .tinput { margin-bottom: 8px; }
.owner-remove { background: none; border: none; color: #ef4444; font-size: .8rem;
  cursor: pointer; padding: 2px 0; }
.btn-add-owner { background: #f0fdf4; color: #065f46; border: 1.5px dashed #10b981;
  border-radius: 8px; padding: 10px 16px; font-size: .88rem; font-weight: 600;
  cursor: pointer; width: 100%; }

/* checkboxes */
.checkrow { display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  border: 1.5px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px;
  cursor: pointer; }
.checkrow input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px;
  accent-color: #10b981; }
.checkrow .checktext { font-size: .85rem; color: #374151; line-height: 1.5; }

.locknote { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem;
  color: #065f46; background: #f0fdf4; border-radius: 8px; padding: 10px 12px;
  margin: 12px 0; line-height: 1.5; }

/* review list */
.review { border-top: 1px solid #e5e7eb; margin-top: 16px; padding-top: 12px; }
.review h4 { font-size: .85rem; color: #6b7280; margin: 0 0 8px; }
.review-item { display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; font-size: .82rem; padding: 4px 0; }
.review-q { color: #6b7280; }
.review-a { color: #111827; font-weight: 600; text-align: right; }
.review-edit { color: #10b981; background: none; border: none; cursor: pointer;
  font-size: .78rem; text-decoration: underline; flex-shrink: 0; }

/* modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  z-index: 50; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: 14px; padding: 22px; max-width: 440px;
  width: 100%; }
.modal h3 { margin: 0 0 8px; }
.modal p { font-size: .85rem; color: #6b7280; }
.resume-link-box { width: 100%; padding: 10px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: .78rem; color: #374151; margin: 8px 0 14px; }
.modal-actions { display: flex; justify-content: space-between; }

@media (min-width: 480px) {
  .wrap { padding-top: 32px; }
  .card { padding: 28px 26px; }
}

/* Address autocomplete (2026-07-20) */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: #fff; border: 1px solid #d1d5db; border-top: none;
  border-radius: 0 0 10px 10px; box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  max-height: 240px; overflow-y: auto;
}
.ac-item {
  padding: 0.6rem 0.9rem; cursor: pointer; font-size: 0.9rem;
  border-bottom: 1px solid #f3f4f6;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: #ecfdf5; }
