/* nva2.css — VA Assumption Entitlement Impact tool
 * Scoped to .nva2 wrapper. No bare element selectors.
 */

.nva2 {
  --navy: #1F4E79;
  --navy-light: #2E6DA4;
  --gold: #FFB800;
  --gold-dark: #E5A500;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --text: #1E293B;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1);

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 649px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
}

.nva2 * {
  box-sizing: border-box;
}

/* Scoped resets for Divi */
.nva2 h2,
.nva2 h3 {
  font-family: inherit;
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.3;
  letter-spacing: 0;
}

.nva2 label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  display: block;
  margin: 0 0 4px;
  padding: 0;
  line-height: 1.4;
}

.nva2 input,
.nva2 select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 8px 10px;
  width: 100%;
  margin: 0;
  background: var(--white);
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}

.nva2 select {
  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='%23475569' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.nva2 button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  margin: 0;
  line-height: 1.4;
}

.nva2 p {
  font-family: inherit;
  font-size: 14px;
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.5;
  color: var(--gray-700);
}

/* Header */
.nva2-head {
  background: linear-gradient(180deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 20px 24px 16px;
}

.nva2-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.nva2-subtitle {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.4;
}

/* Body */
.nva2-body {
  padding: 20px 24px 24px;
  background: var(--white);
}

/* Form fields */
.nva2-field {
  margin-bottom: 14px;
}

.nva2-row {
  display: flex;
  gap: 12px;
}

.nva2-row .nva2-field {
  flex: 1;
}

/* Path selector (radio group styled as cards) */
.nva2-paths {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.nva2-path {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--gray-700);
}

.nva2-path:hover {
  border-color: var(--navy-light);
}

.nva2-path.active {
  border-color: var(--navy);
  background: var(--gray-50);
  color: var(--navy);
  font-weight: 600;
}

.nva2-path input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Calculate button */
.nva2-calc {
  background: var(--gold);
  color: var(--gray-800);
  width: 100%;
  margin-top: 4px;
}

.nva2-calc:hover {
  background: var(--gold-dark);
}

/* Results */
.nva2-results {
  margin-top: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.nva2-results-head {
  background: var(--gray-50);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-200);
  color: var(--navy);
}

.nva2-result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}

.nva2-result-row:last-child {
  border-bottom: none;
}

.nva2-result-label {
  color: var(--gray-600);
}

.nva2-result-value {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.nva2-result-value.nva2-green {
  color: #16A34A;
}

.nva2-result-value.nva2-amber {
  color: #D97706;
}

.nva2-result-value.nva2-red {
  color: #DC2626;
}

/* Lead form toggle */
.nva2-lead-toggle {
  background: none;
  border: 1px solid var(--navy) !important;
  color: var(--navy);
  width: 100%;
  margin-top: 12px;
  font-size: 13px;
  padding: 8px 16px;
}

.nva2-lead-toggle:hover {
  background: var(--gray-50);
}

/* Lead form (hidden by default) */
.nva2-lead {
  display: none;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.nva2-lead.open {
  display: block;
}

.nva2-lead-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}

.nva2-lead-submit {
  background: var(--navy);
  color: var(--white);
  width: 100%;
  margin-top: 8px;
}

.nva2-lead-submit:hover {
  background: var(--navy-light);
}

.nva2-lead-success {
  color: #16A34A;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  display: none;
}

.nva2-error {
  color: #DC2626;
  font-size: 12px;
  margin-top: 4px;
}

/* Input prefix for dollar amounts */
.nva2-dollar {
  position: relative;
}

.nva2-dollar::before {
  content: '$';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.nva2-dollar input {
  padding-left: 22px;
}

/* Responsive */
@media (max-width: 480px) {
  .nva2-head {
    padding: 16px 16px 12px;
  }
  .nva2-body {
    padding: 16px;
  }
  .nva2-paths {
    flex-direction: column;
  }
  .nva2-row {
    flex-direction: column;
    gap: 0;
  }
}
