p {
  color: #222;
}
.banner {
  background-image: url("../img/plan-flex/banner.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 24rem;
  width: 95%;
  margin: auto;
  padding: 1em;
  margin-bottom: 2rem;
  margin-top: 3rem;
}
span {
  display: block;
}
main {
  width: 95%;
  margin: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 3rem;
  a {
    border: 2px solid #a90000;
    padding: 2em 1em;
    font-size: 1.5rem;
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
    color: #222;
  }
}

.info-plan,
.mas-info {
  padding: 1em;
  width: 100%;
  display: flex;
  gap: 5rem;
  align-items: center;

  > span:nth-last-child(2) {
    background-color: #d9d9d9;
    width: 30%;
    height: 25rem;
    padding: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;

    h2 {
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      font-weight: 100;
      font-size: 2.5rem;

      strong {
        font-weight: bold;
      }
    }
  }

  span:nth-last-child(1) {
    width: 70%;
    padding: 1em;
    display: flex;
    flex-direction: column;
    h2 {
      font-size: 2.5rem;
    }
    p {
      font-size: 1.5rem;
      line-height: 1.8rem;
      padding: 0;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      text-align: left;
    }
  }
}

.steps {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  ul {
    margin-top: 5rem;
    display: flex;
    gap: 1em;
    width: 90%;
    justify-content: space-between;
  }

  li {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    gap: 0.5em;

    position: relative;
    img {
      width: 50%;
      object-fit: contain;
    }

    small {
      width: 50%;
      font-size: 1rem;
      text-align: center;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
    }
  }

  li:nth-last-child(4)::before,
  li:nth-last-child(3)::before,
  li:nth-last-child(2)::before,
  li:nth-last-child(1)::before {
    content: "1";
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #a90000;
    position: absolute;
    font-size: 1rem;
    color: #eee;
    left: 50px;
    top: 10px;
  }
  li:nth-last-child(3)::before {
    content: "2";
  }
  li:nth-last-child(2)::before {
    content: "3";
  }
  li:nth-last-child(1)::before {
    content: "4";
  }
}

.video-tpa,
.video-jf {
  margin-top: 5rem;
  position: relative;
  width: 50%;
  padding-top: 31.58%;
  overflow: hidden;

  iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}

.mas-info {
  width: 95%;
  padding: 2em;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
  margin-top: 3rem;
  border-top: 2px solid #222;

  h2 {
    font-size: 3.5rem;
  }
  p {
    margin-top: 0;
    padding: 0;
    margin-left: 1rem;
    font-size: 2.2rem;
    text-align: left;
  }

  ul {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    padding: 0;

    li {
      display: flex;
      align-content: center;

      font-size: 3rem;
      gap: 10px;
      .info {
        flex-direction: column;
        display: flex;
        span {
          width: 100%;
          align-items: center;
          display: flex;
          gap: 0.5em;
          button {
            width: 40px;
            height: 40px;
            background-color: #a90000;
          }
        }

        p {
          font-size: 1.5rem;
        }
      }
    }
  }
}
@media (width <= 1440px) {
  .mas-info {
    ul {
      li {
        img{
            width: 70px;
        }
        .info {
          span {
            font-size: 1.5rem;
          }
          p {
            margin: 0;
            font-size: 1rem;
          }
        }
      }
    }
  }
}

@media (width <= 750px) {
  .banner {
    background-image: url("../img//plan-flex//banner-mobile.webp");
  }
  .info-plan,
  .mas-info {
    flex-direction: column;

    > span:nth-last-child(2) {
      width: 100%;
      padding: 0;
    }
    > span:nth-last-child(1) {
      width: 100%;
      padding: 0;

      h2 {
        font-size: 2rem;
        text-align: center;
      }
      p {
        font-size: 1rem;
      }
    }
  }
  .steps {
    ul {
      padding: 0;
      width: 100%;
      align-items: center;
      flex-direction: column;
      li {
        width: 100%;
        margin-bottom: 1em;
        small {
          width: 80%;
        }
        img {
          width: 100px;
        }
      }
    }
  }
  .video-tpa,
  .video-jf {
    width: 100%;
    min-height: 300px;
    margin-top: 2rem;
  }

  .mas-info {
    width: 100%;
    padding: 0.5rem;

    h2 {
      text-align: center;
      font-size: 2rem;
    }
    p {
      margin: 0;
      font-size: 1rem;
    }
    ul {
      flex-direction: column;
      padding: 0.5rem;
      width: 100%;
      gap: 4em;
      align-items: center;
      justify-content: center;

      li {
        justify-content: center;
        align-items: center;
        width: 100%;
        font-size: 1rem;
        gap: 1em;
        img {
          width: 5rem;
        }
        .info {
          width: 100%;
          gap: 1rem;
          span {
            justify-content: space-between;
          }
          p {
            font-size: 1rem;
          }
        }
      }
    }
  }
}
