
    :root {
      --bg: #1e1e2f;
      --surface: #2e2e3e;
      --primary: #4a90e2;
      --text: #f0f0f0;
      --text-muted: #aaa;
    }
    html, body {
      height: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
    }
    .page-wrapper {
      flex: 1;
    }
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      background: var(--surface);
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    header h1 {
      font-size: 1.5rem;
      margin: 0;
    }
    header a {
      color: var(--text);
      text-decoration: none;
      font-weight: 600;
      transition: opacity 0.2s ease-in-out;
    }
    header a:hover {
      opacity: 0.8;
    }
    .container {
      max-width: 900px;
      margin: 0 auto;
      padding: 2rem;
    }
    .card {
      background: var(--surface);
      border-radius: 1.5rem;
      padding: 2rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      margin-bottom: 1.5rem;
    }
    h2 {
      margin-top: 0;
      font-size: 1.75rem;
      color: var(--text);
    }
    /* Results card styling */
    .results-card {
      background: linear-gradient(135deg, #0f172a, #1e293b);
      border: 1px solid var(--primary);
      color: #fff;
      padding: 1.5rem;
      border-radius: 1.5rem;
    }
    .results-card h2 {
      font-size: 1.8rem;
      margin-top: 0;
      border-bottom: 2px solid var(--primary);
      padding-bottom: 0.5rem;
      margin-bottom: 1rem;
    }
    .results-card p {
      font-size: 1.1rem;
      margin: 0.5rem 0;
      line-height: 1.4;
    }
    /* Ensure the Loan Amount text stays white */
    .results-card #loanAmount {
      color: #fff;
    }
    .results-card p strong {
      color: #fbbf24;
    }
    .results-card #finalCheck {
      font-size: 1.2rem;
      margin-top: 1rem;
    }
    .notice-banner {
      background-color: #ffe8c2;
      color: #4d2e00;
      border: 1px solid #e6b877;
      border-radius: 12px;
      padding: 1rem 1.25rem;
      font-size: 0.95rem;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      margin-top: 1rem;
    }
    .notice-banner .icon {
      font-size: 1.4rem;
      flex-shrink: 0;
      line-height: 1;
      margin-top: 2px;
    }
    .notice-banner .text {
      line-height: 1.5;
    }
    .form-group {
      margin-top: 2rem;
    }
    label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }
    input[type="number"],
    input[type="range"],
    select {
      padding: 0.75rem 1rem;
      border-radius: 0.5rem;
      border: 1px solid #444;
      background: #1e1e2f;
      color: white;
      font-size: 1rem;
      width: 100%;
      box-sizing: border-box;
    }
    input[type="number"]:focus,
    select:focus {
      outline: none;
      border-color: var(--primary);
    }
    input[type="range"] {
      width: 100%;
      margin-top: 1rem;
    }
    .slider-value {
      display: flex;
      justify-content: space-between;
      font-weight: bold;
      margin-top: 1rem;
    }
    .repayment-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
      flex-wrap: wrap;
    }
    .repayment-button {
      padding: 1rem 2rem;
      border: 2px solid #444;
      background: #2e2e3e;
      color: white;
      font-size: 1rem;
      font-weight: bold;
      border-radius: 0.5rem;
      cursor: pointer;
      transition: background-color 0.3s;
      flex: 1;
    }
    .repayment-button:hover {
      background: #4a90e2;
    }
    .repayment-button.selected {
      background: #4a90e2;
      color: white;
    }
    .expenses-table {
      width: 100%;
      border-collapse: collapse;
    }
    .expenses-table td {
      padding: 0.5rem;
      vertical-align: middle;
    }
    .expense {
      margin-bottom: 1rem;
    }
    .expense label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }
    .expense input,
    .expense select {
      padding: 0.75rem 1rem;
      border-radius: 0.5rem;
      border: 1px solid #444;
      background: #1e1e2f;
      color: white;
      font-size: 1rem;
      width: 100%;
      box-sizing: border-box;
    }
    .expense input:focus,
    .expense select:focus {
      outline: none;
      border-color: var(--primary);
    }
    footer {
      background-color: var(--surface);
      padding: 1.5rem 2rem;
      text-align: center;
      font-size: 0.95rem;
      color: var(--text-muted);
      box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    }
    footer a {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    footer a:hover {
      opacity: 0.8;
    }
    @media (max-width: 600px) {
      .repayment-button {
        flex: 1 1 30%;
        margin-bottom: 0.5rem;
      }
    }
