/* === GLOBAL === */
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #eef1f7;
  color: #1a1f2c;
  margin: 0;
  padding: 32px;
  line-height: 1.5;
}

/* === CARD CONTAINER === */
.card {
  max-width: 900px;
  margin: 20px auto;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9edf4;
}

/* === HEADINGS === */
h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

p.lead {
  margin: 0 0 20px;
  color: #5f6c7b;
  font-size: 15px;
}

/* === QUALIFICATION ROWS === */
.qual-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  transition: 0.15s ease;
}

.qual-row:hover {
  background: #f2f5fa;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.qual-row > * {
  flex: 0 0 auto;
}

/* === INPUTS / SELECTS === */
select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d4dbe6;
  background: #fff;
  min-width: 140px;
  font-size: 14px;
  transition: 0.15s ease;
}

select:focus {
  outline: none;
  border-color: #4f8bff;
  box-shadow: 0 0 0 2px rgba(79,139,255,0.25);
}

/* === BUTTONS === */
button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

button:hover {
  background: #1e4fcf;
}

button.secondary {
  background: #f1f5ff;
  color: #2563eb;
  border: 1px solid #cfe0ff;
}

button.secondary:hover {
  background: #e5ecff;
}

/* === BUTTON ROW === */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* === RESULTS BOX === */
.results {
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe3f2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

#money {
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
}

/* === BREAKDOWN === */
.breakdown {
  margin-top: 14px;
}

.small {
  font-size: 14px;
  color: #677487;
}

.muted {
  color: #8a97a8;
}

/* === LAYOUT HELPERS === */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  margin-top: 18px;
  color: #8a97a8;
  font-size: 13px;
}

/* === MOBILE === */
@media (max-width: 700px) {
  .qual-row {
    flex-direction: column;
    align-items: stretch;
  }

  select {
    width: 100%;
  }

  button {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }
}
