
#myModal.modal_custom {

}

#myModal.modal_custom .modal-dialog {
    width: 560px !important;
}

#myModal.modal_custom .modal-content {
    border-radius: 15px;
    max-height: 85vh; 
    overflow-y: scroll;
    /* 스크롤바 안보이게 */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

/* 모달 헤더 */
#myModal.modal_custom .modal-content .modal-header {
    text-align: center;
    padding: 54px 60px 54px 60px;
    border-bottom: none;
}

#myModal.modal_custom .modal-content .modal-header h4 {
    font-size: 17px;
    color: #5d5d5d;
    font-weight: 400;
    line-height: 30px;
}

#myModal.modal_custom .modal-content .modal-header .info_box ul {
    display: flex;
    gap:21px;
    margin-top: 25px;
}

#myModal.modal_custom .modal-content .modal-header .info_box ul li{
    display: flex;
    font-size: 16px;
    gap:0 12px;
    color: #5d5d5d;
    font-weight: 400;
    padding-left: 25px;
    position: relative;
}

#myModal.modal_custom .modal-content .modal-header .info_box ul li:nth-child(2) {
    gap:0 16px;
}


#myModal.modal_custom .modal-content .modal-header .info_box ul li::before {
    content: "";
    display: block;
    position: absolute;
    top: 1px;
    left: 0;
    width: 20px;
    height: 17px;
}

#myModal.modal_custom .modal-content .modal-header .info_box ul li.tel::before {
    background: url(./img/Q_tel.png) no-repeat center center;
    left: 5px;
}

#myModal.modal_custom .modal-content .modal-header .info_box ul li.email::before {
    background: url(./img/Q_email.png) no-repeat center center;
    
}

/* 모달 바디 */
#myModal.modal_custom .modal-content .modal-body {
    padding: 0 40px;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box {
    margin-bottom: 25px;
}



#myModal.modal_custom .modal-content .modal-body .inquiry_box > label,
#myModal.modal_custom .modal-content .modal-body .inquiry_box .display_box > label {
    color: #5d5d5d;
    margin-bottom: 13px;
    font-size: 16px;
    font-weight: 400;
    width: auto;
    position: relative;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box > label .nec,
#myModal.modal_custom .modal-content .modal-body .inquiry_box .display_box > label .nec{
    position: absolute;
    width: 4px;
    height: 4px;
    top: 3px;
    right: -6px;
	border-radius:50%;
	background:var(--main-point-color-hover);
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box > .answer {
    float: none;
    width: 100%;
    position: relative;
}
#myModal.modal_custom .modal-content .modal-body .inquiry_box .answer input {
    width: 100%;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    background-color: white;
    padding: 17px 20px;
}


#myModal.modal_custom .modal-content .modal-body .inquiry_box input:focus {
    border: 1px solid var(--main-point-line-color-hover);
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box input::placeholder {
    color: #999999;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box input:focus::placeholder {
    color: #5d5d5d;
}

/* 분류 */
#myModal.modal_custom .modal-content .modal-body .inquiry_box input + .wr_img {
    position: absolute;
    top: 0;
    right: 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box .wr_drop {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 10px 21px;
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 2;
    display: none;
    text-align: center;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box .wr_drop li {
    color: #5d5d5d;
    font-size: 16px;
    line-height: 38px;
    cursor: pointer;
    border-radius: 8px;
}
#myModal.modal_custom .modal-content .modal-body .inquiry_box .wr_drop li:hover {
    background-color: #f5f5f5;
    
}

/* 불편사항 */

#myModal.modal_custom .modal-content .modal-body .type_radioBox {
    display: grid;
    grid-template-columns: repeat(3, auto); /* 한 줄에 최대 3개 */
    gap: 14px 25px; /* 행/열 간격 조정 */
    justify-content: start; /* 왼쪽 정렬 유지 */
}


#myModal.modal_custom .type_radioBox input[type="checkbox"] {
    display: none;
}


#myModal.modal_custom .type_radioBox label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    transition: all 0.25s ease;
}


#myModal.modal_custom .type_radioBox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background-color: #fff;

}
#myModal.modal_custom .type_radioBox > div:hover label::before {
    border: 1px solid var(--main-point-color-hover);
    background-color: #f1f5ff;
}

#myModal.modal_custom .type_radioBox input:checked + label {
    color: #5d5d5d;
}

#myModal.modal_custom .type_radioBox input:checked + label::before {
    border: 1px solid var(--main-point-color-hover);
    background: url('./img/radio_check.png') no-repeat 40% center;
    background-color: var(--main-point-color-hover);
}

/* 프로젝트 타입 */
#myModal.modal_custom .project_box input[type="checkbox"] {
    display: none;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box .display_box {
    display: flex;
    gap: 16px;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box .display_box p {
    font-size: 16px;
    color: #999999;
}

#myModal.modal_custom .project_box .estimate_radioBox {
    display: flex;
    gap: 7px;
    height: 90px;
}

#myModal.modal_custom .project_box .estimate_radioBox > div {
  
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#myModal.modal_custom .project_box .estimate_radioBox > div > label {
    border-radius: 10px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    color: #999999;
    font-size: 14px;
    transition: all 0.3s ease;
}

#myModal.modal_custom .project_box .estimate_radioBox > div > input:checked + label {
    background-color: var(--main-point-color-hover);
    color: white;
}

/* 서비스유형 */

#myModal.modal_custom .type_radioBox.service input[type="radio"] {
    display: none;
}

#myModal.modal_custom .type_radioBox.service label::before {
    border-radius: 50%;
}

/* 상담 방법 */
#myModal.modal_custom .contact_box input[type="radio"] {
    display: none;
}

#myModal.modal_custom .contact_box .estimate_radioBox {
    display: grid;
    grid-template-columns: repeat(2, auto); /* 한 줄에 최대 3개 */
    gap: 10px; /* 행/열 간격 조정 */
}
#myModal.modal_custom .contact_box .estimate_radioBox > div {
    text-align: center;
    width: 100%;
}

#myModal.modal_custom .contact_box .estimate_radioBox > div > label {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 16px 0;
    font-size: 15px;
    color: #999999;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#myModal.modal_custom .contact_box .estimate_radioBox > div > input:checked + label {
    border: 1px solid var(--main-point-color-hover);
    color: var(--main-point-color-hover);
}

/* 접수일 */
#myModal.modal_custom .inquiry_box .date_box.answer {
    display: flex;
    cursor: pointer;
}

#myModal.modal_custom .inquiry_box .date_box.answer .btn_date {
    border-radius: 10px;
    font-size: 15px;
    color: #5d5d5d;
    background-color: #f5f5f5;
    min-width: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    cursor: pointer;
}

/* 캘린더 */

 .custom-datepicker {
    background: white;
    border: 1px solid #f1f1f1;
    padding: 22px 25px;
    font-family: 'Pretendard', sans-serif;
    border-radius: 20px;
    width: 360px;
    box-shadow: 0px 6px 23px rgba(0, 0, 0, 0.06);
  }

  .custom-datepicker .ui-datepicker-header {
    display: flex;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .custom-datepicker .ui-datepicker-header .ui-datepicker-title {
    order: 1;
    flex-grow: 1;
    text-align: left;
    display: flex;
    gap: 10px;
  }
  .custom-datepicker .ui-datepicker-header .ui-datepicker-title .ui-datepicker-month,
  .custom-datepicker .ui-datepicker-header .ui-datepicker-title .ui-datepicker-year {
    background-color: #f5f5f5;
    border-radius: 10px;
    width: 90px;
    height: 36px;
    color: #5d5d5d;
    font-size: 14px;
    padding: 0 10px;
  }

  .custom-datepicker .ui-datepicker-header .ui-datepicker-title .ui-datepicker-month {
    order: 2;
 
  }

  .custom-datepicker .ui-datepicker-header .ui-datepicker-title .ui-datepicker-year {
    order: 1;

  }

  .custom-datepicker .ui-datepicker-prev,
  .custom-datepicker .ui-datepicker-next {
    position: relative;
    order: 2;
    width: 13px;
    height: 13px;
    background: url(./img/date_arrow.png) no-repeat center center;
    background-size: contain;
    cursor: pointer;
    margin-left: 8px;
  }

  .custom-datepicker .ui-datepicker-header .ui-datepicker-prev {
    transform: rotate(180deg);
  }


  .custom-datepicker .ui-datepicker-header .ui-datepicker-prev.ui-state-disabled,
  .custom-datepicker .ui-datepicker-header .ui-datepicker-next.ui-state-disabled {
  opacity: 0.3; /* 흐릿하게 */
  pointer-events: none;
  filter: grayscale(100%) brightness(1.2); /* 색상도 무채색으로 */
 }

  .custom-datepicker .ui-datepicker-calendar {
    margin-top: 20px;
    width: 100%;
 }

 .custom-datepicker .ui-datepicker-calendar thead tr th {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding-bottom: 11px; /* 요거 추가 */
 }

 .custom-datepicker .ui-datepicker-calendar td {
    text-align: center;
    font-size: 15px;
    width: 42px;
    height: 42px;
 }

 .custom-datepicker .ui-datepicker-calendar td.ui-state-disabled {
    color: #999999;
 }
  

  .custom-datepicker .ui-datepicker-calendar td .ui-state-highlight {
    background: var(--main-point-color-hover);
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  

  .custom-datepicker .ui-datepicker-buttonpane {
    display: flex;
    justify-content: space-between;
    height: 45px;
    margin-top: 18px;
  }
  
  .custom-datepicker .ui-datepicker-buttonpane button {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
 
  }
  .custom-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
    order: 2;
    background-color: #e1efff;
    color: var(--main-point-color-hover);
    width: 200px;
  }
  .custom-datepicker .ui-datepicker-buttonpane button.ui-datepicker-close {
    order: 1;
    background-color: #f5f5f5;
    color: #5d5d5d;
    width: 90px;
  }
/* 상세내용 */
#myModal.modal_custom .answer_content textarea {
    border-radius: 10px !important;
    border: 1px solid #e1e1e1;
    font-size: 15px;
    line-height: 28px;
    padding: 11px 18px;
    min-height: 198px;
    overflow-y: auto;
    white-space: pre-wrap; 
    word-wrap: break-word;
}

#myModal.modal_custom .answer_content textarea::placeholder {
    color: #999999;
}

/* 첨부파일 */
#myModal.modal_custom .answer.file {
    display: flex;
    flex-direction: column;
}
#myModal.modal_custom .answer.file .file_input {
    width: 100%; 
}
#myModal.modal_custom .answer.file .file_input table {
    width: 100%; 
}
#myModal.modal_custom .answer.file .file_input .file_content {
    display: flex;
	margin-bottom: 12px;
}

#myModal.modal_custom .inquiry_box .answer .file_input .row .file_content > label {
    order: 2;
    width: 130px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 15px;
    color: #5d5d5d;
    margin-left: 10px;
	height: 55px;
	line-height:55px;

}
#myModal.modal_custom .answer.file .file_input .left_file input {
    display: none;
}
#myModal.modal_custom .inquiry_box .answer .file_input .row .file_content > div.right_file {
	width: calc(100% - 140px) ;
    order: 1;
}

#myModal.modal_custom .answer.file .file_control {
    display: flex;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
}
#myModal.modal_custom .answer.file .file_control .files_p {
    font-size: 15px;
    color: #999999;
}

#myModal.modal_custom .answer.file .file_control .form-control-static {
    display: flex;
    gap:5px;
}

/*  개인정보처리방침 */

#myModal.modal_custom .modal-content .check-box {
    border-bottom: none;
    padding: 0;
}

#myModal.modal_custom .modal-content .check-box .privacy_box {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 15px 15px 0 15px;
    margin-bottom: 10px;
    height: 100px;
    overflow: hidden;
}

#myModal.modal_custom .modal-content .privacy_box .privacy {
    height: 100%;
    overflow-y: scroll;
}

#myModal.modal_custom .modal-content .check-input + label:after {
    width: 18px;
    height: 18px;
    background: url(./img/search_ch_off_1.png) no-repeat 0 0;
}

#myModal.modal_custom .modal-content .check-input:checked + label:after {
    background: url(./img/search_check_on_1.png) no-repeat 0 0;
}

/* 자동등록방지 */
#myModal.modal_custom .modal-content .well_box .well {
    background-color: white;
    border: none;
    box-shadow: none;
    padding: 0;
}

#myModal.modal_custom .modal-content .well_box .well #modal_captcha .captcha_imgbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 55px;
    border:  1px solid #e1e1e1;
    border-radius: 10px;
}

#myModal.modal_custom .modal-content .well_box .well #modal_captcha .captcha_imgbox #modal_captcha_img {
    width: auto;
    height: 100%;
    border: none;
}

#myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_key {
    width: 220px;
    height: 55px;
    border:  1px solid #e1e1e1;
    border-radius: 10px;
}
#myModal.modal_custom .modal-content .well_box .well #modal_captcha_info {
    display: flex;
    margin-top: 15px;
    text-align: left;
    color: #5d5d5d;
}

#myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_mp3,
#myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_reload {
    top: 5px;
    left: 228px;
    width: 21px;
    height: 21px;
}

#myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_reload {
    top: 26px;
    background-size: 100%;
    background-position: 0 -21px;
}

#myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_mp3 span {
    width: 21px;
    height: 21px;
    background-size: 100%;
}

/* 모달 푸터 */
#myModal.modal_custom .modal-footer {
    border-top: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    padding: 0;
    padding-top: 15px;
    padding-bottom: 37px;
}

#myModal.modal_custom .modal-footer button {
    width: 130px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 15px;
}

#myModal.modal_custom .modal-footer .btn_close {
    background-color: #e8e8e8;
    color: #5d5d5d;
}

#myModal.modal_custom .modal-footer .btn_submit {
    background-color: var(--main-point-color-hover);
    color: white;
}


/* 251010 검수 중 추가사항 */
#myModal.modal_custom  .in_box .inquiry_txt {
	margin-top: 14px;
}

#myModal.modal_custom  .in_box .inquiry_txt span {
	font-size: 15px;
	font-weight: 400;
	color:var(--main-point-color-hover);
}

#myModal.modal_custom .flex-box {
    margin-bottom: 29px;
}

#myModal.modal_custom .radio_box {
	margin-bottom: 29px;
}

#myModal.modal_custom .file_box {
	margin-bottom: 23px;
}

#myModal.modal_custom .modal-content .modal-body .inquiry_box .answer .file_input .row .file_content > div.right_file input {
	border:1px solid #dcdcdc;
	border-radius: 7px;
	font-size: 15px;
	height: 55px;
	line-height:55px;
}

#myModal.modal_custom .modal-content .check-box .check-label {
	font-size: 15px;
} 

@media (max-width: 991px) { 
    #myModal.modal_custom .modal-dialog {
        width: 90% !important;
        top: 40%;
        left: 50%;
    }

    #myModal.modal_custom .modal-content .modal-body {
        padding: 0 25px;
    }

    #myModal.modal_custom .modal-content {
        border-radius: 22px;
    }

    #myModal.modal_custom .modal-content .modal-header {
        position: relative;
        padding: 40px 0 50px;
    }

    #myModal.modal_custom .modal-content .modal-header::before {
        content: "";
        position: absolute;
        top: 13px;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 4px;
        border-radius: 2px;
        background-color: #e1e1e1;
    }

    #myModal.modal_custom .modal-content .modal-header h4 {
        font-size: 15px;
        font-weight: 500;
        line-height: 24px;
    }
    
    #myModal.modal_custom .modal-content .modal-header .info_box ul {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap:10px;
        margin-top: 20px;
    }

    #myModal.modal_custom .modal-content .modal-header .info_box ul li {
        font-size: 13px;
    }

    #myModal.modal_custom .modal-content .modal-body .inquiry_box > label,
    #myModal.modal_custom .modal-content .modal-body .inquiry_box .display_box > label {
        margin-bottom: 13px;
        font-size: 14px;
        font-weight: 500;
    }

    #myModal.modal_custom .modal-footer {
        position: sticky;
        bottom: 0;
        padding: 25px;
        background-color: #fff;
    }

    #myModal.modal_custom .modal-content .modal-header .info_box ul li::before {
        top: 0;
        width: 18px;
        height: 15px;
    }   

    #myModal.modal_custom .modal-content .modal-body .inquiry_box .answer input {
        padding: 12px 15px;
        font-size: 13px;
        border-radius: 4px;
    }

    #myModal.modal_custom .modal-content .modal-body .inquiry_box input + .wr_img {
        height: 41px;
    }

    #myModal.modal_custom .modal-content .modal-body .inquiry_box input + .wr_img img {
        width: 10px;
    }

    #myModal.modal_custom .answer_content textarea {
        font-size: 13px;
        border-radius: 4px !important;
    }

    #myModal.modal_custom .modal-content .check-box .privacy_box {
        border-radius: 4px;
        padding: 15px 5px 0 15px;
    }

    #myModal.modal_custom .modal-footer button {
        width: calc((100% - 10px) / 2);
        border-radius: 4px;
    }

    #myModal.modal_custom .modal-content .well_box .well #modal_captcha_info {
        font-size: 13px;
    }

    #myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_key,
    #myModal.modal_custom .modal-content .well_box .well #modal_captcha .captcha_imgbox {
        border-radius: 4px;
        height: 45px;
    }

    #myModal.modal_custom .modal-content .well_box .well #modal_captcha_info {
        color: #999999;
    }
    
    #myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_mp3,
    #myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_reload {
        top: 0;
        left: 115px;
    }
    
    #myModal.modal_custom .modal-content .well_box .well #modal_captcha #modal_captcha_reload {
        top: 21px;
    }
}