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

    :root {
      --green: #1a6b4a;
      --green-light: #e8f4ef;
      --green-mid: #c2dfd2;
      --text: #1a1a1a;
      --muted: #666;
      --border: #e0e0dc;
      --bg: #f7f6f3;
      --card: #ffffff;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 3rem 1rem;
    }

    .card {
      background: var(--card);
      border-radius: 20px;
      padding: 2.75rem;
      max-width: 520px;
      width: 100%;
      box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    }

    .brand { margin-bottom: 2rem; }
    .brand img { height: 40px; width: auto; }

    h1 {
      font-family: 'DM Serif Display', serif;
      font-size: 26px;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 0.4rem;
      line-height: 1.2;
    }

    .subtitle {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 2rem;
      line-height: 1.5;
    }

    .field { margin-bottom: 1.25rem; }

    .field label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: #444;
      margin-bottom: 6px;
    }

    .input-wrap {
      display: flex;
      align-items: center;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      background: #fff;
      transition: border-color 0.15s;
      overflow: hidden;
    }

    .input-wrap:focus-within { border-color: var(--green); }

    .input-wrap .prefix {
      padding: 10px 2px 10px 12px;
      font-size: 15px;
      color: #444;
      font-family: 'DM Sans', sans-serif;
      user-select: none;
      flex-shrink: 0;
    }

    .input-wrap input {
      border: none !important;
      outline: none !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      padding: 10px 12px 10px 2px !important;
      flex: 1;
      min-width: 0;
      font-size: 15px;
      font-family: 'DM Sans', sans-serif;
      color: var(--text);
      background: #fff;
    }

    .input-wrap input::placeholder { color: #ccc; }

    .select-wrap { position: relative; }

    .select-wrap::after {
      content: '';
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 0; height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid #888;
      pointer-events: none;
    }

    .field select {
      width: 100%;
      padding: 10px 12px;
      font-size: 15px;
      font-family: 'DM Sans', sans-serif;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      background: #fff;
      color: var(--text);
      outline: none;
      transition: border-color 0.15s;
      appearance: none;
      -webkit-appearance: none;
    }

    .field select:focus { border-color: var(--green); }

    .calc-btn {
      width: 100%;
      margin-top: 1.5rem;
      padding: 13px;
      font-size: 15px;
      font-weight: 600;
      font-family: 'DM Sans', sans-serif;
      cursor: pointer;
      background: var(--green);
      border: none;
      border-radius: 10px;
      color: #fff;
      transition: background 0.15s, transform 0.1s;
      letter-spacing: -0.1px;
    }

    .calc-btn:hover { background: #155a3c; }
    .calc-btn:active { transform: scale(0.99); }

    .divider {
      border: none;
      border-top: 1.5px solid var(--border);
      margin: 2rem 0;
    }

    .results { display: none; }
    .results.visible { display: block; }

    .breakdown-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: #aaa;
      margin-bottom: 0.75rem;
    }

    .breakdown-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 0;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
    }

    .breakdown-row:last-child { border-bottom: none; }
    .breakdown-row .b-label { color: var(--muted); }
    .breakdown-row .b-value { font-weight: 600; color: var(--text); }

    .breakdown-row.highlight .b-label {
      color: var(--text);
      font-weight: 500;
    }

    .breakdown-row.highlight .b-value { color: var(--green); }

    .disclaimer {
      font-size: 11px;
      color: #bbb;
      margin-top: 1.25rem;
      line-height: 1.6;
      text-align: center;
    }

    .error {
      font-size: 13px;
      color: #c0392b;
      margin-top: 0.5rem;
      display: none;
    }

    .error.visible { display: block; }

    @media (max-width: 480px) {
      .card { padding: 1.75rem 1.25rem; }
    }
