/*
    📍 작성 완료 시
      .btn-submit에 disabled 속성 삭제 => 완료 버튼 활성화
    📍 .btn-submit 클릭 시 완료 화면으로 전환

    📍 .txt-error에 .error 추가 -> h2 색상 변경
    */

:root {
    --check-box-size: 20px;
}

/* 폰트 */
@font-face {
    font-family: "MBK CorpoS";
    font-weight: 400;
    src: url("https://nagma-cdn.s3.ap-northeast-2.amazonaws.com/benz/font/MBKCorpoS.ttf");
}

@font-face {
    font-family: "MBK CorpoA";
    font-weight: 400;
    src: url("https://nagma-cdn.s3.ap-northeast-2.amazonaws.com/benz/font/MBKCorpoA.ttf");
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

img {
    width: 100%;
    display: block;
}

/* 공통 클래스 */
.blind {
    font-size: 0px;
    position: absolute;
}

.act:active {
    transform: scale(0.99);
}

.text-blind {
    font-size: 0px;
    position: absolute;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0)
}

/* 레이아웃 */
.wrap {
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    font-family: "MBK CorpoS", sans-serif;
    color: #ffffff;
    letter-spacing: -0.1px;
    line-height: 1.2;
    position: relative;
    background-color: #000;
}

main {
    position: relative;
    width: 100%;
}

.main-1 {
    background: center top / contain no-repeat url(https://nagma-cdn.s3.ap-northeast-2.amazonaws.com/benz/SeoulMobilityShow2023/images/img-top.png);
}

section {
    width: 100%;
    height: auto;
}

.main-1 .s1 {
    text-align: center;
    position: relative;
}

.main-1 .s2 {
    position: relative;
    padding: 50px 36px 36px;
}

h1 {
    width: fit-content;
    font: 21px "MBK CorpoA", serif;
    margin: 0 auto;
    padding: 64px 0 0;
    color: #ffffff;
    position: relative;
}


.txt-group {
    margin-bottom: 35px;
}

.txt-group:last-of-type {
    margin-bottom: 45px;
}

.txt-group h2 {
    margin-bottom: 18px;
    font-size: 18px;
}

.txt-group.error h2 {
    color: #ffe24a;
}

.txt-group h2 span {
    font-size: 13px;
}

.products-wrap {
    margin: 26px -36px 13px;
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: scroll;
    overflow-y: visible;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.products-wrap::-webkit-scrollbar {
    display: none;
}

.product-group {
    width: 134px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-group:first-child {
    margin-left: 36px;
}

.product-group:last-child {
    margin-right: 36px;
}

.product-group input {
    appearance: none;
    display: block;
    width: 100%;
    height: 24px;
    position: relative;
    margin-top: 10px;
}

.product-group input::before {
    content: '선택';
    display: block;
    min-width: 100%;
    height: 24px;
    border-radius: 2px;
    color: #000;
    background-color: #fff;
    text-align: center;
    font: 12px/24px "MBK CorpoS", sans-serif;
    transition: background-color .1s ease-in, color .1s ease-in;
}

.product-group input:checked:before {
    background-color: #366ECE;
    color: #fff;
}

.product-group .img {
    height: 100px;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.product-group:nth-child(1) img {
    position: absolute;
    bottom: -10px;
}

.product-group:nth-child(3) img {
    position: absolute;
    bottom: -16px;
}

.product-group .txt {
    height: 100%;
    font-size: 12px;
    padding: 8px 12px 10px;
    border: 1px solid #ffffff;
    border-radius: 0 0 5px 5px;
    border-top: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-wrap + span {
    font-size: 13px;
}

.radio-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.check-group, .radio-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.check-group *, .radio-group * {
    cursor: pointer;
}

.check-group input, .radio-group input {
    width: 0;
    height: 0;
    appearance: none;
}

.check-group input::before, .radio-group input::before {
    content: '';
    width: var(--check-box-size);
    height: var(--check-box-size);
    background-color: transparent;
    border: 1px solid #fff;
    /* border-radius: 2px; */
    position: absolute;
    left: 0;
    top: -3px;
    transition: all 0.1s;
}

.radio-group input::before {
    border-radius: 50%;
}

.check-group input::after {
    content: '';
    width: var(--check-box-size);
    height: var(--check-box-size);
    background: center / contain no-repeat url(https://nagma-cdn.s3.ap-northeast-2.amazonaws.com/benz/SeoulMobilityShow2023/images/check.svg);
    color: #fff;
    position: absolute;
    top: -1px;
    left: 1px;
    opacity: 0;
    transition: opacity 0.1s;
}

.radio-group input::after {
    content: '';
    width: calc(var(--check-box-size) / 2);
    height: calc(var(--check-box-size) / 2);
    border-radius: 50%;
    background-color: #366ECE;
    position: absolute;
    top: 3px;
    left: 6px;
    opacity: 0;
    transition: opacity 0.1s;
}

.check-group input:checked::after, .radio-group input:checked::after {
    opacity: 1;
    display: block;
}

.check-group label, .radio-group label {
    font-size: 14px;
    margin-left: calc(var(--check-box-size) + 16px);
}

.textarea-group {
    height: 54px;
    margin-left: calc(var(--check-box-size) + 16px);
    margin-top: -10px;
    position: relative;
}

.textarea-group.non {
    opacity: 0.5;
    pointer-events: none;
}

textarea {
    width: 100%;
    height: 100%;
    resize: none;
    font: 16px/27px "MBK CorpoS", sans-serif;
    background-color: transparent;
    outline: none;
    color: #fff;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #fff;
}

.textarea-group::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 50%;
}

.btn-submit {
    width: 100%;
    height: 50px;
    display: block;
    text-decoration: none;
    text-align: center;
    font: 21px/50px "MBK CorpoS", sans-serif;
    border-radius: 2px;
    color: #fff;
    background-color: #366ECE;
    border: none;
}

.btn-submit:disabled {
    background-color: #989898;
}

/* 완료 페이지 */
.main-2 {
    display: none;
    overflow: hidden;
}

.main-2 img {
    width: 58px;
    height: 58px;
    margin: 58px auto 108px;
}

.main-2 h1 {
    text-align: center;
    font-size: 24px;
    padding: 0;
    margin-bottom: 37px;
}



.main-2 .evt-txt-box {
    text-align: center;
    font:  18px "MBK CorpoS";
    font-size: 18px;
    padding: 0;
    color: #c0c0c0;
    margin-bottom: 37px;
}

.main-2 .txt-box {
    width: 250px;
    height: auto;
    padding: 15px;
    margin: 0 auto;
    border: 1px solid #fff;
}

.main-2 .txt-box p {
    font-size: 13px;
}

.main-2 .txt-box p:first-child {
    margin-bottom: 10px;
}
