/* =========================================
   [신청하기] 일반 예약 폼 모던 앱 스타일
========================================= */
.modern_order_wrap {
 
    min-height: 100vh;
}

/* 🌟 하얀색 둥근 카드 레이아웃 */
.modern_card {
    background: var(--ss-card);
    border-radius: var(--ss-radius-card);
    padding: var(--ss-pad-card);
    margin-bottom: var(--ss-gap);
    box-shadow: var(--ss-shadow-card);
    border: 1px solid var(--ss-line);
}
.transparent_card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 10px;
}

/* 제목 및 안내문구 */
.modern_card h2 {
    font-size: 16px; line-height: 1.4;
    font-weight: 700;
    color: var(--ss-text);
    margin-bottom: 12px;
}
.modern_card .sub_txt {
    font-size: 13px;
    font-weight: 400;
    color: var(--ss-muted);
}
.modern_card .guide_txt {
    font-size: 13px;
    color: #d32f2f;
    margin-bottom: 12px;
    margin-top: -6px;
}
.progress-etc div {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* 🌟 공통 인풋 스타일 (둥근 모서리) */
.addr-list { list-style: none; padding: 0; margin: 0; }
.addr-list li { margin-bottom: 12px; }
.addr-list li:last-child { margin-bottom: 0; }

.frm_input {
    width: 100%;
    height: var(--ss-ctl-h);
    box-sizing: border-box;
    border: 1px solid var(--ss-line-ctl);
    border-radius: var(--ss-radius-ctl);
    background: #fafbfc;
    color: #1a1a1a;
    font-size: 16px; /* 16px 보다 작으면 iOS 가 초점 때 화면을 확대한다 */
    padding: 0 16px;
    font-family: 'Pretendard', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}
.frm_input:focus {
    background: #fff;
    border-color: #1a3952;
    box-shadow: 0 0 0 3px rgba(26,57,82,0.08);
}
.full_input { width: 100%; }

/* 주소 검색 레이아웃 */
.addr_flex {
    display: flex;
    gap: 8px;
}
/* 신청서 수거 주소 — 읽기 전용 textarea(sub5_order1.php). 한 줄이면 input 과 같은 48px, 길면 늘어난다 */
textarea.frm_input.ssak-autofit { display: block; min-width: 0; height: 48px; min-height: 48px; padding: 13px 16px; line-height: 20px; resize: none; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.btn_search {
    width: 90px;
    height: 48px;
    background: #1a3952;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 수량 조절 버튼 (봉투 구매) */
.count_row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn_count {
    width: 48px;
    height: 48px;
    background: #f1f3f5;
    color: #1a1a1a;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 20px;
}
.vinyl.frm_input {
    width: 80px;
    text-align: center;
    padding: 0;
}

/* 라디오 버튼 (주차 등록 여부) */
#park_input_area { margin-top: 10px; }

/* 파일 첨부 (사진 업로드) */
.file_wr {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fafbfc;
    height: 48px;
    padding-left: 48px;
    overflow: hidden;
}
.file_wr .lb_icon {
    position: absolute;
    top: 0; left: 0;
    width: 48px; height: 100%;
    background: #f1f3f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #dcdcdc;
}
.file_wr .frm_file {
    width: 100%;
    padding: 0 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #555;
    outline: none;
}
.file_wr .frm_file::file-selector-button { display: none; }

/* 🌟 하단 쫀득 캡슐 다음 버튼 */




/*날짜 선택*/
.ui-datepicker-trigger { display: none; }

.date-holiday .ui-state-default { color: red; }
.date-sunday .ui-state-default { color: red; font-weight: 600; }
.date-saturday .ui-state-default { color: #284889; font-weight: 600; }

.ui-datepicker .ui-datepicker-header { padding: 2.7778vw 0; }
.ui-datepicker-title select { height: 8.3333vw; background: #fff; border: 0.2778vw solid #c5c5c5; padding-left: 5.5556vw; box-sizing: border-box; margin: 0 0.5556vw !important; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { top: 105%; }

#ui-datepicker-div { position: fixed !important; top: 20% !important; width: 90%; }
.ui-widget.ui-widget-content { box-sizing: border-box; }
.ui-datepicker td, .ui-datepicker td a, .ui-datepicker td span { height: 8.3333vw; }
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover { background: #284889; border: 0.2778vw solid #284889; }

/*시간 선택*/
#order .popup-open1 .pop-layer { width: 70%; }
#order .popup-open1 ul { margin-bottom: 5.5556vw; }
#order .popup-open1 ul:after { content: ''; display: block; clear: both; }
#order .popup-open1 li { float: left; width: 48%; border-radius: 5.5556vw; box-sizing: border-box; margin-bottom: 2.7778vw; }
#order .popup-open1 li:nth-child(odd) { margin-right: 4%; }
#order .popup-open1 li input[type="radio"] { display: none; }
#order .popup-open1 li input[type="radio"] + label { display: block; height: 8.8889vw; line-height: 8.8889vw; font-size: 3.6111vw; font-weight: 300; color: #6e6e6e; text-align: center; }
#order .popup-open1 li input[type="radio"] + label span { display: inline-block; cursor: pointer; width: 100%; height: 100%; background: #d3d7e0; border: 0.2778vw solid #99a2b5; border-radius: 5.5556vw; box-sizing: border-box; }
#order .popup-open1 li input[type="radio"]:checked + label span { background: #284889; color: #fff; }


/*수거방법*/
#order .delivery-list { margin-bottom: 12px; }
#order .delivery-list:after { content: ''; display: block; clear: both; }
#order .delivery-list li { float: left; width: 46%; }
#order .delivery-list li:nth-child(2) { margin: 0 2%; }
#order .delivery-list li input[type="radio"] { display: none; }
#order .delivery-list li input[type="radio"] + label { display: block; height: 60px; line-height: 60px; font-size: 13px; font-weight: 400; color: #fff; text-align: center; }
#order .delivery-list li input[type="radio"] + label span { display: inline-block; cursor: pointer; width: 100%; height: 100%; background: #99a2b5; border: 1px solid #aaa; box-sizing: border-box; }
#order .delivery-list li input[type="radio"]:checked + label span { background: #284889; }

#order .progress div { font-size: 14px; font-weight: 500; color: #284889; letter-spacing: -0.5px; text-align: center; font-family: Pretendard, sans-serif;}
#order .progress div:after { content: ''; display: block; clear: both; }
#order .progress #indivisual3 { width: 147px; left: 0; right: 0; margin: auto; }
#order .progress #indivisual3 li { float: left; margin: 0 10px; }

#order .progress #indivisual3 li input[type="radio"] { display: none; }
#order .progress #indivisual3 li input[type="radio"] + label { display: inline-block; font-size: 14px; font-weight: 500; color: #555; }
#order .progress #indivisual3 li input[type="radio"] + label span { display: inline-block; width: 14px; height: 14px; vertical-align: middle; cursor: pointer; background: url("../img/radio1_off.png") no-repeat; background-size: 100%; margin-right: 5px; }
#order .progress #indivisual3 li input[type="radio"]:checked + label span { background-image: url("../img/radio1_on.png"); }
/*결제방법*/
#order .pay-list { position: absolute; top: 0; right: 0; }
#order .pay-list li { float: left; }
#order .pay-list li:last-child { margin-left: 6.9444vw; }
#order .pay-list li input[type="radio"] { display: none; }
#order .pay-list li input[type="radio"] + label { display: inline-block; font-size: 3.6111vw; font-weight: 400; color: #555; }
#order .pay-list li input[type="radio"] + label span { display: inline-block; width: 3.8889vw; height: 3.8889vw; vertical-align: middle; cursor: pointer; background: url("../img/radio2_off.png") no-repeat; background-size: 100%;	margin-right: 1.3889vw; }
#order .pay-list li input[type="radio"]:checked + label span { background-image: url("../img/radio2_on.png"); }

#order .progress select { width: 100%; height: 8.8889vw; background: url('../img/arrow1.png') 95% center no-repeat; background-size: 4.1667vw; border: 0.2778vw solid #aaa; padding-left: 2.7778vw; box-sizing: border-box; font-size: 3.0556vw; font-weight: 400; color: #555; }

#order .progress .layer1 { text-align: left; }
#order .progress .layer1 label { display: inline-block; width: 25%; font-size: 3.3333vw; }
#order .progress .layer1 input { display: inline-block; width: 75%; height: 8.8889vw; border: 0; border-bottom: 0.2778vw solid #aaa; padding: 2.7778vw; box-sizing: border-box; margin-top: 2.7778vw; font-size: 3.3333vw; font-weight: 400; color: #555; }


/* #order .progress .request { text-align: left; display:none} */
#order .progress .request label { display: inline-block; width: 25%; font-size: 3.3333vw; }
#order .progress .request input { display: inline-block; width: 75%; height: 8.8889vw; border: 0; border-bottom: 0.2778vw solid #aaa; padding: 2.7778vw; box-sizing: border-box; margin-top: 2.7778vw; font-size: 3.3333vw; font-weight: 400; color: #555; }


.layer1 { display: none; }



/* =========================================
   파일 첨부 (사진 첨부 한글 버전 - 예약 폼 전용)
========================================= */
.modern_card .file_wr {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fafbfc;
    height: 48px;
    padding-left: 86px; /* 텍스트 너비(86px)만큼 내부 여백 확보 */
    overflow: hidden;
}

.modern_card .file_wr .lb_txt {
    position: absolute;
    top: 0; 
    left: 0;
    width: 86px;
    height: 100%;
    background: #f1f3f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #dcdcdc;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
}

.modern_card .file_wr .frm_file {
    width: 100%;
    padding: 0 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #555;
    outline: none;
}

/* 파일 선택 시 기본 브라우저 버튼(파일 선택) 숨김 처리 */
.modern_card .file_wr .frm_file::file-selector-button { 
    display: none; 
}
/* =========================================
   [결제완료창] 안전한 리폼 버전 CSS
========================================= */
#complete.modern_order_wrap { 
    background: #f5f7f9; 
    min-height: 100vh; 
    padding: 20px 0 60px 0; 
}

/* 상단 동그라미 진행바 */
#complete .ing { 
    display: flex; justify-content: center; gap: 12px; 
    padding: 10px 0 24px; list-style: none; margin: 0; 
}
#complete .ing li { 
    width: 14px; height: 14px; background: #fff; 
    border: 3px solid #1a3952; border-radius: 50%; box-sizing: border-box; float: none;
}
#complete .ing li.active { background: #1a3952; }

#complete .wrap { width: 92%; margin: 0 auto; }

/* 공통 하얀색 카드 */
#complete .modern_card {
    background: var(--ss-card);
    border-radius: var(--ss-radius-card);
    margin-bottom: var(--ss-gap);
    box-shadow: var(--ss-shadow-card);
    border: 1px solid var(--ss-line);
    padding: var(--ss-pad-card);
}
#complete .map_card { padding: 0; }
#complete .transparent_card { background: transparent; border: none; box-shadow: none; padding: 0; }

/* 기존 ul > li > h2, h3 구조를 활용한 플렉스 정렬 */
#complete ul { padding: 0; margin: 0; list-style: none; }
#complete .info_row { 
    display: flex; justify-content: space-between; align-items: flex-start; 
    padding: 12px 0; border-bottom: 1px solid #f1f3f5; box-sizing: border-box;
}
#complete .info_row:last-child { border-bottom: none; }
#complete .info_row h2 { 
    width: 40%; font-size: 15px; font-weight: 500; color: #6e6e6e; float: none; margin: 0; line-height: 1.4;
}
#complete .info_row h3 { 
    width: 60%; font-size: 15px; font-weight: 600; color: #222; text-align: right; float: none; margin: 0; line-height: 1.4;
}

/* 포인트 및 텍스트 강조 */
#complete .point_txt { color: #1a3952 !important; font-size: 16px !important; }
#complete .text_red { color: #d32f2f !important; }

/* 라디오 / 체크박스 공통 처리 */
#complete input[type="radio"], #complete input[type="checkbox"] { display: none; }
#complete input[type="radio"] + label, #complete input[type="checkbox"] + label { 
    display: inline-flex; align-items: center; font-size: 15px; color: #222; cursor: pointer; font-weight: 600; margin: 0;
}
#complete input[type="radio"] + label span, #complete input[type="checkbox"] + label span { 
    display: inline-block; width: 22px; height: 22px; 
    background: url("../img/radio1_off.png") no-repeat center / cover; margin-right: 8px; vertical-align: middle;
}
#complete input[type="radio"]:checked + label span, #complete input[type="checkbox"]:checked + label span { 
    background-image: url("../img/radio1_on.png"); 
}

/* 약관 동의 */
#complete .terms_agree { text-align: center; margin: 10px 0 30px; }
#complete .terms_agree p { display: flex; align-items: center; justify-content: center; margin: 0; }
#complete .terms_agree .agree_txt { font-size: 14px; color: #555; cursor: pointer; margin-left: 6px; }
#complete .terms_agree .agree_txt u { color: #1a3952; font-weight: 700; text-decoration: none; }

/* 쫀득한 캡슐형 결제 버튼 */
/*개인정보 취급방침*/
.pre-contents { white-space: pre-wrap; }


/*주문내역*/


/* 신청서·신청 확인 — 「다음」·「신청완료」를 화면 아래에 고정(1117 UX 4차). 키보드가 떠 있으면(body.ssak-typing — js/ssak_ui.js, visualViewport) 숨겨
   입력칸을 가리지 않는다. 마지막 칸이 버튼 밑에 숨지 않게 폼 아래 여백(.has-order-cta) */
.order_cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #ffffff; border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 12px rgba(15, 23, 42, .06); box-sizing: border-box; }
.order_cta .ss-btn { display: block; width: 100%; max-width: 560px; margin: 0 auto !important; }
body.ssak-typing .order_cta { display: none; }
.has-order-cta { padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important; }

/* 칸 아래 빨간 안내 — 「다음」 때 빠진 칸을 한꺼번에(예전에는 alert 하나씩). 고치면 지운다(js/ssak_order_form.js) */
.ss-field-err { display: block; margin: 6px 2px 0; color: #dc2626; font-size: 13.5px; font-weight: 500; line-height: 1.5; word-break: keep-all; }
.ss-field-err[hidden] { display: none; }
.ss-field-err .ss-btn { margin-left: 6px; vertical-align: middle; }
.frm_input.is-invalid { border-color: #dc2626 !important; }
/* 칸 아래 오류 안의 「다시 검색」 — hidden 이어도 .ss-btn 의 display 가 이겨 빈 주소 오류에도 보였다(1117 UX 5차) */
.ss-field-err [hidden] { display: none !important; }
/* 회색 주소 칸을 눌러도 검색이 열린다(js/ssak_order_form.js) */
#order #address[readonly] { cursor: pointer; }
/* 신청 확인 「신청서 고치기」(sub/sub6_complete.php) */
#complete .cf-edit { margin: 0 0 8px; text-align: right; font-size: 14px; }
