/* 폰트는 사이트 표준 Paperlogy(제목)/Pretendard(본문)로 통일.
   해당 폰트는 new_header 에서 로컬 로드되므로 이 파일에 @font-face 선언 불필요. (2026-08-21) */
input:focus, select:focus{
    outline: none;
}

.estimate{
    padding-top: 80px;
    height: auto;
    font-family: 'Pretendard', sans-serif;
}
.estimate .error_text {
    margin: 10px 4px 0;
    font-size: 13px;
    line-height: 18px;
    color: #ff3f3f;
}
.estimate .error_text.item_style {
    position: relative;
    padding-left: 8px;
    letter-spacing: -.4px;
    margin-left: 20px;
}
.estimate .error_text.item_style::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ff3f3f;
    content: '';
}
.es_title{
    text-align: center;
}
.es_title_bg{
    width: 100%;
    /*height: 300px;
    background-color: #000;*/
    background-color: #000000d6;
    background-image: url(/resources/images/es_bg.png);
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
    height: 30rem;
    margin-top: -7rem;
    display: flex;
    align-items: flex-end;
}
.es_title_bg .inner-content{
    width: 85%;
    margin: 0 auto;
}
.es_title_bg .sitetype,.es_title_bg .sitetype a{
    color: #fff;
}
.es_title{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.inner-estimate{
    gap: 10px;
    display: flex;
    width: 85%;
    max-width: 1300px;
    margin: 0 auto ;
    flex-direction: column;
    justify-content: center;

}

.printtab{
    font-size: 10px;
    width: 100%;
    margin: 0 auto;

}
 .estimate-submit{
    padding: 3rem 0;
     width: 90%;
     margin: 0 auto;
}
.es_sub_title{
    font-size: 3.5rem;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    font-weight: bold;
    color: #3d3d3d;
    padding: 3rem 0;
}

.es_table{
    width: 100%;
    /*margin: 30px 0;*/
    text-align: left;
    font-size: 2rem;
    line-height: 3;
    border: 1px solid #000000;
    font-family: 'Pretendard', sans-serif;
}
.es_table select{
    font-size: 2rem;
    padding: 5px 24px 5px 5px;
    font-family: 'Pretendard', sans-serif;
    width: 40%;
    min-width: 200px;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url(/resources/images/ico/down_btn.png) 95.5% center no-repeat;

}
.es_table span{
    color: #0d8339;
    padding: 0 2px;
}
.es_table .es_table_row{
    border-bottom: 1px solid #000000;
    display: flex;
}
.es_table .es_table_row:nth-last-child(1){
    border-bottom:0;
}
.es_table .es_col1{
    font-weight: bold;
    padding-left: 1rem;
    width: 30%;
    max-width: 200px;
    border-right: 1px solid #000;
}
.es_table .es_col2,.es_table .es_col3, .es_table .es_col4{
    padding-left: 1rem;
    width: 70%;
    align-items: center;
}
.es_table .es_col2{
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #0d8339;
}
.es_table .es_col2 input[type="checkbox"]{
    display: none;
}
.es_table .es_col2 input[type="text"]{
    line-height: 1.5;
    font-size: 2rem;
    padding: 0 5px;
    width: 40%;
}
.es_table .es_col2 input[type="text"]::placeholder{
    color: #9b9b9b;
    font-size: 1.6rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-transition: background-color 9999s ease-out;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
}
.es_table .es_col3 input[type="radio"]{
    accent-color: #000;
    width: 1.5rem;
    height: 1.5rem;
}
.es_col2 select::-webkit-scrollbar-thumb{
    background-color: #37c06a !important;
}
.es_col2 select::-webkit-scrollbar-track {
    background-color: #37c06a !important;
}
.es_table .es_col2 label::before{
    content: '✔';
    display: inline-block;
    margin-right: 6px;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    border: 1px solid #000;
    border-radius: 3px;
    font-size: 2rem;
    color: transparent;
    transition: 0.1s;
    text-align: center;
}

.es_table .es_col2 input[type=checkbox]:checked + label::before {
    background-color: #fff;
    color: #000;
    border-color: #000;
}




.es_table .es_col3{
    display: flex;
    gap: 1.5rem;
}
.es_col3 input{
    margin: 0 5px 0 !important;
}
.es_col3 label{
    display: flex;
    align-items: center;
}
.es_small_font{
    font-size: 1.4rem;
    font-weight: 400;
    word-break: keep-all;
}
.estimate .btn_list{
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.estimate .btn_list .button-es{
    height: 2.4rem;
    font-size: 1.6rem;
    border: 1px solid #000;
    padding: 2rem;
    /* display: inline-block; */
    margin-right: 0;
    border-radius: 0.4rem;
    font-weight: 600;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    -webkit-box-shadow: 2px 2px 4px 0px rgba(122, 122, 122, 0.76);
    box-shadow: 2px 2px 4px 0px rgba(122, 122, 122, 0.76);
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    width: 17rem;
}
.es_point{
    font-size: 1.5rem;
    font-weight: 400;
    text-align: left;
    padding: 3rem 0 10rem;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
    word-break: keep-all;
    color: #0d8339;
    white-space: pre-line;
}
.es_point span{
    /*background-color: #0d8339;
    width: 0.6rem;
    height: 0.6rem;
    display: inline-block;
    border-radius: 50%;
    margin: 0.8rem 0;*/
    color: #0d8339;
    font-size: 0.5rem;
    padding-top: 0.8rem;

}
.auto_es_img{
    position: fixed;
    display: none;
    justify-content: flex-end;
    top: 30%;
    left: 40%;
    z-index: 2000;
    width: 40vw;
    max-width: 400px;
    background-size: cover;
    cursor: pointer;
}
.auto_es_img.show{
    display: flex;
}
.auto_es_img .invoceimg{
    position: absolute;
    top: 10%;
    left: -30%;
    z-index: 2;
    height: 90%;
}
.auto_es_img .invoceimg img{
    height: 90%;
}
.auto_es_img .auto_inner{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 90%;
    align-items: flex-end;
    background-color: #fff;
    padding: 5%;
    border: 1px solid #ececec;
    border-radius: 7%;
    text-align: right;
    -webkit-box-shadow: 4px 4px 9px 0px rgba(122,122,122,0.76);
    box-shadow: 4px 4px 9px 0px rgba(122,122,122,0.76);
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    position: relative;
    gap: 4rem;
}
.auto_es_img .auto_inner .closebtn{
    width: 24px;
    height: 24px;
}
.auto_es_img .auto_inner .txt{
    font-size: 4rem;
    color:#545454;
    line-height: 1.3;
}
.auto_es_img .auto_inner .txt p:nth-child(1){
    font-weight: bold;
}
.auto_es_img .auto_inner .txt p:nth-child(2){
    font-weight: 400;
}

.auto_es_img .auto_inner .autobtn{
    font-size: 2rem;
    color:#545454;
    font-weight: 300;
}
.print_page{
    width: 100%;
    display: none;
    font-family: 'Pretendard', sans-serif;
}

.print_page.show{
    display: block;
}
.print_page > div{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin: 5rem auto;
}
.print_page.show{
    margin: 0;
    min-height: 100rem;
}
.print_page > div strong{
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}
.print_page .print_tbl{
    font-size: 16px;
    background-color: transparent;
    border-spacing: 0;
    border-collapse: collapse;
    text-align: center;
    word-break: keep-all;
    width: 90%;
    margin: 0 auto;
    line-height: 2;
}
.print_page .print_tbl th{
    color: #ffffff;
    font-weight:600;
    height: 40px;
    font-size: 120%;
    vertical-align: middle;
    background-color: #000;
    border: 1px solid #ccc;
}
.print_page .tbl_tit1{
    width: 40%;
}
.print_page .tbl_tit2{
    width: 60%;
}
.print_page .td_w{
    width: 30%;
}
.print_page .print_tbl td{
    color: #000;
    background-color: #fff;
    text-align: left;
    padding: 0 5px;
    vertical-align: middle;
    height: 35px;
    border: 1px solid #ccc;
}
.print_page .print_tbl th:first-child,.print_page .print_tbl td:first-child{
   /* border-left: 1px solid #000;*/
}
.print_page .print_tbl.cont td:last-child{
    font-size: 12px;
}
.print_page .print_tbl span{
    font-weight: bold;
    color: red;
}
.print_page .print_tbl td img{
    text-align: center;
    width: 55px;
    vertical-align: middle;
    margin: 0 auto;
    padding: 5px;
}
.print_page .bak_y, .print_page .bak_y > td{
    background-color: #fdfd99 !important;
    font-weight: 600;
}
.print_page .bak_g > td {
    background-color: #bebebf !important;
    text-align: center;
}
.print_page .bak_y.txt_y{
    line-height: 6;
}
.print_page .sumtxt{
    font-size: 120% !important;
    font-weight: bold;
    background-color: #ff0 !important;
    text-align: center !important;
    line-height: 3;
}
.print_page .tit_c{
    text-align: center !important;
}
.print_page .tit_c_w{
    text-align: center !important;
    width: 20%;
}
.print_page .tit_r{
    text-align: right !important;
    padding-right: 2rem !important;
}
@page {
    /*size:landscape;*/
    size: portrait;
    padding: 1cm;
    margin:9mm 9mm 0mm 9mm;
}
@media print {

    @page {
        margin: 0;
    }

    html, body {
        -webkit-print-color-adjust: exact;
    }

    body::-webkit-scrollbar {
        display: none !important;
    }
    .print_page{
        display: block;
    }
    .print_page > div{
        margin: 5rem auto;
    }

    .print_page .print_tbl {
        font-size: 12px;
        line-height: 1.5;
        background-color: unset;
        border-spacing: 0;
        border-collapse:collapse;
    }

    .print_page .print_tbl th{
        height: unset;
        line-height: 3;
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
    }
    .print_page .print_tbl td{
        height: unset;
        line-height: 2.5;
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
        /*border: 0 !important;*/
    }
    .print_page .print_tbl th:first-child,.print_page .print_tbl td:first-child{
         border-left: 1px solid #000;
    }
    .print_page > div strong {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .print_page .print_none{
        display: none;
    }
}
/*@media print {

    @page{margin:0;}
    html, body { -webkit-print-color-adjust:exact;}
    body::-webkit-scrollbar {
        display: unset !important;
    }
    .es_title_bg {
        margin-top: -40px !important;
    }
    .inner-estimate {
        margin: 30px auto !important;
    }
    .es_table .es_table_row {
        flex-direction: row !important;
    }
    .es_table{
        font-size: 1.5rem !important;
    }
    .es_table select{
        font-size: 1.5rem !important;
        background: unset !important;
        border: 0 !important;
    }
    .es_table .es_col1 {
        font-weight: bold;
        padding-left: 1em;
        width: 30% !important;
        max-width: 200px !important;;
        border-right: 1px solid #000 !important;
        border-bottom: 0 !important;
    }


}*/
@media (max-width:1440px) {
    .estimate {
        padding-top: 70px;
    }
}
@media (max-width: 1024px) {
    .auto_es_img {
        left: 30%;
        width: 50vw;
    }
}
@media (max-width:768px) {
    .es_table .es_table_row {
        flex-direction: column;

    }

    .es_table .es_col1 {

        width: calc(100% - 1em);
        border-bottom: 1px dashed;
        max-width: unset;
        border-right: 0;
    }

    .es_table .es_col2, .es_table .es_col3, .es_table .es_col4 {
        padding: 0.5rem;
        width: calc(100% - 1rem);
        gap: 0.5rem;
        font-size: 1.5rem;
    }



    .es_table, .es_table select,.es_table .es_col2 input[type="text"] {
        font-size: 1.8rem;
        width: 100%;
    }

    .estimate-submit {
        padding: 2rem 0;
        width: 100%;
    }

    .estimate .btn_list .button-es {
        padding: 2% 3%;
        word-break: keep-all;
        text-align: center;
        line-height: 1.2;
        height: unset;
    }
    .es_point {
        text-align: left;
        margin: 1rem auto;
        width: 100%;
    }
    .auto_es_img {
        left: 25%;
        width: 60vw;
    }
    .auto_es_img .auto_inner .txt {
        font-size: 3.5rem;
    }
    .estimate .font-h3 {
        font-size: 4rem;
    }
    .estimate .font-sub {
        font-size: 2rem;
    }
}

@media (max-width:450px)  {
    .es_table, .es_table select {
        font-size: 1.5rem;
    }
    .es_table .es_col3 {

        gap: 2%;
    }
    .es_table .es_col2 p, .es_table .es_col4 p{
        word-break: keep-all;
        line-height: 2;
    }
    .estimate .btn_list {
        gap: 1rem;
    }
    .es_title {

        flex-direction: column;
    }
    /*.inner-estimate {
        margin: 5rem auto;
    }*/
    .auto_es_img .auto_inner .txt {
        font-size: 2.5rem;
    }
    .auto_es_img .auto_inner .autobtn {
        font-size: 1.5rem;
    }
    .estimate .font-h3,    .es_sub_title {
        font-size: 7vw;
    }
    .estimate .font-sub {
        font-size: 4vw;
    }
    .es_table .es_col4{
        font-size: 3.5vw;
    }
    .es_point{
        font-size: 3.2vw;
    }
    .es_point span {
        font-size: 1.5vw;
        padding-top: 1.5vw;
    }
}
@media (max-width:375px)  {
    .auto_es_img .auto_inner .txt {
        font-size: 2.3rem;
    }
    .auto_es_img .auto_inner .autobtn {
        font-size: 1.3rem;
    }
    .auto_es_img .invoceimg {
        left: -40%;
        height: 80%;
    }
}

/* ══════════════════════════════════════════════════════════════
   자동견적 옵션 폼 정돈 (반응형 기본화 후 UI 정리 · 2026-08-21)
   - pv-est-* 는 assets/css/preview_sub.css 정의. 본 파일은 이 페이지에서만
     로드되어 뒤에 오므로, 아래 보강 규칙이 안전하게 우선 적용된다.
   - 인라인 스타일을 뷰에서 제거하고 여기로 이전.
   ══════════════════════════════════════════════════════════════ */
/* 화면 지원 고정 표기 + '기본 포함' 배지 */
.pv-est-static { font-size: var(--t-sm); color: var(--text); font-weight: 600; }
.pv-est-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    background: var(--accent-glow); color: var(--accent);
    border: 1px solid rgba(26,122,82,.25);
    font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em;
}
/* 옵션 행 hover 강조 — 표 느낌을 줄이고 카드형으로 정돈 */
.pv-est-card-body .pv-est-row { transition: background-color .15s; }
.pv-est-card-body .pv-est-row:hover { background: var(--bg-sub); }
/* 금액 카드 본문 여백 (뷰 인라인 style 이전) */
.pv-est-card-body--pad { padding: 20px 28px; }
/* 신청 폼 두 번째 행 상단 간격 (뷰 인라인 style 이전) */
.pv-field-row--gap { margin-top: 16px; }
/* 하단 안내 문구 (뷰 인라인 style 이전) */
.pv-est-notice--mt { margin-top: 16px; }
.pv-est-notice svg { flex-shrink: 0; margin-top: 2px; }

/* 옵션 폼 글씨 가독성: --t-sm(≤14px) → --t-base(≤16px).
   공용 폼 방침(14px 유지)은 그대로 두고, 이 견적 페이지에서만 상향. */
.pv-est-label,
.pv-est-radio,
.pv-est-static,
.pv-est-select { font-size: var(--t-base); }

/* LMS 회원·게시판 '기본 포함(무료)' 안내 배지 — 기본 숨김, JS(updateLmsHints)가 LMS 선택 시 표시 */
.pv-est-badge--free { display: none; }

/* 비활성 라디오(LMS 기본 포함으로 '미사용' 불가) — 라벨 흐리게 + 커서 표시 */
.pv-est-radio:has(input:disabled) { opacity: .4; cursor: not-allowed; }

/* 예상 견적 헤더의 '상담 후 확정' 캐비엇 배지 — 우측 정렬·중립 톤(주의 환기용) */
.pv-est-card-head .pv-est-badge--confirm {
    margin-left: auto;
    background: transparent;
    color: var(--text-sub);
    border: 1px solid var(--border-m);
    font-weight: 600;
}

/* 서버 위탁(월 정액·별도 청구) 표시 — 제작비 합계와 구분되게 점선 구분 */
.pv-est-price-server {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-m);
    font-size: var(--t-sm);
    color: var(--text-sub);
    font-weight: 600;
}
.pv-est-price-server span {
    font-weight: 400;
    color: var(--text-muted);
}
.pv-est-price-servernote {
    margin-top: 4px;
    font-size: var(--t-xs);
    color: var(--text-muted);
}

/* 출력용 견적서(#printable) — 서버 위탁 안내 문구 행 (작게·좌측·회색) */
.print_page .es-servernote {
    text-align: left;
    font-size: 11px;
    color: #555;
    padding: 4px 8px;
}

/* 견적서 PDF 캡처 전용 컴팩트 레이아웃 — 과도한 여백 제거로 A4 한 페이지에 맞춤.
   (makeCkPdf 에서 #print_page 에 .pdf-mode 를 잠깐 붙였다 캡처 후 제거) */
.print_page.pdf-mode { padding: 16px; min-height: 0; }
.print_page.pdf-mode > div { margin: 0 auto; gap: 12px; }
.print_page.pdf-mode > div strong { font-size: 26px; margin-bottom: 14px; }
.print_page.pdf-mode .print_tbl { margin: 0 auto; width: 100%; line-height: 1.5; }