/* =====================================================================
 * 체험 회사(먼저 둘러보기) 전용 스타일 (퍼블 시안 2026-11-24)
 *  - 쓰는 곳: trial_start.html · trial_convert.html · js/common.js SPTrialBand(체험 중 띠, 체험 회사일 때만 이 파일을 불러옴)
 *  - 모든 선택자는 sp_trial_ / spt_ 로 시작한다(다른 화면에 영향 없음).
 *  - 색: 강조 초록(#00DF81 / 글씨용 #00804B) 1색 + 체험 띠 노랑(기존 데모 띠와 같은 색) + 경고 빨강
 * ===================================================================== */

/* ---- 공통 화면 틀 ---- */
/* reset.css 의 html,body{height:100%} 때문에 body 안에서 따로 스크롤되지 않게(인쇄 · 전체 화면 캡처에서 아래가 잘림) */
body.sp_trial_page { height: auto; min-height: 100%; }
body.sp_trial_page b, .sp_trial_modal b, .sp_trial_join_note b { font-weight: 800; }
body.sp_trial_page { background: #F3F6F7; color: #1F2937; font-size: 18px; line-height: 1.6; word-break: keep-all; }
.sp_trial_page .spt_wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; box-sizing: border-box; }
.sp_trial_page .spt_head { text-align: center; margin-bottom: 24px; }
.sp_trial_page .spt_logo { display: block; width: 72px; height: 42px; margin: 0 auto 6px; background: url(../img/loading_logo.png) center no-repeat; background-size: contain; filter: brightness(0.45) sepia(1) hue-rotate(110deg) saturate(4); }
.sp_trial_page .spt_kicker { color: #4B6C79; font-size: 18px; font-weight: 700; }
.sp_trial_page .spt_title { margin: 2px 0 8px; color: #1F2937; font-size: 34px; font-weight: 800; line-height: 1.3; }
.sp_trial_page .spt_lead { color: #4D4D4D; font-size: 20px; line-height: 1.6; }
.sp_trial_page .spt_lead b { color: #00804B; }

.sp_trial_page .spt_state { display: none; }
.sp_trial_page .spt_state.on { display: block; }

/* 종이 서류 느낌의 흰 상자 */
.sp_trial_page .spt_paper { margin: 0 0 16px; padding: 22px 24px; border: 1px solid #D5DDE0; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.sp_trial_page .spt_paper_tit { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #1F2937; color: #1F2937; font-size: 22px; font-weight: 800; }
.sp_trial_page .spt_help { margin: 0 0 12px; color: #4D4D4D; font-size: 18px; }
.sp_trial_page .spt_big { font-size: 20px; line-height: 1.7; }
.sp_trial_page .spt_big .spt_num { color: #00804B; font-size: 28px; }

.sp_trial_page .spt_steps { margin: 0; padding-left: 26px; }
.sp_trial_page .spt_steps > li { list-style: decimal; margin: 0 0 10px; font-size: 19px; }
.sp_trial_page .spt_have { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 0; padding: 0; }
.sp_trial_page .spt_have li { list-style: none; padding: 4px 12px; border: 1px solid #B8E8D1; border-radius: 16px; background: #EFFBF5; color: #00593A; font-size: 16px; font-weight: 700; }

.sp_trial_page .spt_rule_list { margin: 0 0 14px; padding: 0; }
.sp_trial_page .spt_rule_list li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; list-style: none; font-size: 18px; }
.sp_trial_page .spt_ico { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: #4B6C79; color: #fff; font-size: 15px; font-style: normal; font-weight: 800; line-height: 28px; text-align: center; }

.sp_trial_page .spt_check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border: 2px solid #1F2937; border-radius: 10px; background: #FAFBFB; font-size: 20px; font-weight: 800; cursor: pointer; }
.sp_trial_page .spt_check input { flex: none; width: 28px; height: 28px; margin: 0; accent-color: #00A862; cursor: pointer; }
.sp_trial_page .spt_err { min-height: 0; margin: 8px 0 0; color: #D32F2F; font-size: 17px; font-weight: 700; }
.sp_trial_page .spt_err:empty { margin: 0; }

.sp_trial_page .spt_cap_row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.sp_trial_page .spt_cap_row img { width: 200px; height: 64px; border: 1px solid #D5DDE0; border-radius: 8px; background: #F3F6F7; }
.sp_trial_page .spt_input { display: block; width: 100%; max-width: 320px; height: 56px; padding: 0 16px; border: 2px solid #9AA9AF; border-radius: 10px; box-sizing: border-box; background: #fff; color: #1F2937; font-size: 24px; letter-spacing: 4px; }
.sp_trial_page .spt_input.wide { max-width: none; font-size: 20px; letter-spacing: 0; }
.sp_trial_page .spt_input:focus { border-color: #00A862; outline: none; }

/* 버튼: 높이 56px 이상, 글씨 20px */
.sp_trial_page .spt_btns { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.sp_trial_page .spt_btn_main, .sp_trial_page .spt_btn_line { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 8px 20px; border-radius: 10px; box-sizing: border-box; font-size: 21px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.sp_trial_page .spt_btn_main { border: 0; background: #00A862; color: #fff; }
.sp_trial_page .spt_btn_main:hover { background: #00934F; }
.sp_trial_page .spt_btn_line { border: 2px solid #4B6C79; background: #fff; color: #2F4A55; }
.sp_trial_page .spt_btn_sub { min-height: 48px; padding: 0 16px; border: 2px solid #4B6C79; border-radius: 8px; background: #fff; color: #2F4A55; font-size: 17px; font-weight: 800; cursor: pointer; }
.sp_trial_page button:focus-visible, .sp_trial_page a:focus-visible, .sp_trial_page input:focus-visible { outline: 3px solid #00DF81; outline-offset: 2px; }

/* 만드는 중 */
.sp_trial_page .spt_progress { margin: 0; padding: 0; }
.sp_trial_page .spt_progress li { position: relative; margin: 0 0 12px; padding-left: 40px; color: #9AA9AF; font-size: 20px; list-style: none; transition: color .2s; }
.sp_trial_page .spt_progress li::before { content: ''; position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border: 2px solid #C9D3D6; border-radius: 50%; box-sizing: border-box; }
.sp_trial_page .spt_progress li.done { color: #1F2937; font-weight: 700; }
.sp_trial_page .spt_progress li.done::before { content: '✓'; border-color: #00A862; background: #00A862; color: #fff; font-size: 16px; line-height: 22px; text-align: center; }

.sp_trial_page .spt_foot { margin-top: 28px; text-align: center; font-size: 16px; }
.sp_trial_page .spt_foot a { color: #4B6C79; text-decoration: underline; }

/* ---- 정식 전환 화면 ---- */
.sp_trial_page .spt_status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0 0 18px; padding: 12px 16px; border: 2px solid #F5B335; border-radius: 10px; background: #FFF6E0; color: #5A3D00; font-size: 19px; font-weight: 700; text-align: center; }
.sp_trial_page .spt_status .spt_tag { padding: 0 10px; border-radius: 6px; background: #B57400; color: #fff; font-weight: 800; }
.sp_trial_page .spt_status.ended { border-color: #D32F2F; background: #FDECEC; color: #7A1616; }
.sp_trial_page .spt_status.ended .spt_tag { background: #D32F2F; }

.sp_trial_page .spt_choice { display: block; position: relative; margin: 0 0 12px; padding: 18px 20px 18px 60px; border: 2px solid #C9D3D6; border-radius: 10px; background: #fff; cursor: pointer; }
.sp_trial_page .spt_choice input { position: absolute; left: 20px; top: 22px; width: 26px; height: 26px; margin: 0; accent-color: #00A862; cursor: pointer; }
.sp_trial_page .spt_choice.on { border-color: #00A862; background: #F2FCF7; box-shadow: 0 0 0 1px #00A862 inset; }
.sp_trial_page .spt_choice_tit { display: block; margin-bottom: 4px; color: #1F2937; font-size: 21px; font-weight: 800; }
.sp_trial_page .spt_rec { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px; background: #00A862; color: #fff; font-size: 15px; font-weight: 800; vertical-align: 2px; }
.sp_trial_page .spt_opt { display: inline-block; margin-left: 6px; padding: 0 8px; border: 1px solid #9AA9AF; border-radius: 6px; color: #4B6C79; font-size: 15px; font-weight: 700; vertical-align: 2px; }
.sp_trial_page .spt_choice_txt { display: block; color: #4D4D4D; font-size: 18px; }
.sp_trial_page .spt_move { margin: 10px 0 0; padding: 0; }
.sp_trial_page .spt_move li { margin: 0 0 4px; padding-left: 28px; position: relative; list-style: none; font-size: 17px; }
.sp_trial_page .spt_move li::before { position: absolute; left: 0; font-weight: 800; }
.sp_trial_page .spt_move li.yes::before { content: 'O'; color: #00804B; }
.sp_trial_page .spt_move li.no::before { content: 'X'; color: #D32F2F; }
.sp_trial_page .spt_why { display: block; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #F3F6F7; color: #4D4D4D; font-size: 16px; }

.sp_trial_page .spt_field { margin: 0 0 16px; }
.sp_trial_page .spt_field label { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 800; }
.sp_trial_page .spt_field label em { margin-left: 4px; color: #6E7B80; font-size: 16px; font-style: normal; font-weight: 600; }
.sp_trial_page .spt_note { margin: 0 0 4px; color: #4D4D4D; font-size: 17px; }
.sp_trial_page .spt_done_box { padding: 20px; border-radius: 10px; background: #E5FBF1; font-size: 20px; line-height: 1.7; }

/* 인쇄: 버튼 빼고 종이처럼 */
@media print {
  body.sp_trial_page { background: #fff; }
  .sp_trial_page .spt_btns, .sp_trial_page .spt_foot, .sp_trial_page .loading { display: none !important; }
  .sp_trial_page .spt_paper { box-shadow: none; border-color: #000; }
}

/* ---- 확인 창 (모든 창: 오른쪽 위 큰 [X 닫기] + 바깥 누르기 + Esc) ---- */
.sp_trial_modal { position: fixed; inset: 0; z-index: 9500; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 28, .55); box-sizing: border-box; }
.sp_trial_modal.on { display: flex; }
.sp_trial_modal .spt_modal_box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 24px 22px; border-radius: 12px; background: #fff; box-sizing: border-box; color: #1F2937; word-break: keep-all; }
.sp_trial_modal .spt_modal_x { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 4px; min-width: 48px; min-height: 48px; padding: 0 12px; border: 2px solid #C9D3D6; border-radius: 10px; background: #fff; color: #1F2937; font-size: 17px; font-weight: 800; cursor: pointer; }
.sp_trial_modal .spt_modal_x b { font-size: 24px; line-height: 1; }
.sp_trial_modal .spt_modal_tit { margin: 4px 120px 14px 0; font-size: 23px; font-weight: 800; line-height: 1.4; }
.sp_trial_modal .spt_modal_txt { margin: 0 0 18px; font-size: 19px; line-height: 1.7; white-space: pre-line; }
.sp_trial_modal .spt_modal_btns { display: flex; gap: 10px; }
.sp_trial_modal .spt_modal_btns button { flex: 1; min-height: 56px; border-radius: 10px; font-size: 20px; font-weight: 800; cursor: pointer; }
.sp_trial_modal .spt_modal_ok { border: 0; background: #D32F2F; color: #fff; }
.sp_trial_modal .spt_modal_cancel { border: 2px solid #4B6C79; background: #fff; color: #2F4A55; }

/* ---- 체험 중 띠 (js/common.js SPTrialBand, 모든 업무 화면 맨 위) ---- */
.sp_trial_band { position: fixed; top: 0; left: 0; right: 0; z-index: 9001; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; min-height: 48px; padding: 4px 16px; box-sizing: border-box; background: #FFF1D6; border-bottom: 2px solid #F5B335; color: #5A3D00; font-size: 17px; line-height: 24px; text-align: center; word-break: keep-all; }
.sp_trial_band p { margin: 0; }
.sp_trial_band .spt_tag { margin-right: 6px; padding: 1px 10px; border-radius: 6px; background: #B57400; color: #fff; font-weight: 800; }
.sp_trial_band .spt_left { font-weight: 800; }
.sp_trial_band .spt_left b { font-size: 20px; }
.sp_trial_band .spt_band_btn { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 8px; background: #00A862; color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; }
.sp_trial_band .spt_band_btn:focus-visible { outline: 3px solid #1F2937; outline-offset: 2px; }
.sp_trial_band.soon { background: #FDECEC; border-bottom-color: #D32F2F; color: #7A1616; }
.sp_trial_band.soon .spt_tag { background: #D32F2F; }
html.sp_trial_on body { padding-top: 48px; box-sizing: border-box; }
@media (max-width: 1100px) {
  .sp_trial_band .spt_band_more { display: none; }
}
@media (max-width: 600px) {
  .sp_trial_band { font-size: 15px; gap: 4px 8px; padding: 4px 8px; }
  .sp_trial_band .spt_band_btn { height: 34px; padding: 0 12px; font-size: 15px; }
  html.sp_trial_on body { padding-top: 82px; }
}
@media print {
  .sp_trial_band { display: none !important; }
  html.sp_trial_on body { padding-top: 0; }
}

/* ---- 로그인 화면 [먼저 둘러보기] (index.html .join_guide 안, 체험이 열린 설치에서만 .on) ---- */
.sp_trial_entry { display: none; }
.sp_trial_entry.on { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 10px; min-height: 56px; padding: 6px 12px; border: 2px solid #00A862; border-radius: 8px; box-sizing: border-box; background: #fff; color: #00804B; text-align: center; text-decoration: none; }
.sp_trial_entry.on b { font-size: 19px; font-weight: 800; line-height: 26px; }
.sp_trial_entry.on span { color: #4D4D4D; font-size: 15px; line-height: 20px; }
.sp_trial_entry.on i { font-style: normal; }
.sp_trial_entry.on:focus-visible { outline: 3px solid #00DF81; outline-offset: 2px; }

/* ---- 가입 화면 체험 안내 (join.html?next=trial, 체험이 열린 설치에서만 .on) ---- */
.sp_trial_join_note { display: none; }
.sp_trial_join_note.on { display: block; margin: 0 0 16px; padding: 14px 16px; border: 2px solid #00A862; border-radius: 10px; background: #F2FCF7; color: #1F2937; font-size: 17px; line-height: 1.6; word-break: keep-all; }
.sp_trial_join_note.on b { display: block; margin-bottom: 2px; color: #00804B; font-size: 19px; }

/* 360px 폭 */
@media (max-width: 480px) {
  .sp_trial_page .spt_wrap { padding: 20px 16px 36px; }
  .sp_trial_page .spt_title { font-size: 28px; }
  .sp_trial_page .spt_lead { font-size: 18px; }
  .sp_trial_page .spt_paper { padding: 18px 16px; }
  .sp_trial_page .spt_paper_tit { font-size: 20px; }
  .sp_trial_page .spt_choice { padding: 16px 14px 16px 52px; }
  .sp_trial_page .spt_choice input { left: 14px; }
  .sp_trial_modal .spt_modal_tit { margin-right: 0; margin-top: 52px; }
}
