.casa-mortgage-finder {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
}

.cmf-hero {
  padding: 28px 0 16px;
}

.cmf-title h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cmf-title p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.cmf-topbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.cmf-input label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin: 0 0 6px;
}

.cmf-input input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
  background: #fff;
  font-size: 14px;
}

.cmf-input input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.cmf-btn {
  align-self: end;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.casa-mortgage-finder.is-loading .cmf-btn {
  opacity: .7;
  cursor: default;
}

.cmf-filters {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.cmf-filter-block + .cmf-filter-block {
  margin-top: 14px;
}

.cmf-filter-label {
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
  font-weight: 700;
}

.cmf-chips {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cmf-chips--wrap {
  flex-wrap: wrap;
  overflow-x: visible;
}

.cmf-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #93c5fd;
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
}

.cmf-chip.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.cmf-results {
  margin-top: 18px;
}

.cmf-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.cmf-results-title {
  font-size: 16px;
  font-weight: 800;
}

.cmf-results-meta {
  font-size: 13px;
  color: #64748b;
}

.cmf-results-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cmf-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
}

.cmf-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.cmf-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.cmf-bank {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cmf-bank-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.cmf-bank-logo--placeholder {
  display: inline-block;
  background: #f1f5f9;
}

.cmf-bank-name {
  font-weight: 900;
  font-size: 14px;
}

.cmf-program-name {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.cmf-monthly {
  text-align: right;
}

.cmf-monthly-value {
  font-size: 16px;
  font-weight: 900;
}

.cmf-monthly-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.cmf-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cmf-kv {
  border: 1px solid #eef2ff;
  border-radius: 14px;
  padding: 10px;
  background: #fbfdff;
}

.cmf-k {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.cmf-v {
  font-weight: 800;
  font-size: 13px;
}

.cmf-card-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.cmf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 980px) {
  .cmf-topbar {
    grid-template-columns: 1fr 1fr;
  }
  .cmf-btn {
    grid-column: 1 / -1;
  }
  .cmf-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
