/* ===== IMPORTS ===== */
@import "swiper.min.css";

/* ===== BUTTON STYLES ===== */
.btn_default {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    height: 6rem;
    background-color: #191919;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 1.2rem;
    cursor: pointer;
}

@media all and (max-width: 1023px) {
    .btn_default {
        height: 5rem;
        font-size: 1.6rem;
        font-weight: 600;
    }
}

@media all and (min-width: 1024px) and (max-width: 1439px) {
    .btn_default {
        height: 5rem;
        font-size: 1.6rem;
        font-weight: 600;
    }
}

.btn_default:disabled {
    pointer-events: none;
}

.btn_default.white {
    background-color: #fff;
    color: #222;
    border: 1px solid #191919;
}

.btn_default.white:disabled {
    background-color: #fff !important;
    color: #ddd !important;
    border-color: #f1f1f1;
}

.btn_default.blue {
    background-color: #263c7d;
    color: #fff;
    font-weight: 500;
}

.btn_default.s_linear {
    margin-bottom: 1rem;
    background: -webkit-gradient(linear, left top, right top, from(#002756), to(#092CFF));
    background: linear-gradient(to right, #002756, #092CFF);
}

.btn_default.disable {
    color: #fff;
    background-color: #bbb;
}

.btn {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.btn button {
    width: 100%;
}

/* ===== TOOLTIP STYLES ===== */
.tooltip {
    color: #bbb;
    font-size: 1.2rem;
    text-align: right;
    cursor: pointer;
}

.tooltip.on .btn_tooltip::before {
    content: "";
}

.tooltip.on .tooltip__area {
    display: block;
}

.tooltip .btn_tooltip {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.tooltip .btn_tooltip i {
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 0.4rem;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("../images/icon_tooltip.svg");
}

.tooltip .btn_tooltip::before {
    content: none;
    position: absolute;
    left: 0.5rem;
    top: 1.7rem;
    font-size: 0;
    line-height: 0;
    color: rgba(0,0,0,0);
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-left: 0.8rem solid rgba(0,0,0,0);
    border-right: 0.8rem solid rgba(0,0,0,0);
    border-top: 0.9rem solid #222;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.tooltip .tooltip__area {
    display: none;
    top: 2.7rem;
    left: 0;
    width: calc(100% + 13px);
    padding: 1.4rem 3.6rem 1.4rem 1.4rem;
    background-color: #222;
}

.tooltip .tooltip__area::before {
    content: none;
}

.tooltip .btn_close {
    position: absolute;
    right: 0.5rem;
    top: 0rem;
    width: 2.6rem;
    height: 2.6rem;
}

.tooltip .btn_close i {
    font-size: 0;
    line-height: 0;
    color: rgba(0,0,0,0);
    display: inline-block;
    vertical-align: middle;
    position: relative;
    height: 1px;
    width: 1.4rem;
    background-color: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.tooltip .btn_close i:before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1.4rem;
    background-color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* ===== TAB STYLES ===== */
.tab_box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: auto;
}

.tab_box > button {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
    padding: 1.4rem 1.8rem;
    border: 1px solid #7a7a7a;
    border-radius: 4rem;
    background-color: #fff;
    color: #555;
    margin-right: 1rem;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

@media all and (max-width: 1023px) {
    .tab_box > button {
        padding: 1.2rem 1.6rem;
        font-size: 1.6rem;
        font-weight: 400;
    }
}

.tab_box > button.on {
    background: -webkit-gradient(linear, left top, right top, from(#002756), to(#092CFF));
    background: linear-gradient(to right, #002756, #092CFF);
    color: #fff;
    font-weight: 800;
}

/* ===== RADIO BUTTON STYLES ===== */
.cont_box .btn_radio {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.cont_box .btn_radio input[type=radio] {
    display: none;
}

.cont_box .btn_radio label {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 1.8rem;
    border: 1px solid #ddd;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 1.6rem;
    text-align: center;
    cursor: pointer;
    -webkit-transition: .2s;
    transition: .2s;
}

.cont_box .btn_radio input[type=radio]:checked + label {
    border: 0.1rem solid #191919;
    color: #191919;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
*, *:after, *:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "SUIT", sans-serif;
}

html, body {
    height: 100%;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-font-smoothing: antialiased;
    font-family: "SUIT", sans-serif;
}

/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strong, var, b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    font-size: 62.5%;
}

body {
    line-height: 1.35;
    font-size: 1.6rem;
    word-wrap: break-word;
    word-break: break-all;
}

/* Background Classes */
body.bgf {
    background-color: #f8f8f8 !important;
}

body.bgb .bg_body_full {
    background-color: #f8f8f8 !important;
}

body.bgt {
    background-color: #f8f8f8 !important;
}

body.bgt #header,
body.bgt #content section {
    background-color: #f8f8f8 !important;
}

body.bg_main {
    background-color: #fafafa !important;
}

body.bg_main .bg_body_full {
    background-color: #fafafa !important;
}

/* Layout Elements */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

img, video, audio, object, embed, iframe {
    max-width: 100%;
}

@media all and (min-width: 640px) {
    img, video, audio, object, embed, iframe {
        width: 100%;
    }
}

video {
    background-color: rgba(0,0,0,0) !important;
    border: none !important;
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    mix-blend-mode: multiply;
}

img {
    height: auto;
    vertical-align: top;
}

i, address {
    font-style: normal;
}

a, s {
    text-decoration: none;
}

h1, h2, h3, h4, h5, strong, b, th {
    font-weight: 500;
    font-family: "SUIT", sans-serif;
}

pre {
    word-break: break-all;
    white-space: pre-line;
}

/* Accessibility */
legend, caption, .blind {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
}

/* Form Elements */
button, select {
    text-transform: none;
}

button {
    cursor: pointer;
}

button, input, optgroup, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0,0,0,0);
    border-radius: 0;
    border: 0;
    font-family: "SUIT", sans-serif;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    resize: none;
}

input[type=password] {
    letter-spacing: 0.05rem;
}

input[type=email] {
    ime-mode: disabled;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    font-weight: 500;
    background-repeat: no-repeat;
    background-position: 100% 50%;
}

:disabled, .disabled {
    background-color: #e6e6e6 !important;
    color: rgba(0,0,0,.25) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

::-webkit-input-placeholder {
    color: #a7a7a7;
}

::-moz-placeholder {
    color: #a7a7a7;
}

:-ms-input-placeholder {
    color: #a7a7a7;
}

::-ms-input-placeholder {
    color: #a7a7a7;
}

::placeholder {
    color: #a7a7a7;
}

:focus {
    outline: 0;
}

button {
    color: inherit;
}

/* Utility Classes */
.co-red {
    color: #e90000 !important;
}

.co-blue {
    color: #1b60ff !important;
}

.u {
    text-decoration: underline;
}

.hide {
    display: block;
    overflow: hidden;
    width: 0;
    height: 0;
    font-size: 0;
    clip: rect(-1px, -1px, -1px, -1px);
    position: absolute;
    left: -9999px;
}

/* ===== LAYOUT COMPONENTS ===== */
#wrap {
    width: 100%;
    min-height: 100vh;
    padding-top: 5.6rem;
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

#header, .ly_pop .header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    background-color: #fff;
    min-height: 5.6rem;
}

#header h1, .ly_pop .header h1 {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    font-size: 1.8rem;
    padding-left: 5.4rem;
    padding-right: 5.4rem;
    font-weight: 400;
}

/* ===== MODAL/POPUP STYLES ===== */
.ly_pop {
    display: none;
    z-index: 22;
    position: fixed;
    left: 0;
    top: 0;
}

.ly_pop, .ly_pop:before {
    width: 100%;
    height: 100vh;
}

.ly_pop:before {
    background-color: rgba(0,0,0,.5);
}

.ly_pop:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
}

.ly_pop .wrap {
    width: auto;
    z-index: 1;
    position: absolute;
    background-color: #fff;
    -webkit-transition: all .35s linear;
    transition: all .35s linear;
    line-height: 150%;
}

.ly_pop.show .wrap {
    opacity: 1;
}

.ly_pop.popBtm {
    display: block !important;
    bottom: 0;
    top: auto;
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
    -webkit-transition-delay: .35s;
    transition-delay: .35s;
}

.ly_pop.popBtm:before {
    position: fixed;
    opacity: 0;
    top: auto;
    bottom: 0;
}

.ly_pop.popBtm .wrap {
    opacity: 0;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    -webkit-transition-property: all;
    transition-property: all;
    -webkit-transition-timing-function: ease;
    transition-timing-function: ease;
    -webkit-transition-duration: .35s;
    transition-duration: .35s;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}

.ly_pop.popBtm.ndim {
    left: 0;
}

.ly_pop.popBtm.show {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    will-change: transform;
}

.ly_pop.popBtm.show:before {
    opacity: 1;
}

.ly_pop.popBtm.show .wrap {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.ly_pop.full:before {
    display: none;
}

.ly_pop.full .wrap {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 0;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    background-color: #fff;
    overflow-x: hidden;
}

.ly_pop.ndim {
    display: block;
    right: auto;
    left: -2000px;
    width: 100%;
}

.ly_pop.ndim .content {
    overflow: hidden;
    height: auto;
    text-align: center;
    margin-bottom: 2.4rem;
}

.ly_pop.popBtm .wrap {
    max-width: 43rem;
    border-radius: 2.6rem;
    bottom: auto;
    left: 50%;
    top: 50%;
    padding: 3rem 2rem;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

@media all and (max-width: 1023px) {
    .ly_pop.popBtm .wrap {
        width: calc(100% - 40px);
    }
}

.ly_pop.popBtm .wrap .ttl {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.ly_pop.popBtm .wrap .icon_empty {
    display: inline-block;
    margin-bottom: 1.4rem;
    width: 6.5rem;
    height: 6.5rem;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("../images/icon_empty.svg");
}

.ly_pop.popBtm .wrap.use pre {
    text-align: left;
    color: #555;
    font-size: 1.4rem;
    overflow-wrap: break-word;
    word-spacing: normal;
    word-break: break-all;
    white-space: pre-line;
    font-family: "SUIT";
    margin-top: 2.6rem;
    color: #191919;
    line-height: 1.4;
    font-weight: 600;
}

.ly_pop.popBtm .wrap.use .sub {
    overflow-y: scroll;
    height: 40rem;
}

.ly_pop.popBtm .wrap.detail .ttl {
    padding-bottom: 2.4rem;
}

.ly_pop.popBtm .wrap.detail .li_box {
    background-color: #f8f8f8;
    border-radius: 1.2rem;
    text-align: left;
    padding: 2rem;
}

.ly_pop.popBtm .wrap.detail .li_box strong {
    font-weight: 700;
}

.ly_pop.popBtm .wrap.detail .li_box div {
    padding-top: 1.4rem;
    color: #4c4c4c;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: -0.5px;
}

.ly_pop.popBtm .wrap.detail .sub {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2.2rem;
    height: 32rem;
    overflow-y: scroll;
}

@media all and (max-width: 1023px) {
    .ly_pop.popBtm .wrap.detail .sub {
        height: 28rem;
    }
}

.ly_pop.popBtm .wrap.detail .sub b {
    font-weight: 700;
}

.ly_pop.popBtm .wrap.detail .f_check {
    margin-top: 2rem;
    text-align: left;
}

.ly_pop.popBtm .wrap.detail .content {
    margin-bottom: 0;
}

.ly_pop.popBtm.show .wrap {
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* ===== FORM COMPONENTS ===== */
.f_check {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}

.f_check input[type=checkbox] {
    display: none;
}

.f_check input[type=checkbox] + label {
    padding-left: 2.6rem;
    cursor: pointer;
    color: #4c4c4c;
    font-size: 1.6rem;
    font-weight: 600;
}

.f_check input[type=checkbox] + label::before {
    content: "";
    width: 1.8rem;
    height: 1.8rem;
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("../images/f_check.svg");
}

.f_check input[type=checkbox]:checked + label::before {
    background-image: url("../images/f_checked.svg");
}

.input-group {
    height: 6rem;
    border-radius: 1.2rem;
    border: 0.1rem solid #ddd;
    overflow: hidden;
}

@media all and (max-width: 1023px) {
    .input-group {
        height: 5rem;
    }
}

@media all and (min-width: 1024px) and (max-width: 1439px) {
    .input-group {
        height: 5rem;
    }
}

.input-group:hover,
.input-group:active {
    border-color: #191919;
}

.input-group input {
    width: 100%;
    height: 100%;
    text-align: center;
}

/* ===== HEADER NAVIGATION ===== */
.header {
    background-color: #fff;
    border-bottom: 0.1rem solid #eee;
}

.header .nav {
    width: 126rem;
    height: 8.4rem;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 500;
}

@media all and (max-width: 1023px) {
    .header .nav {
        display: none;
    }
}

.header .nav h1 {
    width: 10rem;
    margin-right: 7rem;
    cursor: pointer;
}

.header .nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 1.6rem 0;
    gap: 3.5rem; /* 메뉴 간격 축소 - 법률상담/자문 텍스트 줄바꿈 방지 */
    /* gap: 8rem; 기존 */
}

.header .nav ul li {
    color: #555;
    font-weight: 700;
    cursor: pointer;
}

.header .nav ul li.active {
    background: -webkit-gradient(linear, left top, right top, from(#002756), to(#092CFF));
    background: linear-gradient(to right, #002756, #092CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(0,0,0,0);
    font-weight: 700;
}

/* 공지사항과 내 신청내역 사이 여백 추가 */
.header .nav ul li:nth-last-child(1) {
    margin-left: 2rem; /* 내 신청내역 앞에 여백 추가 */
}

.header .nav p {
    background: -webkit-gradient(linear, left top, right top, from(#002756), to(#092CFF));
    background: linear-gradient(to right, #002756, #092CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(0,0,0,0);
}

/* Mobile Navigation */
.header .nav-all {
    display: none;
}

@media all and (max-width: 1023px) {
    .header .nav-all {
        display: block;
        position: fixed;
        background-color: #fff;
        width: 100%;
        z-index: 21;
    }
    
    .header .nav-all .menu {
        position: relative;
        width: 24px;
        height: 20px;
        z-index: 19;
    }
    
    .header .nav-all .menu .line {
        display: block;
        height: 2px;
        background-color: #000;
        margin-bottom: 5px;
        -webkit-transition: .3s;
        transition: .3s;
    }
    
    .header .nav-all .menu.is-active p:nth-child(1) {
        -webkit-transform: rotate(45deg) translate(5px, 5px);
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .header .nav-all .menu.is-active p:nth-child(2) {
        opacity: 0;
    }
    
    .header .nav-all .menu.is-active p:nth-child(3) {
        -webkit-transform: rotate(-45deg) translate(5px, -5px);
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .header .nav-all .head {
        padding: 1.6rem;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    
    .header .nav-all .head .logo {
        width: 8.5rem;
        margin: 0 auto;
        -webkit-transform: translate(-10%, 0);
        transform: translate(-10%, 0);
    }
    
    .header .nav-all ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 20px 16px;
        -webkit-transition: left .5s ease;
        transition: left .5s ease;
        -webkit-transition: all .3s;
        transition: all .3s;
    }
    
    .header .nav-all ul li {
        font-size: 1.6rem;
        padding: 2rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .header .nav-all ul li.active {
        font-weight: 700;
        color: #263c7d;
    }
        
    .header .nav-all ul.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        height: 100vh;
        z-index: 21;
    }
}

@media all and (max-width: 1023px) {
    .header .logout {
        padding: 2rem 0;
        border-bottom: 1px solid #eee;
    }
}

.header .logout span {
    background-color: #7a7a7a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: none;
    border: 0.1rem solid #ccc;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    padding: 0.6rem;
    margin-left: 0.6rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

/* ===== UTILITY ===== */
#ct-alert {
    z-index: 50;
}