.wrap{
    background-color: #FAF7F4;
}
main{
    padding-top: 180px;
    margin-bottom: var(--space-foot);
}
.banner{
    height: 600px;
    margin-bottom: var(--space-3x-large);
}
.banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.consulting-contents{
    text-align: center;
}
.consulting-contents>div{
    margin-bottom: var(--space-3x-large);;
}
.consulting-contents>div>h1{
    margin-bottom: var(--space-normal);
}
.consulting-contents ul{
    display: flex;
    gap: var(--space-normal);
    justify-content: space-between;
    margin-top: var(--space-x-large);
}
.consulting-contents ul li figure{
    margin-bottom: var(--space-normal);
}
.service-for h1 span{
    color: var(--main-color);
}
.service-for ul li{
    background-color: #fff;
    width: 345px;
    height: 354px;
    border-radius: 1.5rem;
}
.step-desc{
    display: flex;
    justify-content: center;
    gap: var(--space-small);
}
.step-desc span{
    font-size: var(--fs-bd1);
}

.service-process ul li{
    border-radius: 1.5rem;
    background-color: #fff;
    width: 100%;
    height: 345px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-small);
}
.service-process ul li figure{
    width: 100%;
    height: 245px;
}
.service-process ul li figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-benefit ul li{
    width: 345px;
    height: 314px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
}
.service-benefit ul li figure{
    width: 274px;
    height: 274px;
    margin-bottom: 0;
}
.service-why ul{
    width: 1021px;
    justify-self: center;
}





/* 1:1 상담 신청 (모달 팝업) */
.btn-personal-apply{
    display: flex;
    justify-content: flex-end;
    text-align: center;
    margin-bottom: var(--space-large);
}
.btn-personal-apply button{
    width: 220px;
    height: 60px;
    border: 1px solid #000;
    font-weight: var(--fw-bold);
}
.modal{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 300000;
    opacity: 0;
    pointer-events: none;
}
.modal.on{
    opacity: 0.5;
    pointer-events: auto;
}
.popup{
    position: fixed; 
    width: 1200px;
    height: 600px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: #fff;
    text-align: center;
    padding: var(--space-large);
    z-index: 300001;
    overflow-y: auto;
    box-shadow: 1px 1px 10px #aaa;
    display: none;
}
.popup.on{
    display: block;
} 
.form-wrap {
    padding-top: 1rem;
    transition: all .7s ease 0s;
    margin-bottom: var(--space-3x-large);
}
.form-wrap.clicked{
    max-height: 2000px;
}
.form-box{
    background-color: #fff;
    border-radius: 1.5rem;
}
.form-box>h4{
    text-align: center;
    width: 975px;
    padding: var(--space-normal);
    box-sizing: border-box;
    border-bottom: 1px solid #808080;
    margin: 0 auto;
}
.form-inner{
    width: 975px;
    margin: 0 auto;
}
.form-content>h3{
    margin: var(--space-large) 0;
}
.form-content{
    border-bottom: 1px solid #808080;
    padding-bottom: var(--space-large);
}
.form-group{
    display: flex;
    align-items: center;
    gap: var(--space-normal);
    text-align: left;
    margin-bottom: var(--space-large);
}
.form-group:last-of-type{
    margin-bottom: 0;
}
.btn-group{
    display: flex;
    gap: var(--space-normal)
}
.btn-group button {
    padding: .35rem 1.4rem;
    box-sizing: border-box;
    border: 1px solid #808080;
    border-radius: .25rem;
    font-weight: var(--fw-med);
}
.btn-group button:hover{
    background-color: var(--main-color);
    color: #fff;
}
.btn-group button.clicked{
    background-color: var(--main-color);
    color: #fff;
}
/* input wrapper */
.date-input {
    position: relative;
    width: 100%;
}
/* input 기본 스타일 제거 */
.date-input input[type="date"] {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px; /* 오른쪽 아이콘 공간 */
    
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;

    font-size: 14px;
    color: #000;

    /* 기본 스타일 제거 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
/* placeholder 느낌 (date는 placeholder 안먹어서 대응) */
.date-input input[type="date"]:invalid {
    color: #aaa;
}
.form-group input[type="date"] {
    position: relative;
    width: 344px;
    padding: .35rem var(--space-small);
     font-size: var(--fs-bd1);
    border: 1px solid #808080;
    border-radius: .25rem;
    color: #808080;
    outline: none;
    box-sizing: border-box;
}
.form-group.uinfo input{
    border-radius: .25rem;
    border: 1px solid #808080;
    padding: .35rem var(--space-normal);
    box-sizing: border-box;
    width: 305px;
    font-size: var(--fs-bd2);
    /* font-weight: var(--fw-med); */
}
.form-group label{
    font-weight: var(--fw-med);
    min-width: 100px;
}
.form-group.add{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.form-group.add textarea{
    width: 956px;
    height: 268px;
    resize: none;
    border-radius: .25rem; 
    border: 1px solid #808080;
    padding-left: var(--space-normal);
    padding-top: var(--space-normal);
}
.form-group.add textarea::placeholder{
    color: #808080;
    font-size: var(--fs-bd1);
    font-weight: var(--fw-med);
}
.form-content>.checkbox-group:first-of-type{
    margin-bottom: var(--space-normal);
}
.checkbox-group{
    display: flex;
    gap: var(--space-small);
}
.checkbox-group label{
    position: relative;
    padding-left: var(--space-large);
    cursor: pointer;
    display: inline-block;
    font-size: var(--fs-bd1);
    font-weight: var(--fw-med);
}
.checkbox-group label span{
    color: var(--main-color);
}
.checkbox-group input{
    display: none;
}
.checkbox-group label::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid #808080;
    border-radius: .25rem;
    background:#fff;
    transition: all 0.2s;
}
.checkbox-group input:checked + label::before{
    background: var(--main-color);
    border-color: var(--main-color);
}
/* 체크 아이콘 */
.checkbox-group input:checked + label::after{
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}
.popup-controler {
    display: flex;
    gap: var(--space-normal);
    justify-content: center;
}
.popup-controler button{
    background-color: var(--main-color);
    color: #fff;
    width: 332px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .25rem;
    margin-top: var(--space-x-large);
    font-size: var(--fs-h2);
}
.popup-controler button.btn-cancel{
    background-color: #fff;
    border: 1px solid var(--main-color);
    color: #000;
}
.recomend-item h1{
    margin-bottom: var(--space-large);
    text-align: center;
}
.reco-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: var(--space-normal);
}
.reco-list>li{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.reco-list figure{
    background-color: var(--cb-color-0);
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: var(--space-normal);
}
.reco-list figure img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sale-badge{
    position: absolute;
    left: 1rem;
    top: 1rem;
    background-color: var(--main-color);
    border-radius: 50%;
    width: 4.2rem;
    height: 4.2rem;
    color: #fff;
    font-size: var(--fs-h2);
    display: flex;
    justify-content: center;
    align-items: center;
}
.amount-option{
    display: flex;
    justify-content: center;
    gap: var(--space-x-small);
    margin-bottom: var(--space-normal);
    cursor: pointer;
}
.amount-option>span{
    border: 1px solid #BABABA;
    padding: var(--space-x-small) var(--space-normal);
    box-sizing: border-box;
    color: #BABABA;
}
.amount-option>span.selected{
    border: 1px solid #000;
    padding: var(--space-x-small) var(--space-normal);
    box-sizing: border-box;
    color: #000;
}
.pro-desc>p:first-of-type{
    margin-bottom: var(--space-small);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pro-desc>p:last-of-type{
    margin-bottom: var(--space-normal);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pro-price{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-small);
}
.pro-price .rp-sale{
    font-size: var(--fs-h4);
}
.pro-price .original{
    color: #BABABA;
    text-decoration: line-through;
}





/* ---------------- */
/* 반응형 대응 코드 */
@media (max-width: 1440px){
    main{
        padding-top: 90px;
    }
    .service-for ul li {
        width: 100%;
        height: auto;
        padding-bottom: var(--space-normal);
    }
    .consulting-contents ul li{
        padding-bottom: var(--space-normal);
    }
    .consulting-contents ul li figure {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    .service-process ul li {
        height: auto;
        padding-bottom: var(--space-normal);
    }
    .service-process ul li figure {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    .service-benefit ul li {
        width: 100%;
        height: auto;
    }
    .service-why ul {
        width: auto;
        gap: var(--space-3x-large);
    }
    .popup {
        width: auto;
        /* height: 100vh; */
        left: 2rem;
        top: 2rem;
        right: 2rem;
        transform: initial;
        /* margin: 2rem; */
        bottom: 2rem;
        height: initial;
    }
    .form-box>h4 {
        width: auto;
    }
    .form-inner {
        width: auto;
        padding: 2rem;
    }
    .form-group.add textarea {
        width: 100%;
    }
}



@media (max-width: 768px){
    main{
        padding-top: 65px;
    }
    .banner{
        width: 100%;    
        height: 100%;
        margin-bottom: var(--space-3x-large);
    }
    .reco-list {
        grid-template-columns: repeat(2,1fr);
        gap: 4rem 1rem;
    }
    .reco-list>li{
        min-width: 0;
    }
    .amount-option>span.selected {
        padding: var(--space-x-small) var(--space-small);
    }
    .amount-option>span {
        padding: var(--space-x-small) var(--space-small);
    }
    .consulting-contents ul {
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }
    .service-why ul {
        grid-template-columns: repeat(3,auto);
        gap: var(--space-normal);
    }
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-group button {
        padding: 0.35rem .5rem;
        text-align: center;
    }
    .form-group input[type="date"] {
        width: 100%;
       
    }
    .form-group.uinfo input {
        width: 100%;
    }
    .popup-controler button {
        width: 100%;
        height: auto;
        padding: .5rem;
    }
    .btn-personal-apply button {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .popup {
        left: 1rem;
        top: 1rem;
        right: 1rem;
        bottom: 1rem;
    }


}


@media (max-width: 500px){
    .sale-badge {
        width: 2.5rem;
        height: 2.5rem;
        font-size: var(--fs-bd2);
    }
    
}


@media (max-width: 300px){
    .pro-price {
        flex-direction: column;
    }
    
}