@charset "utf-8";
/* Modern Scholarship Application Form Design */

/* 전체 페이지 배경 및 기본 스타일 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFA726 0%, #FFB74D 50%, #FFD54F 100%);
    min-height: 100vh;
}

/* 메인 컨테이너 */
#field_w {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* 헤더 타이틀 */
#container_title {
    text-align: center;
    margin: 0 0 40px 0;
    padding: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 폼 전체 스타일 */
#fwrite {
    width: 100% !important;
    padding: 0;
}

/* ### 기본 스타일 커스터마이징 시작 ### */

/* 게시판 버튼 */
/* 목록 버튼 */
#bo_list a.btn_b01 {}
#bo_list a.btn_b01:focus, #bo_list a.btn_b01:hover {}
#bo_list a.btn_b02 {}
#bo_list a.btn_b02:focus, #bo_list a.btn_b02:hover {}
#bo_list a.btn_admin {} /* 관리자 전용 버튼 */
#bo_list a.btn_admin:focus, #bo_list .btn_admin:hover {}

/* 읽기 버튼 */
#bo_v a.btn_b01 {}
#bo_v a.btn_b01:focus, #bo_v a.btn_b01:hover {}
#bo_v a.btn_b02 {}
#bo_v a.btn_b02:focus, #bo_v a.btn_b02:hover {}
#bo_v a.btn_admin {} /* 관리자 전용 버튼 */
#bo_v a.btn_admin:focus, #bo_v a.btn_admin:hover {}

/* 쓰기 버튼 */
#bo_w .btn_confirm {} /* 서식단계 진행 */
#bo_w .btn_submit {}
#bo_w button.btn_submit {}
#bo_w fieldset .btn_submit {}
#bo_w .btn_cancel {}
#bo_w button.btn_cancel {}
#bo_w .btn_cancel:focus, #bo_w .btn_cancel:hover {}
#bo_w a.btn_frmline, #bo_w button.btn_frmline {} /* 우편번호검색버튼 등 */
#bo_w button.btn_frmline {}

/* 기본 테이블 */
/* 목록 테이블 */
#bo_list .tbl_head01 {}
#bo_list .tbl_head01 caption {}
#bo_list .tbl_head01 thead th {}
#bo_list .tbl_head01 thead a {}
#bo_list .tbl_head01 thead th input {} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
#bo_list .tbl_head01 tfoot th {}
#bo_list .tbl_head01 tfoot td {}
#bo_list .tbl_head01 tbody th {}
#bo_list .tbl_head01 td {}
#bo_list .tbl_head01 a {}
#bo_list td.empty_table {}

/* 읽기 내 테이블 */
#bo_v .tbl_head01 {}
#bo_v .tbl_head01 caption {}
#bo_v .tbl_head01 thead th {}
#bo_v .tbl_head01 thead a {}
#bo_v .tbl_head01 thead th input {} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
#bo_v .tbl_head01 tfoot th {}
#bo_v .tbl_head01 tfoot td {}
#bo_v .tbl_head01 tbody th {}
#bo_v .tbl_head01 td {}
#bo_v .tbl_head01 a {}
#bo_v td.empty_table {}

/* 쓰기 테이블 */
#bo_w table {}
#bo_w caption {}
#bo_w .frm_info {}
#bo_w .frm_address {}
#bo_w .frm_file {}

#bo_w .tbl_frm01 {}
#bo_w .tbl_frm01 th {}
#bo_w .tbl_frm01 td {}
#bo_w .tbl_frm01 textarea, #bo_w tbl_frm01 .frm_input {}
#bo_w .tbl_frm01 textarea {}
/*
#bo_w .tbl_frm01 #captcha {}
#bo_w .tbl_frm01 #captcha input {}
*/
#bo_w .tbl_frm01 a {}

/* 필수입력 */
#bo_w .required, #bo_w textarea.required {}

#bo_w .cke_sc {}
#bo_w button.btn_cke_sc{}
#bo_w .cke_sc_def {}
#bo_w .cke_sc_def dl {}
#bo_w .cke_sc_def dl:after {}
#bo_w .cke_sc_def dt, #bo_w .cke_sc_def dd {}
#bo_w .cke_sc_def dt {}
#bo_w .cke_sc_def dd {}

/* ### 기본 스타일 커스터마이징 끝 ### */

/* 게시판 목록 */
#bo_list .td_board {width:120px;text-align:center}
#bo_list .td_chk {width:30px;text-align:center}
#bo_list .td_date {width:60px;text-align:center}
#bo_list .td_datetime {width:110px;text-align:center}
#bo_list .td_group {width:100px;text-align:center}
#bo_list .td_mb_id {width:100px;text-align:center}
#bo_list .td_mng {width:80px;text-align:center}
#bo_list .td_name {width:100px;text-align:center}
#bo_list .td_nick {width:100px;text-align:center}
#bo_list .td_num {width:50px;text-align:center}
#bo_list .td_numbig {width:80px;text-align:center}
#bo_list .td_form {text-align:center}

#bo_list .txt_active {color:#5d910b}
#bo_list .txt_expired {color:#ccc}

#bo_cate h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_cate ul {margin-bottom:10px;padding-left:1px;width:728px;zoom:1}
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_cate li {float:left;margin-bottom:-1px}
#bo_cate a {display:block;position:relative;margin-left:-1px;padding:6px 0 5px;width:90px;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer}
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none}
#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}

.td_subject img {margin-left:3px}

/* 게시판 목록 공통 */
.bo_fx {margin-bottom:5px;zoom:1}
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
.bo_fx ul {margin:0;padding:0;list-style:none}
#bo_list_total {float:left;padding-top:5px}
.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
.btn_bo_user li {float:left;margin-left:5px}
.btn_bo_adm {float:left}
.btn_bo_adm li {float:left;margin-right:5px}
.btn_bo_adm input {padding:8px;border:0;background:#e8180c;color:#fff;text-decoration:none;vertical-align:middle}
.bo_notice td {background:#f5f6fa}
.bo_notice td a {font-weight:bold}
.td_num strong {color:#000}
.bo_cate_link {display:inline-block;margin:0 3px 0 0;padding:0 6px 0 0;border-right:1px solid #e7f1ed;color:#999 !important;font-weight:bold;text-decoration:none} /* 글제목줄 분류스타일 */
.bo_current {color:#e8180c}
#bo_list .cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}

#bo_sch {margin-bottom:10px;padding-top:5px;text-align:center}
#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}

/* 게시판 쓰기 */
#char_count_desc {display:block;margin:0 0 5px;padding:0}
#char_count_wrap {margin:5px 0 0;text-align:right}
#char_count {font-weight:bold}

#autosave_wrapper {position:relative}
#autosave_pop {display:none;z-index:10;position:absolute;top:24px;right:117px;padding:8px;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;overflow-y:scroll}
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}
#autosave_pop div {text-align:right}
#autosave_pop button {margin:0;padding:0;border:0;background:transparent}
#autosave_pop ul {margin:10px 0;padding:0;border-top:1px solid #929292;list-style:none}
#autosave_pop li {padding:8px 5px;border-bottom:1px solid #929292;zoom:1}
#autosave_pop li:after {display:block;visibility:hidden;clear:both;content:""}
#autosave_pop a {display:block;float:left}
#autosave_pop span {display:block;float:right}
.autosave_close {cursor:pointer}
.autosave_content {display:none}

/* 게시판 읽기 */
#bo_v {margin-bottom:20px;padding-bottom:20px}

#bo_v_table {position:absolute;top:0;right:16px;margin:0;padding:0 5px;height:25px;background:#ff3061;color:#fff;font-weight:bold;line-height:2.2em}

#bo_v_title {padding:10px 0;font-size:1.2em}

#bo_v_info {padding:0 0 10px;border-bottom:1px solid #ddd}
#bo_v_info h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_info strong {display:inline-block;margin:0 15px 0 5px;font-weight:normal}
#bo_v_info .sv_member,
#bo_v_info .sv_guest,
#bo_v_info .member,
#bo_v_info .guest {font-weight:bold}

#bo_v_file {}
#bo_v_file h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_file ul {margin:0;padding:0;list-style:none}
#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
#bo_v_file a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {text-decoration:none}
#bo_v_file img {float:left;margin:0 10px 0 0}
.bo_v_file_cnt {display:inline-block;margin:0 0 3px 16px}

#bo_v_link {}
#bo_v_link h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_link ul {margin:0;padding:0;list-style:none}
#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
#bo_v_link a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {text-decoration:none}
.bo_v_link_cnt {display:inline-block;margin:0 0 3px 16px}

#bo_v_top {margin:0 0 10px;padding:10px 0;zoom:1}
#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_top h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_top ul {margin:0;padding:0;list-style:none}

#bo_v_bot {zoom:1}
#bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_bot h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_bot ul {margin:0;padding:0;list-style:none}

.bo_v_nb {float:left}
.bo_v_nb li {float:left;margin-right:5px}
.bo_v_com {float:right}
.bo_v_com li {float:left;margin-left:5px}

#bo_v_atc {min-height:200px;height:auto !important;height:200px}
#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden}

#bo_v_img {margin:0 0 10px;width:100%;overflow:hidden;zoom:1}
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}

#bo_v_con {margin-bottom:30px;width:100%;line-height:1.7em;word-break:break-all;overflow:hidden}
#bo_v_con a {color:#000;text-decoration:underline}
#bo_v_con img {max-width:100%;height:auto}

#bo_v_act {margin-bottom:30px;text-align:center}
#bo_v_act a {margin-right:5px;vertical-align:top}
#bo_v_act span {display:inline-block;margin-right:5px;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:top}
#bo_v_act strong {color:#ff3061}
#bo_v_act_good,
#bo_v_act_nogood {position:absolute;font-size:0;line-height:0;overflow:hidden}

#bo_v_sns {margin:0 0 20px;padding:0;list-style:none;zoom:1}
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;margin:0 5px 0 0}

/* 게시판 댓글 */
#bo_vc {margin:0 0 20px;padding:20px 20px 10px;border:1px solid #e5e8ec;background:#f5f8f9}
#bo_vc h2 {margin-bottom:10px}
#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
#bo_vc header {position:relative;padding:15px 0 5px}
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
#bo_vc .sv_wrap {margin-right:15px}
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
.bo_vc_hdinfo {display:inline-block;margin:0 15px 0 5px}
#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_vc a {color:#000;text-decoration:none}
#bo_vc p {padding:0 0 5px;line-height:1.8em}
#bo_vc p a {text-decoration:underline}
#bo_vc_empty {margin:0;padding:20px !important;text-align:center}
#bo_vc #bo_vc_winfo {float:left}
#bo_vc footer {zoom:1}
#bo_vc footer:after {display:block;visibility:hidden;clear:both;content:""}

.bo_vc_act {float:right;margin:0;list-style:none;zoom:1}
.bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_act li {float:left;margin-left:5px}

#bo_vc_w {position:relative;margin:0 0 10px;padding:0 0 20px;border-bottom:1px solid #cfded8}
#bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_vc_w #char_cnt {display:block;margin:0 0 5px}

#bo_vc_sns {margin:0;padding:0;list-style:none;zoom:1}
#bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc_sns li {float:left;margin:0 20px 0 0}
#bo_vc_sns input {margin:0 0 0 5px}

/* 갤러리 목록 */
#bo_gall h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
#bo_gall #gall_ul {margin:10px 0 0;padding:0;list-style:none;zoom:1}
#bo_gall #gall_ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_gall .gall_li {float:left;margin:0 10px 30px 0}

#bo_gall .gall_con {margin:0;padding:0;list-style:none}
#bo_gall .gall_con li {margin:0 0 4px}
#bo_gall .gall_con .gall_subject {display:inline-block;width:50px}

#bo_gall .gall_now .gall_text_href a {color:#ff3061}

#bo_gall .gall_href a:link, #bo_gall .gall_href a:focus, #bo_gall .gall_href a:hover {text-decoration:none}
#bo_gall .gall_href strong, #bo_gall .gall_href span {display:inline-block;background:#f7f7f7;text-align:center;line-height:10em}

#bo_gall .gall_text_href {margin:10px 0 !important}
#bo_gall .gall_text_href a {font-weight:bold}
#bo_gall .gall_text_href span {display:inline !important}
#bo_gall .gall_text_href img {margin:0 0 0 4px}

.wrap {
    width: 100%;
    height: auto;
    position: relative;
    display: inline-block;
}
.wrap textarea {
    width: 100%;
    resize: none;
    min-height: 4.5em;
    line-height:1.6em;
    max-height: 9em;
}
.wrap span {
    position: absolute;
    bottom: 5px;
    right: 25px;
}
#counter {
  background:rgba(255,0,0,0.5);
  border-radius: 0.5em;
  padding: 0 .5em 0 .5em;
  font-size: 1.05em;
}

/* 개별 파일 업로드 상태 표시 스타일 (아이콘 개선) */
.upload-status {
  margin: 10px 0;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.upload-status.show {
  opacity: 1;
  transform: translateY(0);
}

/* 진행 중 상태 */
.upload-status.upload-progress {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border: 2px solid #FF9800;
  color: #E65100;
}

.upload-status.upload-progress .status-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #FF9800;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 완료 상태 */
.upload-status.upload-success {
  background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
  border: 2px solid #4CAF50;
  color: #2E7D32;
}

.upload-status.upload-success .status-icon {
  width: 20px;
  height: 20px;
  background: #4CAF50;
  border-radius: 50%;
  position: relative;
  animation: checkmark 0.5s ease-in-out;
}

.upload-status.upload-success .status-icon::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 실패 상태 */
.upload-status.upload-error {
  background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  border: 2px solid #F44336;
  color: #C62828;
}

.upload-status.upload-error .status-icon {
  width: 20px;
  height: 20px;
  background: #F44336;
  border-radius: 50%;
  position: relative;
  animation: shake 0.5s ease-in-out;
}

.upload-status.upload-error .status-icon::before,
.upload-status.upload-error .status-icon::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  width: 2px;
  height: 8px;
  background: white;
}

.upload-status.upload-error .status-icon::before {
  transform: rotate(45deg);
}

.upload-status.upload-error .status-icon::after {
  transform: rotate(-45deg);
}

/* 애니메이션 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* 상태 메시지 스타일 */
.upload-status .status-message {
  flex: 1;
  font-weight: 600;
}

.upload-status span {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 2px;
}

.upload-success, .upload-error {
  font-weight: bold;
}

/* 파일 업로드 필드 스타일 개선 */
.frm_file {
  margin: 5px 0;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
}

.frm_file:focus {
  border-color: #2196f3;
  outline: none;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

/* 기존 파일 정보 표시 스타일 */
.uploaded-file-info {
  margin: 5px 0;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.9em;
}

.uploaded-file-info strong {
  color: #495057;
  margin-right: 8px;
}

.uploaded-file-info input[type="checkbox"] {
  margin-left: 10px;
  margin-right: 5px;
}

.uploaded-file-info label {
  color: #dc3545;
  font-weight: normal;
  cursor: pointer;
}

/* ======================= 새로운 폼 디자인 (테이블 없는 버전) ======================= */

/* 새로운 폼 컨테이너 */
.modern-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 폼 그룹 스타일 */
.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.form-group.row .form-label {
    min-width: 150px;
    flex-shrink: 0;
}

/* 라벨 스타일 */
.form-label {
    font-weight: 600;
    color: #2C3E50;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.form-label .required {
    color: #FF6B9D;
    margin-left: 3px;
}

/* 입력 필드 컨테이너 */
.form-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.form-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.form-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 모든 입력 필드 통합 스타일 */
.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #E8F4FD;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #2C3E50;
    background: #FAFCFE;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* 크기별 입력 필드 */
.form-input.small {
    width: 80px;
}

.form-input.medium {
    width: 120px;
}

.form-input.large {
    width: 200px;
}

.form-input.full {
    width: 100%;
}

.form-select {
    cursor: pointer;
    padding-right: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    appearance: none;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* 필수 입력 필드 스타일 */
.form-input.required,
.form-select.required,
.form-textarea.required {
    border-color: #FFB3D6;
    background: #FFFBFC;
}

.form-input.required:focus,
.form-select.required:focus,
.form-textarea.required:focus {
    border-color: #FF6B9D;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 체크박스와 라디오 버튼 */
.form-checkbox,
.form-radio {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #667eea;
    cursor: pointer;
}

.form-checkbox-group,
.form-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-checkbox-item,
.form-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #34495e;
}

/* 주소 입력 특수 스타일 */
.address-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.address-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.address-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 파일 업로드 그룹 */
.file-upload-group {
    background: linear-gradient(135deg, #F8FBFF 0%, #EDF5FF 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #E8F4FD;
    margin: 10px 0;
}

.file-upload-label {
    font-weight: 600;
    color: #2C3E50;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

.file-upload-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #B3E0FF;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #34495e;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-input:hover {
    border-color: #667eea;
    background: #F8FBFF;
}

/* 섹션 구분선 */
.form-section {
    border-top: 2px solid #F1F5F9;
    padding-top: 30px;
    margin-top: 30px;
}

.form-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* 버튼 컨테이너 */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #F1F5F9;
}

.form-button {
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-button.primary {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.form-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.form-button.secondary {
    background: linear-gradient(135deg, #F1F3F4 0%, #E9ECEF 100%);
    color: #6C757D;
}

.form-button.secondary:hover {
    background: linear-gradient(135deg, #E9ECEF 0%, #DEE2E6 100%);
    transform: translateY(-2px);
}

/* 정보 박스 */
.info-box {
    background: linear-gradient(135deg, #E3F2FD 0%, #E8F4FD 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    color: #1565C0;
    font-size: 14px;
    line-height: 1.6;
}

/* ======================= 기존 스타일 숨기기 (write 페이지에서만) ======================= */

/* 기존 테이블 스타일 숨기기 - modern-form-container 내부에서만 적용 */
.modern-form-container .tbl_frm01 {
    display: none !important;
}

/* 기존 테이블 관련 스타일 재정의 - modern-form-container 내부에서만 적용 */
.modern-form-container .tbl_frm01 table,
.modern-form-container .tbl_frm01 tbody,
.modern-form-container .tbl_frm01 tr,
.modern-form-container .tbl_frm01 th,
.modern-form-container .tbl_frm01 td {
    display: none !important;
}

/* 새로운 폼 디자인을 위한 기존 스타일 오버라이드 */
.modern-form-container * {
    box-sizing: border-box;
}

/* 모든 form-input 요소에 통일된 스타일 적용 */
.form-input,
.form-select,
.form-textarea,
.file-upload-input {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* 기존 frm_input 클래스 스타일 오버라이드 */
.frm_input {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    border: 2px solid #E8F4FD !important;
    border-radius: 8px !important;
    background: #FAFCFE !important;
    color: #2C3E50 !important;
    transition: all 0.3s ease !important;
}

.frm_input:focus {
    border-color: #667eea !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* 기존 frm_file 클래스 스타일 오버라이드 */
.frm_file {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    border: 2px dashed #B3E0FF !important;
    border-radius: 8px !important;
    background: white !important;
    color: #34495e !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.frm_file:hover {
    border-color: #667eea !important;
    background: #F8FBFF !important;
}

/* 라벨 텍스트 스타일 통일 */
.form-input-group span {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 14px !important;
    color: #34495e !important;
    font-weight: 500 !important;
}

/* 링크 스타일 */
.info-box a,
.file-upload-label a {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.info-box a:hover,
.file-upload-label a:hover {
    color: #5a6fd8 !important;
    text-decoration: underline !important;
}

/* 업로드 상태 메시지 향상 */
.upload-status {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.upload-status.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 숨겨진 스타일 */
#wr_3tr,
#wr_4tr {
    display: none !important;
}

/* ======================= 모던 스타일 업데이트 ======================= */

/* 테이블 스타일 재정의 */
#bo_w .tbl_frm01 {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 30px 0 !important;
    border: none !important;
    background: transparent !important;
}

#bo_w .tbl_frm01 th {
    background: linear-gradient(135deg, #F8FBFF 0%, #EDF5FF 100%) !important;
    color: #2C3E50 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-align: left !important;
    width: 200px !important;
    padding: 25px 30px !important;
    border: none !important;
    border-radius: 15px 0 0 15px !important;
    vertical-align: middle !important;
    position: relative !important;
}

#bo_w .tbl_frm01 th:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

#bo_w .tbl_frm01 td {
    background: white !important;
    padding: 25px 30px !important;
    border: none !important;
    border-radius: 0 15px 15px 0 !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

/* 입력 필드 스타일 재정의 */
#bo_w input[type="text"],
#bo_w input[type="email"],
#bo_w input[type="tel"], 
#bo_w input[type="password"],
#bo_w input[type="number"],
#bo_w textarea,
#bo_w select {
    width: 100% !important;
    padding: 18px 25px !important;
    border: 2px solid #E8F4FD !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    color: #2C3E50 !important;
    background: #FAFCFE !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

#bo_w input:focus,
#bo_w textarea:focus,
#bo_w select:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* 체크박스와 라디오 버튼 모던 스타일 */
#bo_w input[type="checkbox"],
#bo_w input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    margin-right: 12px !important;
    accent-color: #667eea !important;
    cursor: pointer !important;
}

/* 라벨 스타일 */
#bo_w label {
    font-weight: 500 !important;
    color: #34495e !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 20px !important;
}

/* 필수 항목 스타일 */
#bo_w .required {
    border-color: #FF6B9D !important;
    background: #FFF8FB !important;
}

#bo_w .required:focus {
    border-color: #FF6B9D !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15) !important;
}

/* 버튼 스타일 재정의 */
#bo_w .btn_submit,
#bo_w button.btn_submit,
#bo_w fieldset .btn_submit {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%) !important;
    color: white !important;
    border: none !important;
    padding: 20px 50px !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3) !important;
    margin: 40px 20px 20px 0 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
}

#bo_w .btn_submit:hover,
#bo_w button.btn_submit:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4) !important;
}

#bo_w .btn_cancel,
#bo_w button.btn_cancel {
    background: linear-gradient(135deg, #F1F3F4 0%, #E9ECEF 100%) !important;
    color: #6C757D !important;
    border: none !important;
    padding: 20px 50px !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 40px 20px 20px 0 !important;
    letter-spacing: 0.5px !important;
}

#bo_w .btn_cancel:hover,
#bo_w button.btn_cancel:hover {
    background: linear-gradient(135deg, #E9ECEF 0%, #DEE2E6 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.2) !important;
}

/* 파일 업로드 섹션 스타일 */
.frm_file {
    background: linear-gradient(135deg, #E8F6FF 0%, #F0F9FF 100%) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    margin: 20px 0 !important;
    border: 2px solid #B3E0FF !important;
    position: relative !important;
}

.frm_file:before {
    content: '📎';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    opacity: 0.5;
}

/* 업로드 상태 스타일 개선 */
.upload-status {
    background: white !important;
    border: 2px solid #E8F4FD !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin: 10px 0 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.upload-status.upload-success {
    border-color: #4CAF50 !important;
    background: linear-gradient(135deg, #E8F5E8 0%, #F1F9F1 100%) !important;
    color: #2E7D32 !important;
}

.upload-status.upload-error {
    border-color: #F44336 !important;
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%) !important;
    color: #C62828 !important;
}

.upload-status.upload-progress {
    border-color: #FF9800 !important;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%) !important;
    color: #E65100 !important;
}

/* 업로드된 파일 정보 스타일 */
.uploaded-file-info {
    background: linear-gradient(135deg, #F8FFF8 0%, #E8F8E8 100%) !important;
    border: 2px solid #C8E6C9 !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin: 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* 테이블 행 간격 조정 */
#bo_w .tbl_frm01 tr {
    margin-bottom: 15px;
}

#bo_w .tbl_frm01 tr:not(:last-child) th,
#bo_w .tbl_frm01 tr:not(:last-child) td {
    border-bottom: 2px solid #F8FBFF;
}

/* 폼 정보 박스 스타일 */
#bo_w .frm_info {
    background: linear-gradient(135deg, #E3F2FD 0%, #E8F4FD 100%) !important;
    border: none !important;
    border-left: 5px solid #667eea !important;
    padding: 25px 30px !important;
    border-radius: 0 15px 15px 0 !important;
    margin: 30px 0 !important;
    color: #1565C0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* ======================= 본인사진 표시 스타일 ======================= */

#profile_photo_section {
    background: linear-gradient(135deg, #F8FBFF 0%, #EDF5FF 100%);
    border: 2px solid #E8F4FD;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#profile_photo_section h3 {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 25px;
    text-align: center;
}

.profile-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-photo {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.profile-photo-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Sans KR', sans-serif;
}

.profile-photo-info strong {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-photo-info span {
    font-size: 16px;
    color: #6C757D;
    font-weight: 500;
}

/* 모바일에서 본인사진 크기 조정 */
@media (max-width: 768px) {
    .profile-photo {
        width: 150px;
        height: 180px;
    }
    
    .profile-photo-info strong {
        font-size: 18px;
    }
    
    .profile-photo-info span {
        font-size: 14px;
    }
    
    #profile_photo_section {
        padding: 20px;
        margin: 20px 0;
    }
    
    #profile_photo_section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* ======================= 반응형 디자인 ======================= */

/* 태블릿 */
@media (max-width: 768px) {
    #field_w {
        margin: 20px auto;
        padding: 15px;
        border-radius: 15px;
        max-width: 95%;
    }
    
    #container_title {
        font-size: 22px;
        margin-bottom: 30px;
        padding: 15px;
    }
    
    #bo_w .tbl_frm01 th {
        width: 120px !important;
        font-size: 14px !important;
        padding: 20px 15px !important;
    }
    
    #bo_w .tbl_frm01 td {
        padding: 20px 15px !important;
    }
    
    #bo_w input[type="text"],
    #bo_w input[type="email"],
    #bo_w input[type="tel"], 
    #bo_w input[type="password"],
    #bo_w input[type="number"],
    #bo_w textarea,
    #bo_w select {
        padding: 15px 20px !important;
        font-size: 15px !important;
    }
    
    #bo_w .btn_submit,
    #bo_w button.btn_submit {
        padding: 18px 35px !important;
        font-size: 16px !important;
        margin: 30px 10px 15px 0 !important;
    }
    
    #bo_w .btn_cancel,
    #bo_w button.btn_cancel {
        padding: 18px 35px !important;
        font-size: 16px !important;
        margin: 30px 10px 15px 0 !important;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    body {
        padding: 0 10px;
    }
    
    #field_w {
        margin: 10px auto;
        padding: 10px;
        border-radius: 12px;
        max-width: 100%;
    }
    
    #container_title {
        font-size: 20px;
        margin-bottom: 25px;
        padding: 10px;
    }
    
    /* 모바일에서 테이블을 세로 배치로 변경 */
    #bo_w .tbl_frm01 {
        margin: 20px 0 !important;
    }
    
    #bo_w .tbl_frm01 th,
    #bo_w .tbl_frm01 td {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
    }
    
    #bo_w .tbl_frm01 th {
        border-radius: 12px 12px 0 0 !important;
        font-size: 14px !important;
        padding-bottom: 10px !important;
    }
    
    #bo_w .tbl_frm01 th:after {
        display: none;
    }
    
    #bo_w .tbl_frm01 td {
        border-radius: 0 0 12px 12px !important;
        padding-top: 0 !important;
        margin-bottom: 20px !important;
    }
    
    #bo_w input[type="text"],
    #bo_w input[type="email"],
    #bo_w input[type="tel"], 
    #bo_w input[type="password"],
    #bo_w input[type="number"],
    #bo_w textarea,
    #bo_w select {
        padding: 15px 18px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }
    
    #bo_w .btn_submit,
    #bo_w button.btn_submit {
        width: 100% !important;
        padding: 20px 30px !important;
        font-size: 17px !important;
        margin: 25px 0 15px 0 !important;
        border-radius: 12px !important;
    }
    
    #bo_w .btn_cancel,
    #bo_w button.btn_cancel {
        width: 100% !important;
        padding: 18px 30px !important;
        font-size: 16px !important;
        margin: 10px 0 15px 0 !important;
        border-radius: 12px !important;
    }
    
    .frm_file {
        padding: 20px !important;
        margin: 15px 0 !important;
    }
    
    .upload-status {
        padding: 12px 15px !important;
        margin: 8px 0 !important;
        font-size: 13px !important;
    }
    
    .upload-status .status-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .upload-status.upload-success .status-icon::after {
        left: 5px !important;
        top: 2px !important;
        width: 5px !important;
        height: 8px !important;
    }
    
    .upload-status.upload-error .status-icon::before,
    .upload-status.upload-error .status-icon::after {
        left: 7px !important;
        top: 4px !important;
        width: 2px !important;
        height: 6px !important;
    }
    
    .uploaded-file-info {
        padding: 12px 15px !important;
        margin: 8px 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    #bo_w .frm_info {
        padding: 20px 25px !important;
        margin: 25px 0 !important;
        font-size: 14px !important;
    }
}