<template>
  <div class="pricing-item">
    <h3 class="pricing-name">CX23</h3>
    <p class="price">
      <span class="price-value">300.000</span>&nbsp;
      <span class="price-unit">VND/Tháng</span>
    </p>
    <div class="list-info">
      <div class="info-item">
        <p class="info-icon">
          <img src="/icons/cpu.svg" alt="CPU" />
        </p>
        <p class="info-text">8 Core</p>
      </div>
      <div class="info-item">
        <p class="info-icon">
          <img src="/icons/ram.svg" alt="CPU" />
        </p>
        <p class="info-text">8 GB</p>
      </div>
      <div class="info-item">
        <p class="info-icon">
          <img src="/icons/hard-drive.svg" alt="CPU" />
        </p>
        <p class="info-text">8 GB</p>
      </div>
      <div class="info-item">
        <p class="info-icon">
          <img src="/icons/measure.svg" alt="CPU" />
        </p>
        <p class="info-text">100 Mbps</p>
      </div>
      <div class="info-item">
        <p class="info-icon">
          <img src="/icons/ip-address.svg" alt="CPU" />
        </p>
        <p class="info-text">IPv4</p>
      </div>
    </div>
    <div class="btn-action">
      <button class="btn-register">Đăng ký ngay</button>
    </div>
  </div>
</template>

<style lang="scss">
.pricing-item {
  background-color: #dcfce7;
  padding: 50px 30px;
  border-radius: 16px;
  box-shadow: 4px 4px 4px 0 rgba($color: #000000, $alpha: 0.2);

  .pricing-name {
    text-align: center;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 16px;
  }
  .price {
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;

    .price-value {
      font-size: 32px;
      font-weight: 700;
    }

    .price-unit {
      font-weight: 700;
    }
  }

  .list-info {
    margin: 20px 0;
    .info-item {
      background-color: #fff;
      border-radius: 16px;
      display: flex;
      gap: 8px;
      padding:5px 10px;
      align-items: center;
      box-shadow: 2px 2px 4px 0 rgba($color: #000000, $alpha: 0.1);

      & + .info-item {
        margin-top: 15px;
      }
      .info-icon {
        width: 32px;
        height: 32px;
      }
      .info-text {
        font-weight: 700;
        font-size: 16px;
      }
    }
  }
  .btn-action {
    .btn-register {
      width: 100%;
      text-align: center;
      color: #fff;
      background-color: var(--color-primary);
      padding: 10px;
      font-weight: 700;
      font-size: 18px;
      border-radius: 16px;
    }
  }
}
</style>
