.mutuo-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(4, 32, 84, .94), rgba(15, 92, 160, .88)),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, .22), transparent 28%);
  color: #fff;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 18px 40px rgba(7, 30, 70, .18);
}

.mutuo-hero h1 {
  max-width: 920px;
  margin: 0 0 .65rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mutuo-hero .lead {
  max-width: 860px;
  color: rgba(255, 255, 255, .9);
}

.form-card {
  background: #fff !important;
  color: #1f2a44;
  border: 1px solid rgba(13, 110, 253, .12);
}

.form-card h2,
.form-card .form-check-label,
.form-card p,
.form-card .text-muted {
  color: #1f2a44 !important;
}

.form-card .form-label {
  font-weight: 700;
  color: #1f2a44;
}

.form-card .form-control,
.form-card .form-select {
  background-color: #fff;
  color: #17233c;
  border-color: #c9d7ea;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  color: #17233c;
  background-color: #fff;
  border-color: #4b8df7;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.form-card .input-group-text {
  min-width: 48px;
  justify-content: center;
  font-weight: 800;
  color: #123b70;
  background: #eef5ff;
}

.euribor-slider-box {
  border: 1px solid #d9e6f7;
  border-radius: 14px;
  background: #f7fbff;
  padding: 1rem;
}

.euribor-slider-box strong {
  min-width: 96px;
  color: #0d6efd;
  text-align: right;
}

.euribor-slider-box .form-range {
  cursor: pointer;
}

.fixed-installments-box {
  border: 1px solid #d9e6f7;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.fixed-installments-box .form-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: auto;
  padding-left: 0;
}

.fixed-installments-box .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: .2rem 0 0;
}

.fixed-installments-box .form-check-label {
  line-height: 1.35;
  text-align: left;
}

.fixed-installments-grid {
  display: grid;
  grid-template-columns: minmax(110px, .75fr) minmax(170px, 1.25fr);
  gap: .9rem 1rem;
  align-items: end;
}

.fixed-installments-grid .form-label {
  min-height: 1.35rem;
  margin-bottom: .35rem;
}

.fixed-installments-rate {
  grid-column: 1 / -1;
}

.fixed-installments-rate .input-group {
  max-width: 220px;
}

.fixed-installments-residuals {
  grid-column: 1 / -1;
}

.fixed-installments-box .badge {
  vertical-align: middle;
}

.result-card {
  height: 100%;
  min-height: 94px;
  border: 1px solid #d9e6f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  padding: .85rem;
}

.result-card .label {
  font-size: .82rem;
  font-weight: 800;
  color: #52627a;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.result-card .value {
  margin-top: .45rem;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.15;
  font-weight: 850;
  color: #093d7d;
  overflow-wrap: anywhere;
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.scenario-card {
  border: 1px solid #dbe7f6;
  border-left: 5px solid #0d6efd;
  border-radius: 14px;
  padding: .9rem;
  background: #fff;
}

.scenario-card.is-up {
  border-left-color: #dc3545;
}

.scenario-card.is-down {
  border-left-color: #198754;
}

.scenario-card .scenario-title {
  font-size: .78rem;
  font-weight: 850;
  color: #52627a;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.scenario-card .scenario-rate {
  margin: .3rem 0;
  font-weight: 850;
  color: #17233c;
}

.scenario-card .scenario-note {
  margin: 0;
  font-size: .9rem;
  color: #52627a;
}

.future-table-wrap {
  max-height: 560px;
  border: 1px solid #e4ebf4;
  border-radius: 14px;
}

.future-table-wrap table {
  margin-bottom: 0;
}

.future-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f8fd;
  color: #26364f;
  font-size: .86rem;
  white-space: nowrap;
}

.future-table-wrap td {
  white-space: nowrap;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.help-grid > div {
  border: 1px solid #d9e6f7;
  border-radius: 14px;
  background: #f8fbff;
  padding: 1rem;
}

.help-grid h3 {
  margin: 0 0 .45rem;
  font-size: 1rem;
  font-weight: 850;
  color: #093d7d;
}

.help-grid p {
  margin: 0;
  color: #33445f;
}

@media (max-width: 767.98px) {
  .scenario-strip {
    grid-template-columns: 1fr;
  }

  .mutuo-hero {
    border-radius: 14px;
  }

  .fixed-installments-grid {
    grid-template-columns: 1fr;
  }

  .fixed-installments-rate .input-group {
    max-width: none;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
}
