@charset "utf-8";

#formmail-write2 {max-width: 1080px; width: 100%; background: #f7f7f7; margin: 0 auto; border-radius: 20px; padding: 80px 0;}
#formmail-write2 .form-body {max-width: 680px; width: 100%; margin: 0 auto;}
#formmail-write2 .box-wrap {display: flex;  margin-bottom: 22px;}
#formmail-write2 .box-wrap:last-child {margin-bottom: 45px;}
#formmail-write2 .box-wrap h2 {font-size: var(--fs17); font-weight: 600; width: 150px; margin-top: 15px;}
#formmail-write2 .box-wrap .star {font-size: var(--fs17); font-weight: 700; color: #e50000;}
#formmail-write2 .box-wrap .box {width: 100%; }
#formmail-write2 .box-wrap .box input {font-size: var(--fs15);  line-height: 46px; padding-left: 15px; border-radius: 5px; border: 1px solid #cecece;}
#formmail-write2 .box-wrap .box input::placeholder {font-size: var(--fs15); color: #a8a8a8;}
#formmail-write2 .box-wrap .box select {font-size: var(--fs15); color: #a8a8a8; height: 46px; width: 100%; padding-left: 15px; border-radius: 5px; border: 1px solid #cecece;}
#formmail-write2 .box-wrap .name-box input {width: 100%;}
#formmail-write2 .box-wrap .ph-box {display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;}
#formmail-write2 .box-wrap .ph-box select {color: #666; font-size: var(--fs17);}
#formmail-write2 .box-wrap .ph-box input{width: 100%;}
#formmail-write2 textarea {width: 100%; padding: 15px; border-radius: 5px; border: 1px solid #cecece;font-size: var(--fs15);}
#formmail-write2 textarea::placeholder {font-size: var(--fs15); color: #a8a8a8;}
#formmail-write2 .box-wrap .ra-box {line-height: 46px; display: flex; gap: 0 24px; flex-wrap: nowrap;}
#formmail-write2 .box-wrap .ra-box label {font-size: var(--fs18); color: #666; display: flex; align-items: center;}

#formmail-write2 .consent {padding-top: 45px;  border-top: 1px solid #e7e7e7;}
#formmail-write2 .consent .txt_wrap {border-radius: 5px; border: 1px solid #cecece;overflow-y: scroll; padding: 25px 20px; height: 180px; background: #fff; }
#formmail-write2 .consent .txt_wrap p {color: #242424; font-size: var(--fs15); line-height: 1.5;}
#formmail-write2 .consent .privacy-of-use-check label {font-weight: 500; }

#formmail-write2 .privacy-of-use-check {margin-top: 30px;}
#formmail-write2 .privacy-of-use-check label {font-size: var(--fs17); color: #242424;}

#formmail-write2 .form-footer {margin-top: 80px;}
#formmail-write2 .form-footer button {width: 100%; background: var(--c1); color: #fff; font-size: var(--fs18); font-weight: 700; line-height: 55px; border: none; border-radius: 5px;}

.radio-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 5px;
    cursor: pointer;
}

/* Radio Input */
.radio-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #b2b2b2;
    position: relative;
    transition: 0.3s;
    
}

.radio-btn span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    transition: 0.6s;
    transform: scale(0);
}

.radio-btn input {
    display: none;
}

.radio-btn input:checked~span {
    background-color: #2f58a8;
}

.radio-btn input:checked~span::before {
    transform: scale(1);
}

/* 체크박스 기본 스타일 제거 및 커스텀 설정 */
#formmail-write2 .consent .privacy-of-use-check input[type="checkbox"].required {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    background: #d9d9d9;
    /* 체크 전 배경 */
    border-radius:2px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

/* 항상 체크 표시가 보이도록 설정 */
#formmail-write2 .consent .privacy-of-use-check input[type="checkbox"].required::after {
    content: '✓';
    color: white;
    /* 체크 전에도 흰색 */
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 체크된 상태일 때 배경색만 변경 */
#formmail-write2 .consent .privacy-of-use-check input[type="checkbox"].required:checked {
    background-color: var(--c1);
    /* 원하는 포인트 색상 */
}


#formmail-write2 .select-wrap {
    position: relative;
    display: inline-block;
}

#formmail-write2 .select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 10px 40px 10px 10px;
    /* 오른쪽 여백 확보 */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

/* 삼각형 */
#formmail-write2 .select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #4b4b4b;
    /* 색상 조정 가능 */
    pointer-events: none;
}

@media all and (max-width: 1400px){}
@media all and (max-width: 1200px){}
@media all and (max-width: 1024px){
}
@media all and (max-width: 900px){}
@media all and (max-width: 850px){
    #formmail-write2 {padding: 60px 20px;}
    #formmail-write2 .box-wrap {flex-direction: column;}
    #formmail-write2 .box-wrap h2 {margin-bottom: 15px; margin-top: 0;}
    #formmail-write2 .box-wrap:last-child {margin-bottom: 30px;}
    #formmail-write2 .consent {padding-top: 30px;}
    #formmail-write2 .consent .txt_wrap {height: 160px; padding: 20px;}
    #formmail-write2 .form-footer {margin-top: 40px;}
    #formmail-write2 .box-wrap .ph-box {gap: 0 5px;}
}
@media all and (max-width: 768px){}
@media all and (max-width: 650px){}
