{% require_css %}

<style>

  {% scope_css %}

  .comparison-calculator {
    width: 100%;
  }

  .form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
  }

  .input-wrapper {
    position: relative;
    width: 437px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
  }

  .form-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 100px;
    height: 54px;
    padding: 15px 24px;
    font-size: 16px;
    transition: all 0.25s ease;
    background: transparent;
  }

  .form-input:focus {
    outline: none;
  }

  .floating-placeholder {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .form-input:focus + .floating-placeholder,
  .form-input:not(:placeholder-shown) + .floating-placeholder {
    top: 5px;
    font-size: 12px;
    transform: none;
  }

  .currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-22%);
    pointer-events: none;
    z-index: 2;
  }

  .currency-input {
    padding-left: 32px;
    padding-top: 25px;
  }

  .tooltip {
    position: relative;
    margin-left: 20px;
  }

  .tooltip-icon {
    background-color: rgb(65, 59, 59);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .tooltip-icon:hover {
    background-color: #005f6b;
  }

  .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    width: 240px;
    text-align: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
  }

  .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }

  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }

  .form-button {
    background-color: rgba(0, 124, 140, 1);
    border-radius: 50px;
    border: #ffffff 2px solid;
    padding: 11px 32px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: 100ms all ease-in;
    text-align: center;
    cursor: pointer;
  }

  .form-button:hover {
    background-color: #fff;
    color: rgba(0, 124, 140, 1);
    border: rgba(0, 124, 140, 1) 2px solid;
  }

  .result-div {
    padding-top: 100px;
  }

  .total-save {
    line-height: 56px;
    color: #007c8c;
    font-size: 48px;
    font-weight: 600;
  }

  .card-section {
    margin-top: 80px;
    margin-bottom: 50px;
  }

  .card-wrapper {
    display: flex;
    margin: 0 auto;
    gap: 20px;
  }

  .card {
    padding: 24px;
    border-radius: 15px;
    box-shadow: rgba(112, 112, 112, 0.17) 0 0 20px 0;
  }

  .left {
    flex: 7;
    text-align: left;
  }

  .right {
    flex: 3;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 24px;
  }

  .left h4,
  .right h4 {
    font-weight: 600;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    border: none;
  }

  th,
  td {
    text-align: center;
    border: none;
    color: #413b3b;
  }

  th {
    font-weight: 600;
  }

  tr:last-child td {
    border-bottom: none;
  }

  table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
  }

  .td-title {
    color: rgb(65, 59, 59);
    font-weight: 600;
    text-align: left;
  }

  .cost-item {
    margin-bottom: 20px;
  }

  .calculator-form-card {
    width: 100%;
  }

  @media (max-width: 768px) {

    .input-wrapper {
      width: 100%;
    }

    .card-wrapper {
      flex-direction: column;
      gap: 15px;
    }

    .tooltip-text {
      margin-left: -88px !important;
    }

    .right {
      flex: none;
    }

    .table-header {
      display: none !important;
    }

    .total-save {
      font-size: 38px;
      line-height: 46px;
    }

    .result-div {
      padding-top: 60px;
    }

    .card-section {
      margin-top: 50px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
      display: block;
      width: 100%;
    }

    thead {
      display: none;
    }

    tr {
      margin-bottom: 20px;
      border: 1px solid #ddd;
      border-radius: 10px;
      background-color: #fff;
      padding: 10px;
    }

    td {
      text-align: right;
      padding: 10px;
      position: relative;
      border: none;
      border-bottom: 1px solid #eee;
      min-height: 42px;
      box-sizing: border-box;
    }

    td:last-child {
      border-bottom: none;
    }

    td::before {
      content: attr(data-label);
      position: absolute;
      left: 10px;
      width: 50%;
      padding-left: 10px;
      font-weight: 600;
      text-align: left;
    }

    table tbody tr:nth-child(even) {
      background-color: transparent;
    }

    .td-title {
      background-color: #f5f5f5;
    }

  }

  {% end_scope_css %}

</style>

{% end_require_css %}