.article8 {
    position: relative;
    background: url(../images/a8-bg.jpg);
    overflow: hidden;
}

.a8-image {
    position: absolute;
    bottom: 150px; right: -240px;
    width: 1100px;
}

.a8-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.a8-title {
    margin-bottom: 3rem;
}

.a8-title p {
    color: #888;
    font-size: 22px;
    margin-bottom: 1.5rem;
}

.a8-title h1 {
    color: #222;
    font-size: 55px;
    font-weight: 800;
    line-height: 1.45;
}

.form-wrapper {
    width: 550px;
    z-index: 2;
}

.gform {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.gform .input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gform .input-wrapper .input-title h1 {
    color: #555;
    font-size: 16px;
    font-weight: 500;
}

.gform .input-wrapper .input-title h1 span {
    color: red;
}

.gform .inputbox {
    color: #222;
    height: 60px;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Pretendard';
    letter-spacing: -0.01em;
    border: none;
    outline: none;
    border-radius: 7px;
    background-color: #fff;
    border: 1px solid #dedede;
}

.gform textarea {
    color: #222;
    width: 100%;
    height: 155px;
    padding: 15px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Pretendard';
    letter-spacing: -0.01em;
    -webkit-border-radius: 0;
    border-radius: 0;
    border: none;
    outline: none;
    border-radius: 7px;
    background-color: #fff;
    border: 1px solid #dedede;
}

.gform .inputbox::placeholder {
    color: #aaa;
}

.gform textarea::placeholder {
    color: #aaa;
}

.gform .inputbox:focus,
.gform textarea:focus {
    border: 1px solid var(--main-color);
}

.radio-wrapper {
    width: 100%;
    display: flex;
    gap: 5px;
}

.radio-wrapper input[type="radio"] {
    display: none;
}

.radio-wrapper label {
    flex: 1;
    color: #333;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Pretendard';
    border-radius: 7px;
    border: 1px solid #ddd;
    background-color: #fff;
    text-align: center;
    user-select: none;
    cursor: pointer;
}

.radio-wrapper label:hover {
    background-color: #f8f8f8;
}

.radio-wrapper input[type="radio"]:checked+label {
    color: #fff;
    font-weight: 500;
    border: 1px solid var(--main-color);
    background-color: var(--main-color);
}

.f-submit {
    color: #fff;
    width: 100%;
    height: 60px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 0 19px;
    border: none;
    outline: none;
    border-radius: 7px;
    background: rgb(15,155,231);
    background: linear-gradient(90deg, rgba(15,155,231,1) 0%, rgba(54,215,157,1) 100%);
    cursor: pointer;
}

.f-submit:disabled {
    color: #bbb;
    font-weight: 300;
    cursor: not-allowed;
    background: #eee;
}

.f-personal {
    width: 100%;
    padding: 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.f-personal-no {
    background-color: #fff7f7;
    border: 1px solid #e82424;
}

.f-personal-text input {
    display: none;
}

.f-personal-text label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.f-personal-text label em {
    position: relative;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
}

.f-personal-text label em::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--main-color);
    display: none;
}

.f-personal-text label p {
    color: #444;
    font-size: 15px;
    user-select: none;
    cursor: pointer;
}

#cb:checked ~ label em::after {
    display: block;
}

.f-personalBtn {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
    background-color: #bbb;
    cursor: pointer;
}



/*==================================================*/
@media (min-width: 2150px) {
    .a8-image {
        width: 1300px;
    }
}


@media (max-width: 1650px) {
    .a8-image {
        width: 65%;
    }
}


@media (max-width: 1250px) {
    .a8-image {
        bottom: 0; right: -50px;
        width: 90%;
    }
    
    .a8-wrapper {
        margin-bottom: 45%;
    }
}


@media (max-width: 650px) {
    .a8-image {
        bottom: unset;
        top: 20px; right: -120px;
        width: 80%;
        opacity: .7;
        z-index: 1;
    }

    .a8-wrapper {
        margin-bottom: 0;
    }

    .a8-title {
        margin-top: 4rem;
        z-index: 2;
    }

    .a8-title p {
        font-size: 18px;
    }
    
    .a8-title h1 {
        font-size: 35px;
    }
    
    .form-wrapper {
        width: 100%;
    }
    
    .f-personal {
        padding: 15px;
    }
    
    .f-personal-text label p {
        font-size: 12px;
        letter-spacing: -0.02em;
    }

    .f-personalBtn {
        font-size: 10px;
    }

    .gform .input-wrapper .input-title h1 {
        font-size: 13px;
    }
}


@media (max-width: 550px) {
    .a8-title p {
        font-size: 15px;
        margin-bottom: 1rem;
    }
    
    .a8-title h1 {
        font-size: 32px;
    }
}


@media (max-width: 450px) {
    .a8-title {
        margin-bottom: 3.5rem;
    }
    
    .a8-title p {
        font-size: 13px;
        margin-bottom: .7rem;
    }
    
    .a8-title h1 {
        font-size: 26px;
    }
    
    .gform .input-group {
        padding: 10px 0;
        gap: 10px;
    }
    
    .gform .inputbox {
        height: 43px;
        font-size: 13px;
    }

    .gform textarea {
        font-size: 13px;
    }

    .radio-wrapper label {
        padding: 11px 0;
        font-size: 13px;
    }

    .f-submit {
        height: 45px;
        font-size: 14px;
    }
}