/* aml-style.css — Assumable Listing Analyzer */
.aml2 {
  --navy: #0B2545;
  --navy-light: #1B3A5C;
  --gold: #FFB800;
  --gold-soft: #FFF3D6;
  --bg: #FAFBFC;
  --border: #D1D5DB;
  --text: #1F2937;
  --text-dim: #6B7280;
  --radius: 8px;
  --gap: 12px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  max-width: 649px;
  box-sizing: border-box;
}
.aml2 *, .aml2 *::before, .aml2 *::after { box-sizing: border-box; }
.aml2 h2 { font-size: 18px; font-weight: 700; margin: 0 0 2px; color: #fff; line-height: 1.3; }
.aml2 h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: var(--gold); line-height: 1.3; }
.aml2 p { font-size: 13px; margin: 0 0 12px; line-height: 1.5; color: rgba(255,255,255,0.8); }
.aml2 label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.9); margin: 0 0 3px; line-height: 1.4; }
.aml2 input, .aml2 select {
  width: 100%; height: 34px; padding: 0 8px;
  font-size: 14px; font-family: inherit;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 4px;
  background: rgba(255,255,255,0.1); color: #fff;
}
.aml2 input:focus, .aml2 select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.aml2 select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px; }
.aml2 select option { color: #1F2937; background: #fff; }
.aml2 button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 20px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  border: none; border-radius: 4px; cursor: pointer;
  background: var(--gold); color: var(--navy);
}
.aml2 button:hover { opacity: 0.92; }

.aml2-head { margin-bottom: 14px; }
.aml2-subtitle { font-size: 12px; color: rgba(255,255,255,0.65); margin: 2px 0 0; }
.aml2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.aml2-field { display: flex; flex-direction: column; }
.aml2-row { display: flex; gap: var(--gap); align-items: end; margin-bottom: var(--gap); }
.aml2-row > * { flex: 1; }
.aml2-toggle { display: flex; align-items: center; gap: 8px; margin-bottom: var(--gap); }
.aml2-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }
.aml2-toggle label { margin: 0; font-size: 13px; }

/* Optional second-lien section */
.aml2-opt { margin-bottom: var(--gap); }
.aml2-opt summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--gold);
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.aml2-opt summary::before { content: '+'; font-size: 16px; font-weight: 700; }
.aml2-opt[open] summary::before { content: '\2212'; }
.aml2-opt .aml2-grid { margin-top: 8px; }

/* Results panel */
.aml2-results {
  background: rgba(255,255,255,0.06); border-radius: var(--radius);
  padding: 14px; margin-top: 4px;
  display: none;
}
.aml2-results.show { display: block; }
.aml2-results h3 { margin-bottom: 10px; }
.aml2-stat { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 13px; }
.aml2-stat:last-child { border-bottom: none; }
.aml2-stat-label { color: rgba(255,255,255,0.8); }
.aml2-stat-value { font-weight: 700; color: #fff; }
.aml2-stat-value.positive { color: #34D399; }
.aml2-stat-value.negative { color: #F87171; }
.aml2-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 8px 0; }
.aml2-note { font-size: 11px; color: rgba(255,255,255,0.5); margin: 8px 0 0; }

/* Lead form */
.aml2-lead { display: none; margin-top: 12px; }
.aml2-lead.show { display: block; }
.aml2-lead-toggle {
  background: none; border: 1px solid var(--gold); color: var(--gold);
  font-size: 13px; height: 32px; padding: 0 14px; margin-top: 8px;
  border-radius: 4px; cursor: pointer; font-weight: 600;
}
.aml2-lead-toggle:hover { background: rgba(255,184,0,0.1); }
.aml2-lead h3 { margin-top: 0; }

/* Responsive */
@media (max-width: 480px) {
  .aml2 { padding: 16px 14px 12px; }
  .aml2-grid { grid-template-columns: 1fr; }
  .aml2-row { flex-direction: column; }
}
