
/* ==============================
   PC 하단 상담 신청 폼
============================== */
@media (min-width: 992px) {
    #s202607229e9ef11b5792c {
        position: fixed !important;
        bottom: 24px !important;
        left: 0 !important;
        right: 0 !important;

        width: calc(100% - 40px) !important;
        max-width: 1360px !important;
        margin: 0 auto !important;
        padding: 12px 24px 12px 12px !important;

        z-index: 9999 !important;
        overflow: visible !important;
        box-sizing: border-box !important;

        background-color: #ffffff !important;
        border: 1.5px solid rgba(0, 0, 0, 0.05) !important;
        border-radius: 14px !important;
    }
}

/* ==============================
   접수 완료 및 오류 알림
============================== */
#input_form_complete_modal_w2026072228455e0be02b9,
#input_form_error_modal_w2026072228455e0be02b9 {
    position: fixed !important;
    inset: 0 !important;

    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;

    z-index: 1000001 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;

    transform: none !important;
    background: rgba(0, 0, 0, 0.22) !important;
}

#input_form_complete_modal_w2026072228455e0be02b9 .modal-dialog,
#input_form_error_modal_w2026072228455e0be02b9 .modal-dialog {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    display: block !important;

    /* 모바일 화면 좌우 각각 48px 여백 */
    width: calc(100% - 96px) !important;
    min-width: 0 !important;
    max-width: 300px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
    transform: translate(-50%, -50%) !important;
}

#input_form_complete_modal_w2026072228455e0be02b9 .modal-content,
#input_form_error_modal_w2026072228455e0be02b9 .modal-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22) !important;
}

#input_form_complete_modal_w2026072228455e0be02b9 .container-fluid,
#input_form_error_modal_w2026072228455e0be02b9 .container-fluid {
    padding: 28px 22px !important;
}

#input_form_complete_modal_w2026072228455e0be02b9 p,
#input_form_error_modal_w2026072228455e0be02b9 p {
    margin: 0 !important;

    color: #071733 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

#input_form_complete_modal_w2026072228455e0be02b9 .btn-group-justified,
#input_form_error_modal_w2026072228455e0be02b9 .btn-group-justified {
    display: flex !important;
    width: 100% !important;
}

#input_form_complete_modal_w2026072228455e0be02b9 .btn-group-justified:empty,
#input_form_error_modal_w2026072228455e0be02b9 .btn-group-justified:empty {
    display: none !important;
}

#input_form_complete_modal_w2026072228455e0be02b9 .btn-group-justified .btn,
#input_form_error_modal_w2026072228455e0be02b9 .btn-group-justified .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 18px !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: #071733 !important;

    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* ==============================
   아임웹 내부 여백 제거
============================== */
#s202607229e9ef11b5792c main,
#s202607229e9ef11b5792c .inside,
#s202607229e9ef11b5792c .doz_row,
#s202607229e9ef11b5792c .col-dz,
#s202607229e9ef11b5792c .col-dz-12,
#s202607229e9ef11b5792c ._widget_data,
#s202607229e9ef11b5792c .form-widget,
#s202607229e9ef11b5792c ._form-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 입력폼과 버튼 가로 정렬 */
#s202607229e9ef11b5792c .deadline-opacity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#s202607229e9ef11b5792c form {
    display: flex !important;
    flex: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;

    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#s202607229e9ef11b5792c .form.text-center {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 입력 필드 */
#s202607229e9ef11b5792c .form-group {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 진료과목 */
#s202607229e9ef11b5792c #select_1z2lEcLJ0r {
    order: 1 !important;
    flex: 0.8 !important;
}

/* 이름 */
#s202607229e9ef11b5792c #input_aa923d19f1629 {
    order: 2 !important;
    flex: 1 !important;
}

/* 연락처 */
#s202607229e9ef11b5792c #input_ee51941efe465 {
    order: 3 !important;
    flex: 1 !important;
}

/* 내용 */
#s202607229e9ef11b5792c #textarea_8e1a3d986a317 {
    order: 4 !important;
    flex: 2 !important;
}

/* 개인정보 */
#s202607229e9ef11b5792c #privacy {
    order: 5 !important;
    flex: 0 0 auto !important;

    margin: 0 0 0 -12px !important;
    padding: 0 !important;
    transform: translateY(-1px) !important;
}

#s202607229e9ef11b5792c #privacy .form-control {
    display: none !important;
}

#s202607229e9ef11b5792c label.control-label {
    display: none !important;
}

#s202607229e9ef11b5792c .form-select-wrap {
    width: 100% !important;
}

/* 입력칸 디자인 */
#s202607229e9ef11b5792c input.form-control,
#s202607229e9ef11b5792c select.form-control,
#s202607229e9ef11b5792c textarea.form-control {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;

    box-sizing: border-box !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    outline: none !important;

    background-color: #ffffff !important;
    box-shadow: none !important;

    color: #1a1a1a !important;
    font-size: 14px !important;
}

#s202607229e9ef11b5792c input.form-control::placeholder,
#s202607229e9ef11b5792c textarea.form-control::placeholder {
    color: #9a9a9a !important;
}

#s202607229e9ef11b5792c textarea.form-control {
    padding-top: 13px !important;
    resize: none !important;
    overflow: hidden !important;
}

/* 개인정보 체크박스 */
#s202607229e9ef11b5792c .checkbox-styled {
    margin: 0 !important;
    padding: 0 !important;
}

#s202607229e9ef11b5792c .checkbox-styled label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;

    margin: 0 !important;

    color: #555555 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#s202607229e9ef11b5792c .checkbox-styled input[type="checkbox"] {
    position: relative !important;
    top: 0 !important;

    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;

    flex-shrink: 0 !important;
}

#custom_privacy_link {
    margin-left: 0 !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}

/* PC 상담 신청 버튼 */
#s202607229e9ef11b5792c a.btn._input_form_submit,
#s202607229e9ef11b5792c ._input_form_submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 44px !important;
    margin: 0 0 0 20px !important;
    padding: 0 50px !important;

    border: none !important;
    border-radius: 10px !important;
    background-color: #071733 !important;

    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    cursor: pointer !important;
}

#s202607229e9ef11b5792c a.btn._input_form_submit:hover,
#s202607229e9ef11b5792c ._input_form_submit:hover {
    background-color: #0d2a55 !important;
    color: #ffffff !important;
}

/* ==============================
   개인정보 내용 팝업
============================== */
#custom_privacy_modal {
    position: fixed;
    inset: 0;
    z-index: 1000002;

    display: none;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;
    background: rgba(0, 0, 0, 0.6);
}

#custom_privacy_content {
    display: flex;
    flex-direction: column;

    width: calc(100% - 48px);
    max-width: 500px;
    max-height: 80vh;
    padding: 25px;

    box-sizing: border-box;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#custom_privacy_text {
    flex: 1;
    margin-bottom: 20px;
    padding-right: 10px;
    overflow-y: auto;

    color: #444444;
    font-size: 13px;
    line-height: 1.6;
}

#custom_privacy_close {
    padding: 12px;

    border: none;
    border-radius: 8px;
    background: #111111;

    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* 태블릿 및 모바일에서 PC 폼 숨김 */
@media (max-width: 991px) {
    #s202607229e9ef11b5792c {
        display: none !important;
    }
}

/* ==============================
   모바일 상담 버튼 및 모달
============================== */
#mobile_consult_trigger,
#mobile_consult_backdrop,
#mobile_consult_close {
    display: none;
}

/* 이전 코드의 PC 흰색 상담 버튼 숨김 */
.floating-banner .mobile-consult-trigger {
    display: none !important;
}

/* PC에서 모바일 요소 강제 숨김 */
@media (min-width: 769px) {
    #mobile_consult_trigger,
    #mobile_consult_backdrop,
    #mobile_consult_close {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /*
      모바일 가로 넘침 방지
      clip을 지원하지 않으면 hidden 적용
    */
    html,
    body,
    #doz_wrap,
    .doz_sys,
    body.modal-open {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        overflow-x: hidden !important;
        overflow-x: clip !important;
        overscroll-behavior-x: none !important;
        box-sizing: border-box !important;
    }

    body.modal-open {
        padding-right: 0 !important;
    }

    .floating-banner {
        display: none !important;
    }

    /* 모바일 상담 이미지 버튼 */
    #mobile_consult_trigger {
        position: fixed;
        top: 55%;
        right: 0;
        z-index: 99990;

        display: block;

        width: 62px;
        min-width: 62px;
        max-width: 62px;
        height: 62px;
        margin: 0;
        padding: 0;

        overflow: hidden;
        border: 0;
        border-radius: 6px 0 0 6px;
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(7, 23, 51, 0.18);

        transform: translateY(-50%);
        cursor: pointer;
    }

    #mobile_consult_trigger.is-hidden {
        display: none !important;
    }

    #mobile_consult_trigger img {
        display: block;

        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 62px !important;

        border-radius: 6px 0 0 6px;
        object-fit: cover;
    }

    /* 기존 모바일 질환 버튼 아래에 배치 */
    .m-rect-float #mobile_consult_trigger {
        position: relative;
        top: auto;
        right: auto;

        align-self: flex-end;
        flex: 0 0 62px;

        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 62px !important;
        margin: 4px 0 0;

        border-radius: 6px 0 0 6px;
        transform: none;
    }

    /* 상담 모달 배경 */
    #mobile_consult_backdrop.is-open {
        position: fixed;
        inset: 0;
        z-index: 999998;

        display: block;
        overflow: hidden;

        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    /* iOS 본문 스크롤 고정 */
    body.mobile-consult-lock {
        position: fixed !important;
        top: var(--mobile-consult-scroll-top, 0px) !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;

        overflow: hidden !important;
        overflow-x: hidden !important;
        touch-action: none;
    }

    /* 상담 신청 모달 */
    #s202607229e9ef11b5792c.mobile-consult-open {
        position: fixed !important;
        top: 50% !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        z-index: 999999 !important;

        display: block !important;

        /* 좌우 각각 24px 여백 */
        width: calc(100% - 48px) !important;
        min-width: 0 !important;
        max-width: 390px !important;
        max-height: calc(100vh - 48px) !important;

        margin: 0 !important;
        padding: 58px 18px 18px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;

        border: 1px solid rgba(7, 23, 51, 0.08) !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;

        transform: translate(-50%, -50%) !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open::before {
        content: "빠른 상담 신청";

        position: absolute;
        top: 20px;
        left: 18px;

        color: #071733;
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
    }

    #s202607229e9ef11b5792c.mobile-consult-open .section_bg,
    #s202607229e9ef11b5792c.mobile-consult-open .section_bg_color {
        display: none !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open main {
        position: relative !important;
        z-index: 1 !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open .deadline-opacity {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;

        width: 100% !important;
        min-width: 0 !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open form {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;

        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open .form-group {
        flex: 0 0 auto !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /*
      iPhone Safari는 입력 글자가 16px 미만이면
      자동으로 화면을 확대하므로 16px로 고정
    */
    #s202607229e9ef11b5792c.mobile-consult-open input.form-control,
    #s202607229e9ef11b5792c.mobile-consult-open select.form-control,
    #s202607229e9ef11b5792c.mobile-consult-open textarea.form-control {
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open textarea.form-control {
        height: 86px !important;
        min-height: 86px !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open #privacy {
        width: 100% !important;
        margin: 2px 0 0 !important;
        transform: none !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open .checkbox-styled label {
        line-height: 1.35 !important;
        white-space: normal !important;
    }

    #s202607229e9ef11b5792c.mobile-consult-open .form.text-center {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    /* 모바일 상담신청 버튼 */
    #s202607229e9ef11b5792c.mobile-consult-open a.btn._input_form_submit,
    #s202607229e9ef11b5792c.mobile-consult-open ._input_form_submit {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 0 20px !important;

        box-sizing: border-box !important;
        transform: none !important;
    }

    /* 상담 모달 닫기 버튼 */
    #mobile_consult_close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 3;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;

        border: 0;
        border-radius: 50%;
        background: #f1f3f6;

        color: #071733;
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
    }
}
