/* overlay-finder.css — VA Lender Overlay Finder v1 */
/* Visual tokens: navy #0A2540, gold #FFB800, blue #2B7FFF, Inter + Source Serif 4 */

.ovf2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #1a1a1a;
  max-width: 960px;
  margin: 2rem auto;
  box-sizing: border-box;
}
.ovf2 *, .ovf2 *::before, .ovf2 *::after { box-sizing: inherit; }
/* Divi resets — targeted, no bare div */
.ovf2 p, .ovf2 ul, .ovf2 li, .ovf2 label { margin: 0; padding: 0; }
.ovf2 ul { list-style: none; }
.ovf2 h3, .ovf2 h4 { margin-top: 0; margin-bottom: 0; padding-bottom: 0; }
.ovf2 input, .ovf2 select { height: auto; margin: 0; }
.ovf2 button { padding: 0; margin: 0; min-height: 0; line-height: 1.4; }

/* Layout: two columns on desktop */
.ovf2-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Inputs panel */
.ovf2 .ovf2-inputs {
  background: #f8f9fb;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 1rem;
}
.ovf2-inputs h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0A2540;
  margin: 0 0 0.5rem;
}

/* Field groups */
.ovf2 .ovf2-group {
  margin-bottom: 0.625rem;
}
.ovf2 .ovf2-label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ovf2-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.ovf2 .ovf2-seg label {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  padding: 0.375rem 0.625rem;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.3;
}
.ovf2-seg input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ovf2-seg input[type="radio"]:checked + span,
.ovf2-seg label.ovf2-active {
  background: #0A2540;
  color: #fff;
  border-color: #0A2540;
}
.ovf2-seg input[type="radio"]:focus-visible + span {
  outline: 2px solid #2B7FFF;
  outline-offset: 2px;
}

/* More options toggle */
.ovf2 .ovf2-more-toggle {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #2B7FFF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}
.ovf2-more-toggle:hover { text-decoration: underline; }
.ovf2-more { display: none; }
.ovf2-more.ovf2-open { display: block; }

/* Results panel */
.ovf2 .ovf2-results {
  background: #0A2540;
  color: #fff;
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: 1rem;
}
.ovf2 .ovf2-results h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.375rem;
  padding: 0;
  color: #FFB800;
  margin: 0 0 0.375rem;
}

.ovf2 .ovf2-headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.ovf2 .ovf2-stacking {
  font-size: 13px;
  line-height: 1.4;
  color: #FFB800;
  margin: 0 0 1rem;
  font-weight: 600;
}

/* Collapsed sections */
.ovf2 .ovf2-section {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0.5rem;
}
.ovf2 .ovf2-section-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  padding: 0.5rem 0;
  cursor: pointer;
  text-align: left;
}
.ovf2-section-toggle:hover { color: #FFB800; }
.ovf2 .ovf2-section-preview {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-left: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
}
.ovf2-section-arrow {
  font-size: 0.625rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ovf2-section.ovf2-open .ovf2-section-arrow {
  transform: rotate(180deg);
}
.ovf2-section-body {
  display: none;
  padding: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.ovf2-section.ovf2-open .ovf2-section-body {
  display: block;
}
.ovf2-section-body ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}
.ovf2-section-body li {
  margin-bottom: 0.375rem;
}

/* CTA */
.ovf2 .ovf2-cta {
  display: block;
  text-align: center;
  background: #FFB800;
  color: #0A2540;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}
.ovf2-cta:hover { background: #e6a600; }

/* Disclaimer */
.ovf2-disclaimer {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  line-height: 1.4;
}

/* Lead form */
.ovf2 .ovf2-lead {
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.75rem;
}
.ovf2 .ovf2-lead h4 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #FFB800;
  margin: 0 0 0.75rem;
}
.ovf2 .ovf2-lead-field {
  margin-bottom: 0.375rem;
}
.ovf2 .ovf2-lead-field input {
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.ovf2-lead-field input::placeholder { color: rgba(255,255,255,0.4); }
.ovf2 .ovf2-lead-submit {
  display: block;
  width: 100%;
  background: #2B7FFF;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  border: none;
  border-radius: 6px;
  padding: 0.625rem;
  cursor: pointer;
  margin-top: 0.5rem;
}
.ovf2-lead-submit:hover { background: #1a6ee0; }
.ovf2-lead-msg {
  font-size: 0.75rem;
  color: #FFB800;
  margin-top: 0.375rem;
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .ovf2-layout {
    grid-template-columns: 1fr;
  }
  .ovf2-results {
    position: static;
  }
}
