/* ── Meza Refi Calculator ─────────────────────────────── */
.rc-calc {
  font-family: inherit;
  color: var(--dark, #14301e);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.rc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .rc-layout { grid-template-columns: 1fr; }
}

.rc-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green, #2d6a3f);
  margin: 1.5rem 0 .25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.rc-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.rc-inputs { display: flex; flex-direction: column; gap: 1rem; }

.rc-field { display: flex; flex-direction: column; gap: .35rem; }
.rc-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark, #14301e);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rc-field--readout {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .1rem;
  border-bottom: 1px dashed #d1d5db;
}
.rc-readout-label {
  font-size: .82rem;
  font-weight: 600;
  color: #4b5563;
}

.rc-hint {
  margin: 0;
  font-size: .76rem;
  color: #9ca3af;
  line-height: 1.5;
}

.rc-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s;
}
.rc-input-wrap:focus-within {
  border-color: var(--green, #2d6a3f);
  box-shadow: 0 0 0 3px rgba(45,106,63,.12);
}
.rc-input-wrap span {
  padding: 0 .75rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: .9rem;
  font-weight: 600;
  border-right: 1.5px solid #d1d5db;
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.rc-input-wrap.rc-suffix span {
  border-right: none;
  border-left: 1.5px solid #d1d5db;
}
.rc-input-wrap input {
  border: none;
  outline: none;
  padding: .6rem .75rem;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  color: var(--dark, #14301e);
  font-family: inherit;
}

/* sliders */
input[type="range"].rc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: .15rem 0 0;
  cursor: pointer;
}
input[type="range"].rc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green, #2d6a3f);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: pointer;
}
input[type="range"].rc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green, #2d6a3f);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: pointer;
}

/* print button */
.rc-btn-print {
  margin-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border: 2px solid var(--green, #2d6a3f);
  border-radius: 8px;
  background: transparent;
  color: var(--green, #2d6a3f);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.rc-btn-print:hover { background: var(--green, #2d6a3f); color: #fff; }

/* result card */
.rc-result { position: sticky; top: 6rem; }
.rc-result__card {
  background: var(--green, #2d6a3f);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 32px rgba(45,106,63,.22);
  text-align: center;
}
.rc-result__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
  margin: 0 0 1rem;
}

.rc-donut-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}
.rc-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
}

.rc-breakdown { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; margin-top: .5rem; text-align: left; }
.rc-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rc-breakdown__row:last-child { border-bottom: none; }
.rc-breakdown__row span { opacity: .85; }
.rc-breakdown__row strong { font-weight: 700; }

.rc-savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.3);
  font-size: .95rem;
  text-align: left;
}
.rc-savings { font-size: 1.1rem; font-weight: 800; }
.rc-savings.is-positive { color: #eafff1; }
.rc-savings.is-negative { color: #ffd8d8; }

.rc-disclaimer {
  margin: 1.25rem 0 0;
  font-size: .72rem;
  opacity: .65;
  line-height: 1.5;
  text-align: left;
}

.rc-result-cta {
  margin-top: 1.25rem;
  background: var(--cream, #f5f0e8);
  border: 1.5px solid var(--green, #2d6a3f);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  text-align: center;
}
.rc-result-cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #14301e);
  margin: 0 0 .5rem;
}
.rc-result-cta p {
  font-size: .88rem;
  color: #4b5563;
  margin: 0 0 1.1rem;
  line-height: 1.55;
}
.rc-cta-btn {
  display: inline-block;
  padding: .65rem 1.75rem;
  background: var(--red, #7b1a1a);
  color: #fff;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.rc-cta-btn:hover { opacity: .88; color: #fff; }
