* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* ─── Stage wrappers ─── */
.calc-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.stage2 {
  display: none;
  max-width: 700px;
  margin: 0 auto;
}

/* ─── Headings ─── */
h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 2rem;
}

/* ─── Main grid ─── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 680px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Left panel ─── */
.left-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 1.25rem;
}

.field-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.field-value {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
}

/* ─── Range slider ─── */
input[type="range"] {
  width: 100%;
  accent-color: #2A7C3F;
  height: 4px;
  margin-bottom: 8px;
  cursor: pointer;
}

.range-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
}

/* ─── Chips ─── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  background: #f7f7f7;
  transition: all 0.2s ease;
  user-select: none;
}

.chip:hover {
  border-color: #aaa;
  background: #efefef;
}

.chip.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ─── Method buttons ─── */
.method-wrap {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.method-btn {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  font-size: 13px;
  cursor: pointer;
  background: #f7f7f7;
  color: #555;
  transition: all 0.2s ease;
  text-align: center;
  user-select: none;
}

.method-btn:hover {
  border-color: #aaa;
}

.method-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ─── Result card ─── */
.result-card {
  background: #1A6FE0;
  border-radius: 20px;
  padding: 1.75rem;
  color: #fff;
  position: sticky;
  top: 1rem;
}

.res-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.res-monthly {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.res-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.res-num {
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.res-desc {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.res-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

/* ─── Apply button ─── */
.apply-btn {
  width: 100%;
  padding: 14px;
  border-radius: 24px;
  background: #34C759;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  margin-top: 0.5rem;
}

.apply-btn:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.apply-btn:active {
  transform: scale(0.98);
}

.note {
  font-size: 11px;
  opacity: 0.7;
  text-align: center;
  margin-top: 8px;
}

/* ─── Stage 2 ─── */
.stage2-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.stage2-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.5rem;
}

.results-heading {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.5rem 0 0.75rem;
}

/* ─── Bank card ─── */
.bank-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.bank-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #f0f0f0;
  flex-shrink: 0;
}

.bank-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.bank-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}

/* ─── Spinner ─── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-top-color: #1A6FE0;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-pending {
  color: #888;
}

.status-approved {
  color: #1A7A3F;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-rejected {
  color: #C0392B;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── Status icons ─── */
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #34C759;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cross-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E74C3C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-svg {
  width: 10px;
  height: 10px;
}

/* ─── Back button ─── */
.back-btn {
  margin-top: 1.5rem;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background: #f7f7f7;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #efefef;
  border-color: #aaa;
}

/* ─── Animations ─── */
.fade-in {
  animation: fadeIn 0.5s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
