body {
      margin: 0;
      background: #fff;
      font-family: Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    .container {
      max-width: 500px;
      margin: 0 auto;
      background: #fff;
      border-radius: 0px;
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
      padding: 0 0 20px 0;
      border: 2px solid #555;
    }

    .header {
      background: #555;
      color: #fff;
      border-radius: 0px;
      padding: 4px 0 12px 0;
      text-align: center;
      font-size: 1.5rem;
      font-weight: 600;
      position: relative;
    }

    .logo {
      position: absolute;
      left: 0;
      top: 0;
      width: 47px;
    }

    .action-bar {
      color: #000;
      padding: 12px 0 12px 0;
      text-align: center;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 1px;
      position: relative;
      border-bottom: 2px solid #555;
    }

    .selectors {
      display: flex;
      gap: 10px;
      justify-content: center;
      align-items: center;
    }

    .language-select,
    .currency-select {
      background: #fff;
      color: #555;
      border: none;
      border-radius: 6px;
      padding: 4px 10px;
      font-size: 1rem;
      font-weight: 500;
      outline: none;
      cursor: pointer;
    }

    .tabs {
      display: flex;
      margin: 20px 0 0 0;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #555;
      width: calc(100% - 60px);
      margin-left: auto;
      margin-right: auto;
    }

    .tab {
      flex: 1;
      text-align: center;
      padding: 10px 0;
      background: #fff;
      color: #555;
      font-weight: 500;
      cursor: pointer;
      border: none;
      font-size: 1.1rem;
      transition: background 0.2s, color 0.2s;
    }

    .tab.active {
      background: #555;
      color: #fff;
    }

    .form {
      padding: 20px 30px 0 30px;
    }

    .form-group {
      margin-bottom: 18px;
    }

    .form-group label {
      display: block;
      margin-bottom: 6px;
      font-weight: 500;
      color: #222;
    }

    .form-group input {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #bcdffb;
      border-radius: 6px;
      font-size: 1.1rem;
      background: #f7fbff;
      color: #222;
    }

    #residualSection label {
      margin: 3px 0 0 0;
    }

    .term-group,
    .freq-group {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 18px;
    }

    .term-btn,
    .freq-btn {
      border: 1.5px solid #555;
      background: #fff;
      color: #555;
      border-radius: 50%;
      width: 38px;
      height: 38px;
      font-size: 1.1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }

    .term-btn.selected,
    .freq-btn.selected {
      background: #555;
      color: #fff;
    }

    .term-btn--text {
      width: auto;
      border-radius: 19px;
    }

    .freq-btn {
      border-radius: 50%;
      width: 38px;
      height: 38px;
    }

    .calc-btn {
      display: block;
      width: 100%;
      background: #555;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 12px 0;
      font-size: 1.2rem;
      font-weight: 600;
      margin: 18px 0 0 0;
      cursor: pointer;
      transition: background 0.2s;
    }

    .calc-btn:hover {
      background: #666;
    }

    .result {
      text-align: center;
      margin: 20px;
      font-size: 1.1rem;
      color: #222;
    }

    .result .amount {
      font-size: 2rem;
      font-weight: 700;
      color: #555;
      margin-top: 8px;
      display: block;
    }

    .disclaimer, .disclaimer-bold {
      font-size: 0.85rem;
      color: #555;
      margin: 18px 20px 0 20px;
      text-align: left;
    }
   .disclaimer-bold{
    font-weight:bold;
   }

    @media (max-width: 600px) {
      .container {
        max-width: 98vw;
      }

      .form {
        padding: 16px 6vw 0 6vw;
      }

      .disclaimer, .disclaimer-bold {
        margin: 18px 4vw 0 4vw;
      }
    }

    @media (max-width: 380px) {
      .header {
        padding-top: 45px;
      }

      .logo {
        left: calc(50% - 23px);
      }
    }

    #residualSection .residual-fields {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    #residualSection .residual-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 10px;
    }

    #customTermGroup {
      margin-top: 12px;
      margin-bottom: 0;
    }

    #customTermInput {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #bcdffb;
      border-radius: 6px;
      font-size: 1.1rem;
      background: #fff;
      color: #222;
    }

    .term-error {
      font-style: italic;
      color: #ff0000;
      font-size: .9rem;
      margin-top: 5px;
    }