/* -------- sub-apply -------- */

/* 헤더 오버레이: 배경 이미지 위에 투명하게 올라감 */
body {
    position: relative;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header .inner {
    background: transparent !important;
}

.subWrap .inner {
    height: 380px;
    padding-top: 100px;
    box-sizing: border-box;
}

::placeholder {
    color: #d9d9d9;
}

.gnb-box .gnb li a:not(.gnb-badge-y):not(.gnb-badge-b) {
    color: var(--Primary-dark);
}

.gnb-box .gnb li a:not(.gnb-badge-y):not(.gnb-badge-b):hover {
    color: #ffffff;
}

.subtit h2 {
    font-family: "Paperlogy", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--Primary-dark);
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
}

.check-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.check-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--Primary-dark);
    cursor: pointer;
    flex-shrink: 0;
}

.etc-input {
    width: 160px;
}


/* 본문 스타일 */
section .inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

section .inner .tit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--Primary);
}

/* section .inner .tit::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--Primary-dark);
    flex-shrink: 0;
} */

.writeBox {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.writeBox .module_t {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    font-size: 1.2rem;
}

.writeBox .module_t .caption {
    font-weight: 400;
    font-size: 0.8rem;

    color: var(--Primary);
}

.writeBox .module_t .scaption {
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--Greyscale6);
}

.writeBox.bb {
    padding-bottom: 24px;
    box-sizing: border-box;
    /* border-bottom: 1px solid var(--Greyscale4); */
}

.module_w {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module_w .flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 8px;
}

.module_w .inputField > input {
    border-radius: 8px;
    /* border: 2px solid #d9d9d9; */
}

.zipcode {
    display: block;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    white-space: nowrap;
    background-color: var(--Primary);
    color: white;
}

.module_w .radioBox {
    display: flex;
    flex-direction: row;
    gap: 16px;
}


.inputField input.nop {
    width: 80px;
}

.writeWrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.writeWrap .writetit {
    margin-top: 16px;
    font-weight: 600;
}

/* 셀렉트박스 */
.selectWrap {
    width: 100%;
}

.selectWrap .selectBox {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #ededed;
    box-sizing: border-box;
    background-color: transparent;

    /* color: var(--Greyscale6); */
    background-image: url(../images/common/ico_arrow_drop_down.svg);
    background-repeat: no-repeat;
    background-position: right center;
}

.selectWrap .selectBox .option {
    color: var(--Greyscale6);
    font-size: 0.9rem;
}

.selectWrap.disabled .selectBox {
    background-color: var(--Greyscale3);
}


/* 추가 업로드 버튼 */
.btnWrap {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
}

.addBtn img {
    filter: brightness(0) invert(1);
}

.addBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 180px;
    position: relative;
    padding: 16px 24px;
    border-radius: 8px;
    color: #ffffff;
    box-sizing: border-box;
    font-weight: 600;
    background: var(--Primary);
}

/* 파일 업로드 인풋 */
.uploadfield {
    display: flex;
    flex-direction: column;
    gap: 24px;

    font-size: 0.9rem;
}

.uploadfield ul li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--Stroke);
    box-sizing: border-box;
}

.uploadfield ul li label {
    padding: 4px 8px;
    border-radius: 4px;
    box-sizing: border-box;
    color: white;
    background-color: var(--Primary);
    white-space: nowrap;
    flex-shrink: 0;
}

input[type="file"] {
    position: absolute;
    margin: -1px;
    width: 1px;
    height: 1px;
    font-size: initial;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.uploadfield ul li span {
    display: block;
    width: 100%;
    padding: 4px 8px;
    box-sizing: border-box;
    color: var(--Greyscale6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-delete {
    width: 32px;
    height: 32px;
    padding: 4px;
    /* border: 1px solid var(--Primary); */
    border-radius: 4px;
    box-sizing: border-box;
    background: url(../images/common/ico_delete_white.svg) center no-repeat;
    background-color: var(--Primary);
}

.btn-clear-slot {
    margin-left: 8px;
    width: 24px;
    height: 24px;
    line-height: 1;
    padding: 0;
    border: none;
    background: #dc3545;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
.btn-clear-slot:hover { background: #c82333; }

/* secton sc-note */
.sc-note .inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sc-note .notebox {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 8px;

    font-weight: 600;
    /* background-color: var(--Primary); */
}

.sc-note .notebox button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 16px 0;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 1.05rem;
    color: white;
    background-color: var(--Primary);
    z-index: 1;
}

/* 유의사항 토글 */
.noteBtn:focus {
    outline: none;
}

.note_answer {
    display: none;

    position: relative;
    top: -4px;

    padding: 24px;
    box-sizing: border-box;
    border: 1px solid var(--Greyscale4);

    font-weight: 500;

    background-color: var(--Greyscale0);
}

.note_txt {
    padding: 4px 0;
    box-sizing: border-box;
}

.note_txt::before {
    content: "";

    display: block;
    position: relative;
    top: 16px;
    left: -12px;

    width: 6px;
    height: 6px;

    border-radius: 12px;
    background-color: var(--Primary);
}

.note_txt .color {
    color: var(--Primary-dark);
    font-weight: 600;
}


/* secton sc6 */
.personalInfoBox {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px;
    border: 1px solid var(--Stroke);
    border-radius: 16px;
    box-sizing: border-box;
}

.personalInfo {
    padding: 16px;
    border: 1px solid var(--Stroke);
    border-radius: 16px;
    box-sizing: border-box;
    background-color: var(--Greyscale0);

    font-size: 0.9rem;
    overflow-y: scroll;
}

.personalInfo.fixed-h {
    height: 320px;
}

.personalInfoBox .checkBox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;

    font-size: 0.9rem;
}

.sc6 .checkBox {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--Primary);
    box-sizing: border-box;

    position: relative;

    appearance: none;
    border-radius: 6px;
    cursor: pointer;
}

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: url(../images/common/ico_check.svg) center / contain no-repeat;
    opacity: 0;
}

input[type="checkbox"]:checked {
    background-color: var(--Primary);
    border-color: var(--Primary);
}

input[type="checkbox"]:checked::before {
    background: url(../images/common/ico_check_white.svg) center / contain no-repeat;
    opacity: 1;
}

.agree {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    box-sizing: border-box;
    text-align: center;
    color: var(--Greyscale9);
    font-weight: 500;
}

.submitbtnWrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;

    width: 100%;

    margin-top: 24px;
}

.submitbtnWrap button {
    /* width: 100%; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 45px;
    box-sizing: border-box;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    background-color: var(--Primary);
}

.submitbtnWrap button:disabled,
.submitbtnWrap button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

.submitbtnWrap button.loading .btn-spinner {
    display: inline-block;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.submitbtnWrap .cancle {
    border: 2px solid var(--Primary);
    color: var(--Primary);
    background-color: white;
}

.datepicker {
    position: relative;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #ededed;
    box-sizing: border-box;
    background-color: transparent;
}

@media screen and (max-width: 960px) {
    .coninner {
        padding: 56px 16px;
    }

    .addBtn {
        width: 150px;

        padding: 12px;
        border-radius: 8px;
        box-sizing: border-box;

        font-size: 0.9rem;
        font-weight: 600;
        color: #ffffff;
    }

    section .inner .tit {
        font-size: 1.1rem;
    }

    .sc6 .checkBox {
        justify-content: center;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    section .inner .tit {
        font-size: 1rem;
    }
}

@media screen and (max-width: 440px) {
    .writeBox .module_t {
        font-size: 1rem;
    }

    section .inner {
        gap: 16px;
    }

    .personalInfoBox {
        padding: 14px;
    }

    .submitbtnWrap {
        gap: 8px;
        margin-top: 16px;
    }

    .submitbtnWrap button {
        padding: 12px 24px;
    }

    .modal-content {
        padding: 20px 16px;
        gap: 16px;
    }
}



/* ---------------- sub-adjustment ---------------- */

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tit-caption {
    display: block;

    font-size: 0.8rem;
    color: var(--Primary);
}



/* ---------------- sub-apply-check ---------------- */
.acheckWrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 16px;

    width: 640px;
    margin: 0 auto;
    padding: 24px 56px;
    box-sizing: border-box;
    border: 1px solid var(--Greyscale2);
    border-radius: 8px;
}

.acheck-header {
    font-size: 1.1rem;
    font-weight: 600;
}

.acheck-body {
    width: 100%;
}

.acheck-body .module_t {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

button.confirm {
    width: 100%;
    padding: 16px 0;
    box-sizing: border-box;
    border-radius: 8px;

    font-weight: 600;
    color: white;
    background-color: var(--Primary);
}

@media screen and (max-width: 960px) {
    .acheckWrap {
        width: 100%;
        padding: 24px 16px;
    }
}



/* ---------------- sub-apply-check-list ---------------- */

/* tab-contents */
.tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;

    border-bottom: 2px solid var(--Primary);
}

.tabBtn a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 0.625rem;
    font-size: 1rem;
    font-weight: 500;

    color: var(--Greyscale5);
}

.tab .tabBtn {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: var(--Greyscale0);
}

.tab .tabBtn.active {
    background: var(--Primary);
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.tab .tabBtn.active a {
    color: white;
    font-weight: 700;
}

.tabConItem {
    display: none;
}

.tabConItem.active {
    display: block;
}

@media (max-width: 960px) {    
    .tab {
        width: 100%;
    }

    .tab .tabBtn {
        width:  100%;
    }
}

/* table */
.board tbody tr td a {
    display: block;
    width: 100%;
    text-decoration: underline;
}

.board tbody tr td .setbadge {
    width: 100px;
    padding: 8px 4px;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9rem;
    margin: 0 auto;
    background-color: var(--Greyscale2);
}

.setbadge.approve {
    color: white;
    background-color: var(--Primary) !important;
}
.setbadge.return {
    background-color: #cbcbcb !important;
}
.setbadge.progress {
    color: white;
    background-color: var(--Primary-light) !important;
}

.border-none {
    border-top: 0 !important;
}
/* 테이블 고정형 */
.table-cont {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .table-cont table {
        min-width: 1100px;
    }
}

.board thead tr th {
    font-size: 16px;
    padding: 10px 8px;
}

.board tbody tr td {
    font-size: 16px;
    padding: 10px 8px;
}

.board tbody tr td .setbadge {
    width: auto;
    min-width: 56px;
    padding: 6px 8px;
    font-size: 14px;
}

/* ---------------- apply-check-in ---------------- */
.listbtnWrap {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin-top: 48px;
}

.listbtnWrap .backlist {
    width: 200px;

    padding: 16px;
    border-radius: 8px;
    border: 2px solid var(--Primary);
    box-sizing: border-box;

    font-size: 0.9rem;
    font-weight: 600;
    color: var(--Primary);
}

.submitbtnWrap .backlist {
    width: 100%;

    padding: 16px;
    border-radius: 8px;
    border: 2px solid var(--Primary);
    box-sizing: border-box;

    font-size: 0.9rem;
    font-weight: 600;
    color: var(--Primary);

    background-color: white;
}

@media (max-width: 960px) {    
    .listbtnWrap .backlist {
        width: 140px;
    }
}


/* 안내/신청완료 모달팝업 공통 */
.noticeModal,
.applyModal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
}

.applyModal.active,
.noticeModal.active {
    display: flex;
}

.noticeModal .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.noticeModalClose {
    padding: 8px 30px;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: var(--Primary-light);
    color: white;
    font-weight: 600;
}

.modal-content.active {
    transform: translateY(0);
}

.applyModal .overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;

    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    /* width: 560px; */
    margin-top: 56px;
    padding: 30px 60px;
    border-radius: 11px;
    box-sizing: border-box;
    background-color: white;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.modal-tit {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    font-size: 0.9rem;
    text-align: center;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: #555;
    vertical-align: middle;
    cursor: pointer;
    transition: color 0.15s ease;
}

.copy-btn:hover {
    color: var(--Primary);
}

.copy-btn.copied {
    color: var(--Primary);
}

.modal-footer {
    /* display: flex; */
    /* width: 100%; */
    /* justify-content: flex-end; */
}

.modalClose {
    /* width: 80px; */
    padding: 8px 30px;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: var(--Primary-light);
    color: white;
    font-weight: 600;
}

body.noscroll {
    overflow: hidden;
}

@media (max-width: 960px) {
    .modal-content {
        width: 80%;
    }
}


/* -------------- 우측 퀵바 -------------- */
.quick-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    border: 5px solid #333;
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 100;
    padding: 10px;
    border-radius: 20px;
}

.quick-toggle {
    display: none;
}

.quick-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.quick-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex: 1;
    padding: 10px 8px;
    box-sizing: border-box;
    text-decoration: none;
    color: var(--Greyscale9);
    text-align: center;
    border-bottom: 1px solid #eee;
}

.quick-item:last-child {
    border-bottom: none;
}

.quick-item:hover {
    background-color: var(--Greyscale1);
    border-radius: 11px;
}

.quick-item p {
    font-family: "Paperlogy";
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.13;
}

@media screen and (max-width: 1200px) {
    .quick-bar {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 8px;

        top: auto;
        bottom: 72px;
        right: 16px;
        transform: none;

        border: none;
        background: transparent;
        padding: 0;
        border-radius: 0;
        overflow: visible;
    }

    .quick-items {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;

        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 200ms ease, transform 200ms ease;
    }

    .quick-bar.open .quick-items {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .quick-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 250px;
        padding: 10px 14px;
        border-bottom: none;
        border-radius: 11px;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        gap: 8px;
        word-break: keep-all;
        text-align: left;
    }

    .quick-item p {
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .quick-item:hover {
        background-color: var(--Greyscale1);
        border-radius: 11px;
    }

    .quick-bar .quick-items .quick-item p br {
        display: none;
    }

    .quick-toggle {
        display: block;
        position: relative;
        width: 48px;
        height: 48px;
        border-radius: 48px;
        background-color: var(--Primary);
        cursor: pointer;
        border: none;
        flex-shrink: 0;
        align-self: flex-end;
    }

    .quick-toggle::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: #fff;
        -webkit-mask: url(../images/common/ico_menu.svg) center / 20px no-repeat;
        mask: url(../images/common/ico_menu.svg) center / 20px no-repeat;
    }

    .quick-bar.open .quick-toggle::before {
        -webkit-mask-image: url(../images/common/ico_close.svg);
        mask-image: url(../images/common/ico_close.svg);
    }
}