/* 견적문의 새 디자인 (board_new.php / reservation_write_new.php 전용) */

/* 예약금 안내 카드 */
.nm-resv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.nm-resv-cards > div { background: #fff; border: 1px solid var(--nm-line); padding: 16px 14px; }
.nm-resv-cards > div:last-child { grid-column: 1 / -1; }
.nm-resv-cards b { display: block; font-size: 12.5px; font-weight: 600; color: var(--nm-sub); }
.nm-resv-cards strong { display: block; font-size: 22px; font-weight: 800; color: var(--nm-ink); margin-top: 6px; }
.nm-resv-cards strong small { font-size: 13px; font-weight: 500; margin-left: 2px; }
.nm-resv-cards strong.nm-txt { font-size: 16px; }
.nm-resv-cards span { display: block; font-size: 12px; color: var(--nm-sub); margin-top: 2px; }
.nm-resv-info { padding-top: 0; background: var(--nm-paper); }
.nm-resv-info .nm-resv-cards { margin-top: 0; }

/* 목록 */
.nm-blist { margin-top: 20px !important; border-top: 1.5px solid var(--nm-ink); }
.nm-blist li { border-bottom: 1px solid var(--nm-line); }
.nm-blist li a { display: flex; align-items: center; gap: 12px; padding: 15px 2px; }
.nm-bnum { flex: none; width: 34px; font-size: 12px; color: var(--nm-sub); text-align: center; }
.nm-btit { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--nm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-btit em { display: block; font-style: normal; font-size: 12px; font-weight: 400; color: var(--nm-sub); margin-top: 3px; }
.nm-bst { flex: none; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 20px; }
.nm-bst.st-bfr { background: #eee; color: #666; }
.nm-bst.st-ing { background: #fff3d6; color: #9a6a00; }
.nm-bst.st-fin { background: var(--nm-ink); color: #fff; }
.nm-blist li.is-notice { background: var(--nm-paper); }
.nm-blist li.is-notice .nm-bnum { color: var(--nm-sand); font-weight: 700; }
.nm-pg { margin-top: 24px; text-align: center; }
.nm-bsearch { display: flex; gap: 6px; margin-top: 20px; }
.nm-bsearch select, .nm-bsearch input[type=text] { height: 44px; border: 1px solid var(--nm-line); padding: 0 10px; font-size: 14px; background: #fff; }
.nm-bsearch input[type=text] { flex: 1; min-width: 0; }
.nm-bsearch input[type=submit] { height: 44px; padding: 0 18px; border: 0; background: var(--nm-ink); color: #fff; font-weight: 600; font-size: 14px; }
.nm-bwrite { margin-top: 24px; }
.nm-bwrite .nm-btn-main { display: block; background: var(--nm-ink); color: #fff !important; }

/* 작성 페이지 : 기존 폼 다시 꾸미기 */
.nm-resv-write .sub_con { padding: 0 22px 60px; }
.nm-resv-write .sub_con .inner { max-width: 960px; margin: 0 auto; padding: 0; width: auto; }
.nm-resv-write .sec_tit_w { text-align: left; margin: 36px 0 12px; }
.nm-resv-write .sec_tit { font-size: 22px !important; font-weight: 700; color: var(--nm-ink); }
.nm-resv-write .chk_terms { background: var(--nm-paper); padding: 16px; margin-bottom: 18px; font-size: 13px; line-height: 1.7; }
.nm-resv-write .chk_terms .txt { color: var(--nm-sub); }
.nm-resv-write .chk_terms .txt span { color: #b03a2e !important; }
.nm-resv-write .chk_w { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--nm-ink); }
.nm-resv-write .form_w > li { background: #fff; border: 1px solid var(--nm-line); padding: 16px 14px; margin-bottom: 12px; list-style: none; }
.nm-resv-write .form_tit { display: block; font-size: 13px; font-weight: 700; color: var(--nm-ink); margin-bottom: 6px; }
.nm-resv-write .form_rental .bx01 .form_tit::before { content: '01 '; color: var(--nm-sand); }
.nm-resv-write .form_lift .bx01 .form_tit::before { content: '02 '; color: var(--nm-sand); }
.nm-resv-write .form_edu .bx01 .form_tit::before { content: '03 '; color: var(--nm-sand); }
.nm-resv-write select, .nm-resv-write input[type=text], .nm-resv-write input[type=password], .nm-resv-write textarea { width: 100%; height: 46px; border: 1px solid #d6d2ca; border-radius: 0; padding: 0 12px; font-size: 15px; background: #fff; box-sizing: border-box; font-family: inherit; }
.nm-resv-write textarea { height: 90px; padding: 10px 12px; }
.nm-resv-write .qnty_w { display: flex; height: 46px; }
.nm-resv-write .qnty_w input { height: 46px; border: 1px solid #d6d2ca; background: #fff; text-align: center; font-size: 16px; }
.nm-resv-write .qnty_w .btn_minus, .nm-resv-write .qnty_w .btn_plus { width: 44px; background: var(--nm-paper); font-weight: 700; cursor: pointer; }
.nm-resv-write .qnty_w .qnty { width: 54px; border-left: 0; border-right: 0; }
.nm-resv-write .form_btn_add, .nm-resv-write .form_btn_del { height: 46px; padding: 0 16px; border: 1px solid var(--nm-ink); background: #fff; color: var(--nm-ink); font-weight: 600; cursor: pointer; }
.nm-resv-write .form_btn_del { border-color: #b03a2e; color: #b03a2e; }
.nm-resv-write .bx_row { position: sticky; bottom: 73px; z-index: 5; background: var(--nm-ink) !important; color: #fff; border: 0 !important; padding: 16px 18px !important; margin: 0 0 12px; }
.nm-resv-write .bx_row .bx_sub { color: rgba(255,255,255,.7); font-size: 12.5px; margin: 0 0 4px !important; text-align: left !important; }
.nm-resv-write .bx_row .bx_cost { color: #fff; text-align: left !important; font-size: 14px; }
.nm-resv-write .bx_row .bx_cost span { color: var(--nm-gold) !important; font-size: 30px !important; margin-left: 6px; }
.nm-resv-write .btn_confirm { display: flex; gap: 8px; margin-top: 20px; }
.nm-resv-write .btn_confirm .btn { flex: 1; height: 54px; line-height: 54px; text-align: center; font-size: 16px; font-weight: 700; border: 0; cursor: pointer; }
.nm-resv-write .btn_confirm .btn_cancle { background: #fff; border: 1px solid var(--nm-ink); color: var(--nm-ink); flex: 0 0 34%; }
.nm-resv-write .btn_confirm .btn_submit { background: var(--nm-ink); color: #fff; }

@media screen and (min-width: 900px) {
	.nm-resv-cards { grid-template-columns: 1fr 1fr 1.3fr; gap: 14px; max-width: 900px; }
	.nm-resv-cards > div:last-child { grid-column: auto; }
	.nm-resv-cards > div { padding: 22px 20px; }
	.nm-resv-cards strong { font-size: 28px; }
	.nm-resv-write .sub_con { padding: 0 64px 100px; }
	.nm-resv-write .bx_row { bottom: 0; }
	.nm-btit { font-size: 16px; }
	.nm-bsearch { max-width: 520px; }
	.nm-bwrite { max-width: 320px; }
}

/* 기존 스타일 덮어쓰기 */
.nm-resv-write .form_btn_add { background: #fff !important; color: var(--nm-ink) !important; border: 1px solid var(--nm-ink) !important; border-radius: 0 !important; height: 46px !important; width: 100%; font-size: 14px !important; }
.nm-resv-write .form_btn_del { background: #fff !important; color: #b03a2e !important; border: 1px solid #b03a2e !important; border-radius: 0 !important; height: 46px !important; width: 100%; }
.nm-resv-write .sub_con, .nm-resv-write .sec { padding-top: 0 !important; margin-top: 0 !important; }
.nm-resv-write .sec_tit_w { margin: 28px 0 12px !important; padding: 0 !important; text-align: left !important; }
.nm-resv-write .sec_tit::after, .nm-resv-write .sec_tit::before { display: none !important; }
.nm-resv-write .bx_row { margin-top: 4px !important; }
.nm-resv-write .form_w > li:has(.bx06) { border: 1px solid var(--nm-line); }
.nm-resv-write .bx06 textarea { height: 90px !important; }
.nm-resv-write .bx05 input { background: #fff !important; }
.nm-resv-write .btn_confirm .btn { border-radius: 0 !important; }
.nm-resv-write .bx05 input, .nm-resv-write .bx05 .input_txt, .nm-resv-write #datepicker { display: block !important; width: 100% !important; height: 46px !important; border: 1px solid #d6d2ca !important; background: #fff !important; padding: 0 12px !important; box-sizing: border-box; }
.nm-resv-write .bx05 { margin-bottom: 12px; }
.nm-resv-write .sec_tit { text-align: left !important; }
.nm-resv-write .chk_terms .txt { display: block; text-align: left !important; }
.nm-resv-write .btn_confirm .btn_cancle { line-height: 52px; }
.nm-resv-write .nm-form-note { list-style: none; font-size: 12.5px; color: var(--nm-sand); margin: -4px 0 12px !important; padding: 0 2px; }

#nmMsgBox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; padding: 20px; }
#nmMsgBox .nm-msg-in { background: #fff; max-width: 420px; width: 100%; padding: 26px 22px 18px; font-family: Pretendard, sans-serif; }
#nmMsgBox p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: #161616; white-space: pre-line; }
#nmMsgBox button { width: 100%; height: 50px; border: 0; background: #161616; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }