/* VetDisabilityCalc — calculator + condition/state grids + FAQ styles.
 * Layered on top of style.css. Brand tokens (--primary, --ink-*, etc) come
 * from style.css :root. */

/* ---------- Hero badge — color override only ----------
 * Inherit ALL layout from style.css's canonical .hero-badge rule (matches
 * the other 4 portfolio sites — no pill bubble, plain text + dot). Here
 * we only swap the dot color to brand gold instead of teal. */
.hero-badge::before { background: var(--gold) !important; }

/* Gold-tinted trust strip dots (override green default for VA brand) */
.trust-strip .trust-item .dot { background: var(--gold); }

/* ---------- Calculator wrap ---------- */
.calc-wrap {
  padding: 48px 24px 80px;
  background: radial-gradient(ellipse 1100px 520px at 50% 0%,
    rgba(0, 113, 188, 0.10) 0%,
    rgba(0, 113, 188, 0.06) 35%,
    transparent 70%),
    linear-gradient(180deg, rgba(17, 46, 81, 0.04) 0%, rgba(17, 46, 81, 0.06) 100%);
}
.calc {
  background: var(--bg);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .calc {
    padding: 24px 18px;
    border-radius: 16px;
  }
}

.calc-header h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.calc-sub {
  color: var(--ink-4);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---------- Condition rows ---------- */
.vdc-condition-row {
  display: grid;
  grid-template-columns: 32px 1fr 100px 36px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
}
.vdc-condition-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.vdc-condition-label {
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink-2);
  font-family: inherit;
  padding: 6px 0;
  min-width: 0;
}
.vdc-condition-label:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.vdc-condition-label::placeholder {
  color: var(--ink-5);
}
.vdc-rating-select {
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.vdc-rating-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.vdc-condition-remove {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--ink-4);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vdc-condition-remove:hover {
  background: rgba(195, 53, 35, 0.10);
  color: #c33523;
}

@media (max-width: 560px) {
  .vdc-condition-row {
    grid-template-columns: 28px 1fr 90px 32px;
    gap: 8px;
    padding: 10px 8px;
  }
  .vdc-condition-label { font-size: 14px; }
}

/* ---------- Calc actions + quick-add chips ----------
 * .btn / .btn-primary / .btn-secondary canonical rules live in style.css.
 * Don't redefine them here — overrides drift across sites. */
.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 18px 0 24px;
}
.calc-quick-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.calc-quick-label {
  font-size: 13px;
  color: var(--ink-4);
  margin-right: 4px;
}
.vdc-quick-add {
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.vdc-quick-add:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

/* ---------- Dependents fieldset ---------- */
.calc-deps {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin-bottom: 24px;
}
.calc-deps legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 0 6px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.deps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.deps-check, .deps-num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.deps-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.deps-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}
.deps-num input {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
}
.deps-num input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* ---------- Result ---------- */
.calc-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.result-card {
  background: var(--primary-soft);
  border: 1px solid rgba(17, 46, 81, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
}
.result-card-money {
  background: linear-gradient(135deg, #f0f6fd 0%, #e6f0fa 100%);
  border-color: rgba(0, 113, 188, 0.22);
}
.result-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.result-value {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.result-raw {
  font-size: 12px;
  color: var(--ink-5);
  margin-top: 6px;
}
@media (max-width: 560px) {
  .calc-result { grid-template-columns: 1fr; }
}

/* ---------- Steps explainer ---------- */
.calc-steps-wrap {
  margin: 8px 0 16px;
  font-size: 14px;
}
.calc-steps-wrap summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 8px 0;
  list-style: none;
}
.calc-steps-wrap summary::-webkit-details-marker { display: none; }
.calc-steps-wrap summary::before {
  content: '▸ ';
  display: inline-block;
  margin-right: 4px;
  transition: transform 0.15s var(--ease);
}
.calc-steps-wrap[open] summary::before {
  transform: rotate(90deg);
}
.vdc-steps {
  padding-left: 22px;
  margin-top: 8px;
  color: var(--ink-3);
}
.vdc-steps li {
  margin-bottom: 6px;
  line-height: 1.5;
}
.vdc-empty {
  color: var(--ink-5);
  font-style: italic;
}

.calc-disclaimer {
  font-size: 13px;
  color: var(--ink-5);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}
.calc-disclaimer a {
  color: var(--primary-dark);
}

/* ---------- Explainer cards (How VA Math Works section) ---------- */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.explainer-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}
.explainer-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.explainer-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.explainer-card p {
  color: var(--ink-3);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Condition grid ---------- */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.condition-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.condition-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.condition-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
.condition-card p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}
.condition-meta {
  font-size: 12px;
  color: var(--ink-5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ---------- State preview grid ---------- */
.state-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.state-tile {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.state-tile:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--primary);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item a {
  color: var(--primary-dark);
}

/* ---------- Text button (inline CTA) ---------- */
.btn-text {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s var(--ease);
}
.btn-text:hover {
  border-bottom-color: var(--primary);
}
