@import url("https://webfontworld.github.io/pretendard/Pretendard.css");
@import url("https://webfontworld.github.io/gmarket/GmarketSans.css");

#roadmap {
  padding: 50px 0px 100px 0px;
  background-image: url("https://www.japansisa.com/images/application/roadmap/roadmap_bg.png");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #f6f8fa;

  & form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .question {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    color: #000;
    text-align: center;
    font-family: "GmarketSans";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    & span {
      color: #2a74e2;
      text-align: center;
      font-family: "Pretendard";
      font-size: 16px;
      font-weight: 600;
      line-height: normal;
      letter-spacing: 3.2px;
    }
  }

  .answer {
    display: flex;
    min-width: 320px;
    width: calc(100% - 20px);
    flex-direction: column;
    gap: 12px;

    &:hover label {
      opacity: 0.5;
    }

    label {
      transition: 0.2s ease-in-out;
      display: flex;
      padding: 20px 30px;
      align-items: center;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0px 2px 10px 0px rgba(50, 83, 141, 0.23);
      position: relative;

      &:hover {
        opacity: 1;
        background: #1164b0;

        span {
          color: #fff;
        }
      }

      input[type="radio"] {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
      }

      span {
        font-family: "Pretendard";
        flex: 1 0 0;
        color: #56575b;
        text-align: center;
        font-size: 16px;

        font-weight: 400;
        line-height: normal;
      }
    }
  }
  .description {
    padding: 30px 0px;
    background: #eaedf1;
    text-align: center;

    .inner_wrap {
      display: flex;
      flex-direction: column;
      min-width: 320px;
      width: calc(100% - 20px);
      justify-content: center;
      gap: 20px;
      align-items: center;
      margin: auto;
    }

    p {
      color: #8f959b;
      font-family: "Gmarket Sans";
      font-size: 16px;
      font-weight: 400;
      line-height: 130%; /* 26px */
      flex: 1 0 0;
      word-break: keep-all;
      text-align: center;
    }

    .call {
      padding: 8px 16px;
      border-radius: 10px;
      background: #7f8189;

      color: #e6ebf0;
      font-family: "Pretendard";
      font-size: 16px;
      font-weight: 400;
      line-height: normal;
      line-height: 140%;

      b {
        color: inherit;
        font-size: inherit;
      }
    }
    a {
      display: flex;
      padding: 10px 20px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      background: #1164b0;
      color: #e6ebf0;
      font-family: "Pretendard";
      font-size: 16px;
      font-weight: 700;
    }
  }

  .result > .content {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;

    > .tit {
      color: #000;
      text-align: center;
      font-family: "GmarketSans";
      font-size: 32px;
      font-weight: 700;
      line-height: normal;

      b {
        color: #2a74e2;
        font-family: inherit;
        font-size: inherit;
        font-style: inherit;
        font-weight: inherit;
      }
    }

    .step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      min-width: 320px;
      width: calc(100% - 40px);
      align-items: stretch;

      & > div {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
      }

      .step_item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 10px;
        padding-top: 12px;
        width: calc(100% - 20px);

        border-radius: 20px;
        background: #fff;
        background-position: right bottom;
        background-repeat: no-repeat;
        box-shadow: 0px 2px 10px 0px rgba(50, 83, 141, 0.23);

        .numbering {
          display: flex;
          align-items: center;
          gap: 12px;
          color: #000;
          font-family: "GmarketSans";
          font-size: 20px;
          font-weight: 400;

          span {
            display: flex;
            width: 24px;
            height: 24px;
            justify-content: center;
            align-items: center;
            border-radius: 12px;
            border: 1px solid #1164b0;
            background: #fff;

            color: #1164b0;
            font-family: "GmarketSans";
            font-size: 14px;
            font-weight: 400;
          }
        }

        .tit {
          display: flex;
          align-items: center;
          gap: 12px;

          color: #000;
          text-align: center;
          font-family: "GmarketSans";
          font-size: 20px;
          font-style: normal;
          font-weight: 400;
          line-height: normal;

          &::before {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 4px;
          }
        }

        &:nth-child(1) .tit::before {
          background: #1164b0;
        }

        &:nth-child(2) .tit::before {
          background: #149e74;
        }

        &:nth-child(3) .tit::before {
          background: #9e9814;
        }

        .content {
          display: flex;
          gap: 8px;
          align-items: center;
          flex-wrap: wrap;
          align-items: flex-start;

          .item {
            display: flex;
            width: 130px;
            height: 75px;
            justify-content: center;
            align-items: center;

            color: #676767;
            text-align: center;
            font-family: "Pretendard";
            font-size: 16px;
            font-weight: 400;

            border-radius: 10px;
            border: 1px solid #eaedf0;
            background: #fff;
          }
          

          &::after {
            content: "";
            display: inline-block;
            width: 130px;
            height: 130px;
          }

          & .button.item:last-child {
            display: flex;
            padding: 10px 20px;
            justify-content: center;
            align-items: center;
            gap: 10px;
            background: #1164b0;
            color: #e6ebf0;
            font-family: "Pretendard";
            font-size: 16px;
            font-weight: 700;
            border-radius: 0;
            border: 0;
            height: auto;
            width: auto;
          }

          .next {
            margin-top: calc((75px - 24px) / 2);
            display: flex;
            width: 24px;
            height: 24px;
            justify-content: center;
            align-items: center;

            color: #1164b0;

            font-family: "GmarketSans";
            font-size: 16px;
            font-weight: 400;

            border-radius: 12px;
            background: #e7eff6;
          }
        }

        /* EJU 학습 */
        &.eju {
          .content {
            gap: 0;
            flex-direction: column;

            > div {
              display: flex;
              gap: 10px;
              flex: 1 0 1;
              align-self: stretch;

              &:nth-child(1) {
                .item:first-child {
                  border-radius: 10px 10px 0px 0px;
                  background: #e7eff6;
                  color: #1164b0;
                }
                .item:last-child {
                  border-radius: 10px 10px 0px 0px;
                  background: #def3ee;
                  color: #11b08a;
                }
              }
              &:last-child {
                .item:first-child {
                  border-radius: 0px 0px 10px 10px;
                }
                .item:last-child {
                  border-radius: 0px 0px 10px 10px;
                }
              }
            }
            > .item {
              width: auto;
            }
            .item {
              border-radius: 0;
            }
          }
        }
      }

      > div:last-child {
        > .step_item {
          flex: 1;
          background-position: right bottom;
          background-repeat: no-repeat;
        }
      }
    }
  }
}

#roadmap .result_01 > .content .step .step_item .content::after {
  display: none !important;
}
