/* ── Investeerimisleht (/investeeri-kinnisvarasse/) ───────────────────
   Eraldi fail, sest SPEC 2.7: sellel lehel on CSP script-src 'self' ja
   välisfonte ei laadita — kõik on iseserveeritud. */
.inv-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.inv-hero { background: var(--lv-navy); color: #fff; padding: 4.5rem 0 3.5rem; text-align: center; }
.inv-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: #fff; margin: 0.6rem 0 0.8rem; line-height: 1.15; }
.inv-hero__sub { font-size: 1.15rem; color: var(--lv-gold); margin-bottom: 1rem; }
.inv-hero__lead { color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 560px; margin: 0 auto 2rem; }

.inv-risk { background: #fff7ed; border-bottom: 1px solid #fde4c8; padding: 1.25rem 0; }
.inv-risk p { font-size: 0.92rem; line-height: 1.65; color: #7c2d12; }

.inv-section { padding: 3.5rem 0; }
.inv-section--alt { background: var(--lv-surface); }
.inv-section h2 { font-size: clamp(1.45rem, 3.2vw, 1.9rem); color: var(--lv-navy); margin-bottom: 1rem; }
.inv-section p { line-height: 1.75; margin-bottom: 0.8rem; }
.inv-section a { color: var(--lv-navy); font-weight: 600; }
.inv-muted { color: var(--lv-muted); font-size: 0.95rem; }

.inv-steps { list-style: none; counter-reset: s; display: grid; gap: 1rem; padding: 0; }
.inv-steps li { counter-increment: s; position: relative; padding: 0.2rem 0 0.2rem 3.2rem; line-height: 1.6; }
.inv-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--lv-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.inv-steps strong { display: block; color: var(--lv-navy); }

.inv-frame { display: grid; gap: 0; border-top: 1px solid #e3e8f0; }
.inv-frame > div { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid #e3e8f0; }
.inv-frame dt { font-weight: 700; color: var(--lv-navy); }
.inv-frame dd { margin: 0; line-height: 1.6; }

.inv-faq details { border-bottom: 1px solid #e3e8f0; padding: 0.9rem 0; }
.inv-faq summary { cursor: pointer; font-weight: 600; color: var(--lv-navy); }
.inv-faq details p { margin: 0.6rem 0 0; }

.inv-section--form { background: var(--lv-surface); }
.inv-form { background: #fff; border-radius: 10px; padding: 1.6rem; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.inv-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; margin-bottom: 1rem; }
.inv-grid > .inv-field { min-width: 0; }   /* muidu venib sisend gridi lahtrist välja */
.inv-field input, .inv-field textarea {
  width: 100%; min-width: 0;
  font: inherit; font-weight: 400; font-size: 0.95rem; padding: 0.6rem 0.7rem;
  border: 1px solid #c5cece; border-radius: 6px; background: #fff;
}
.inv-choice { border: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.inv-choice legend { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; width: 100%; }
.inv-choice label {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  border: 1.5px solid #c5cece; border-radius: 20px; padding: 0.35rem 0.85rem; font-size: 0.9rem;
}
.inv-choice label:has(input:checked) { border-color: var(--lv-navy); background: #eef2f8; }
.inv-choice input { accent-color: var(--lv-navy); }
.inv-choice .inv-sum input[type=text] {
  width: 9.5rem; font: inherit; font-size: 0.9rem; padding: 0.1rem 0.35rem;
  border: none; border-bottom: 1px solid #c5cece; background: transparent;
}
.inv-choice .inv-sum input[type=text]:focus { outline: none; border-bottom-color: var(--lv-navy); }
.inv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inv-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.55; color: #444; margin: 0.4rem 0 1.2rem; }
.inv-consent input { margin-top: 0.25rem; accent-color: var(--lv-navy); flex: 0 0 auto; }
.inv-msg { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.92rem; margin-bottom: 1rem; }
.inv-msg--ok { background: #dcfce7; color: #166534; }
.inv-msg--err { background: #fee2e2; color: #991b1b; }

@media (max-width: 640px) {
  .inv-grid { grid-template-columns: 1fr; gap: 0; }
  .inv-frame > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .inv-form { padding: 1.1rem; }
}
