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

:root {
  --main-base-color: #e22a2a;
  --main-dark-color: #a13839;
  --cam-sin-color: #9f4b98;
  --cam-jong-color: #f23b3f;
  --cam-gang-color: #048b7c;
  --roadmap-box-shadow: 0px 2px 10px 0px rgba(111, 105, 106, 0.23);
}

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

  input[type="radio"] {
    -webkit-appearance: none; /* Safari, Chrome */
    -moz-appearance: none; /* Firefox */
    -ms-appearance: none; /* Internet Explorer */
    appearance: none; /* Standard */
    width: 20px;
    height: 20px;
    border: 4px solid #eaedf0; /* 경계선 색상 */
    border-radius: 3px; /* 모서리 둥글기 (라디오 버튼인 경우 50%) */
    background-color: #fff; /* 배경 색상 */
  }

  input[type="radio"] {
    border-radius: 50%; /* 라디오 버튼은 원형 */
  }

  input[type="radio"]:checked {
    background-color: var(--main-base-color); /* 체크된 상태의 배경 색상 */
  }

  & 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: var(--main-base-color);
      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: var(--roadmap-box-shadow);
      position: relative;

      &:hover {
        opacity: 1;
        background: var(--main-dark-color);

        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: #e9e9e9;
    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%;

      > div {
        color: inherit;
        font-family: inherit;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        line-height: inherit;
      }

      b {
        color: inherit;
        font-size: inherit;
      }
    }
    a {
      display: flex;
      padding: 10px 20px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      background: var(--main-dark-color);
      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: var(--main-base-color);
        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: center;
        gap: 20px;
        padding: 10px;
        padding-top: 12px;
        width: calc(100% - 20px);

        .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 var(--main-dark-color);
            background: #fff;

            color: var(--main-dark-color);
            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;

          &.dot::before {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 4px;
            background: var(--dot-color);
          }
        }

        .content {
          display: flex;
          gap: 8px;
          align-items: center;
          flex-direction: column;

          .item_box {
            padding: 30px;
            width: 188px;
            border-radius: 10px;
            border: 1px solid #eaedf0;
            background: #fff;
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;

            > div {
              justify-content: center;

              &:not(.tit) {
                display: flex;
                gap: 10px;
                flex-direction: column;
                align-items: center;
                p {
                  text-align: center;
                }
              }
            }
          }

          .item {
            display: flex;
            flex-direction: column;
            width: 148px;
            word-break: keep-all;
            /* min-height: 75px; */
            padding: 20px;
            justify-content: center;
            align-items: center;

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

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

            > div {
              color: inherit;
              text-align: inherit;
              font-family: inherit;
              font-size: inherit;
              font-weight: inherit;
            }
          }
        }
      }
    }
  }

  .tag_list {
    margin-top: 10px;
    gap: 4px;
    display: flex;
    align-items: center;

    &:not(:last-child) {
      margin-bottom: 18px;
    }

    > * {
      text-decoration: none;
      border-radius: 4px;
      font-size: 14px;
      color: #ffffff;
      display: flex;
      width: 45px;
      height: 30px;

      justify-content: center;
      align-items: center;

      &::before {
        display: inline-block;
        min-width: 45px;
        text-align: center;
      }

      &.jong {
        background-color: var(--cam-jong-color);
        &::before {
          content: "종로";
        }
      }
      &.gang {
        background-color: var(--cam-gang-color);
        &::before {
          content: "강남";
        }
      }
      &.sin {
        background-color: var(--cam-sin-color);
        &::before {
          content: "신촌";
        }
      }
      &.video {
        background-color: #3ba3f2;
        &::before {
          content: "비디오";
        }
      }
    }
  }

  i {
    overflow: hidden;
    text-indent: -24px;
    width: 24px;
    min-height: 24px;
    display: inline-block !important;
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    > * {
      display: initial;
    }
    &.next {
      background-image: url("https://www.chinasisa.com/images/application/roadmap/right-arrow.png");
      transform: rotate(90deg);
    }
    &.plus {
      background-image: url("https://www.chinasisa.com/images/application/roadmap/mdi_plus.png");
    }
  }

  .cam {
    &.jong {
      color: var(--cam-jong-color) !important;
    }
    &.gang {
      color: var(--cam-gang-color) !important;
    }
    &.sin {
      color: var(--cam-sin-color) !important;
    }
  }
}
