
.calc-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(15,23,42,.68);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}
.calc-overlay.open { display: flex; animation: calcFade .25s ease-out; }
@keyframes calcFade { from { opacity: 0; } to { opacity: 1; } }

.calc-modal {
  background: #fff;
  max-width: 440px; width: 100%; max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.18);
  overflow-y: auto;
  position: relative;
  animation: calcSlide .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes calcSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.calc-head {
  padding: 22px 26px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.calc-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 600; margin: 0;
  letter-spacing: -.01em; color: #18181b;
  display: flex; align-items: center; gap: 10px;
}
.calc-head .calc-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #c2410c, #e2553a);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: 0 4px 12px rgba(194,65,12,.3);
}
.calc-close {
  background: rgba(0,0,0,.06); border: 0;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
  color: #52525b;
  transition: background .15s;
}
.calc-close:hover { background: rgba(0,0,0,.12); }

.calc-body { padding: 18px 26px 6px; }

.calc-field { margin-bottom: 18px; }
.calc-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; color: #71717a;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.calc-label .calc-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 600;
  color: #c2410c;
  letter-spacing: 0; text-transform: none;
}

.calc-slider-row { display: flex; align-items: center; gap: 10px; }
.calc-slider {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: #e4e4e7; border-radius: 100px; outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #c2410c, #9a3412);
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 6px rgba(194,65,12,.4), 0 0 0 4px #fff;
  transition: transform .12s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #c2410c, #9a3412);
  border-radius: 50%; cursor: pointer; border: 0;
  box-shadow: 0 2px 6px rgba(194,65,12,.4), 0 0 0 4px #fff;
}

.calc-num-input {
  width: 100px; padding: 8px 10px;
  border: 1px solid #e4e4e7; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #18181b;
  text-align: right; font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.calc-num-input:focus { border-color: #c2410c; }

.calc-input-full {
  width: 100%; padding: 10px 12px;
  border: 1px solid #e4e4e7; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #18181b;
  font-family: inherit; outline: none;
  transition: border-color .15s;
}
.calc-input-full:focus { border-color: #c2410c; }

.calc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.calc-pill {
  padding: 9px 16px;
  background: #fafafa; border: 1px solid #e4e4e7;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: #18181b; cursor: pointer;
  font-family: inherit;
  transition: all .12s;
  flex: 1; text-align: center; min-width: 0;
}
.calc-pill:hover { border-color: #c2410c; color: #c2410c; }
.calc-pill.on {
  background: linear-gradient(135deg, #c2410c, #9a3412);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 10px rgba(194,65,12,.3);
}

.calc-credit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.calc-credit {
  padding: 10px 12px;
  background: #fafafa; border: 1px solid #e4e4e7;
  border-radius: 10px;
  cursor: pointer; font-family: inherit;
  text-align: left;
  transition: all .12s;
}
.calc-credit:hover { border-color: #c2410c; }
.calc-credit.on {
  background: linear-gradient(135deg, rgba(194,65,12,.08), rgba(194,65,12,.02));
  border-color: #c2410c;
  box-shadow: inset 0 0 0 1px #c2410c;
}
.calc-credit-name { font-size: 13px; font-weight: 700; color: #18181b; margin-bottom: 2px; }
.calc-credit-score { font-size: 10px; color: #71717a; letter-spacing: .04em; }

/* Result card */
.calc-result {
  margin: 6px 26px 14px;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(194,65,12,.06), rgba(194,65,12,.02));
  border: 1px solid rgba(194,65,12,.15);
  border-radius: 16px;
  text-align: center;
}
.calc-result-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #c2410c; margin-bottom: 6px;
}
.calc-result-payment {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 7vw, 46px); font-weight: 600;
  color: #18181b; line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.calc-result-payment small { font-size: .42em; color: #71717a; font-weight: 500; }
.calc-result-sub {
  font-size: 12px; color: #71717a;
}

.calc-breakdown {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 0 26px 18px;
}
.calc-stat {
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 10px;
  text-align: center;
}
.calc-stat-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #71717a; margin-bottom: 4px;
}
.calc-stat-val {
  font-size: 16px; font-weight: 700;
  color: #18181b;
  font-family: 'Playfair Display', Georgia, serif;
}

.calc-disclaimer {
  font-size: 11px; color: #a1a1aa;
  text-align: center;
  margin: 0 26px 20px;
  line-height: 1.5;
}

/* Nav trigger button — small calculator pill in the nav */
.auttiv-nav .nav-calc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: #52525b; cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  margin-right: 4px;
}
.auttiv-nav .nav-calc:hover {
  background: #fafafa; color: #18181b; border-color: rgba(0,0,0,.18);
}
@media (max-width: 720px) {
  .auttiv-nav .nav-calc { padding: 7px 10px; font-size: 11px; }
  .auttiv-nav .nav-calc .nav-calc-text { display: none; }
}
