.finance-calculator-page {
  width: 100%;
}

.finance-calculator-page__content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.finance-calculator-hero {
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.02);
}

.finance-calculator-hero .eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.finance-calculator-hero h1 {
  margin: 0.65rem 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.finance-calculator-hero p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: 1rem;
  max-width: 62ch;
}

.finance-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.finance-calculator-panel,
.finance-calculator-result-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.finance-calculator-panel {
  padding: 1.25rem 1.25rem 1.4rem;
}

.finance-calculator-panel h2,
.finance-calculator-result-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.finance-calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.finance-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.finance-field label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.finance-field__hint {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.45;
}

.finance-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.55rem 0.75rem;
}

.finance-input-wrap:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.finance-input-wrap--error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.finance-input-prefix,
.finance-input-suffix {
  color: #64748b;
  font-weight: 800;
  flex: 0 0 auto;
}

.finance-input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #0f172a;
}

.finance-down-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.55fr);
  gap: 0.75rem;
}

.finance-term-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.finance-term-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.finance-term-btn.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.finance-calculator-result-card {
  padding: 1.35rem 1.25rem 1.2rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, #fff 42%);
}

.finance-result-kicker {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 800;
}

.finance-result-primary {
  margin: 0.35rem 0 0.15rem;
  font-size: clamp(2rem, 6vw, 2.65rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.finance-result-sub {
  margin: 0 0 1rem;
  color: #475569;
  font-weight: 700;
  font-size: 0.92rem;
}

.finance-result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-result-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.65rem;
  font-size: 0.95rem;
}

.finance-result-breakdown li:first-child {
  border-top: none;
  padding-top: 0;
}

.finance-result-breakdown span {
  color: #64748b;
  font-weight: 700;
}

.finance-result-breakdown strong {
  color: #0f172a;
  font-weight: 900;
  text-align: right;
}

.finance-calculator-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #991b1b;
  font-weight: 800;
  font-size: 0.92rem;
}

.finance-calculator-error[hidden] {
  display: none;
}

.finance-calculator-cta-slot {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.finance-calculator-cta {
  width: 100%;
  appearance: none;
  border: 1px solid #2563eb;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: #2563eb;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.finance-calculator-cta:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.finance-calculator-cta:disabled {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  cursor: not-allowed;
}

.finance-calculator-disclaimer {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 900px) {
  .finance-calculator-layout {
    grid-template-columns: 1fr;
  }

  .finance-calculator-result-card {
    order: 2;
  }

  .finance-down-payment-row {
    grid-template-columns: 1fr;
  }
}
