:root {
    --bc: #f3f3f3;
    --bc-dark: #141412;
    /* --primary: rgb(161, 166, 252); */
    --blue: #114194;
    /* --accent1: rgba(251,161,229,1);
    --accent2: rgba(241,196,161,1); */
    --white: #ffffff;
    --black: #000000;
    /* Gray Colors */
    --gray: #888;
    --gray-dark: #1c1a19;
    /* Gradients */
    --pace: linear-gradient(90deg, #114194 0%, #006FDF 70%, rgb(42, 133, 244) 100%);
    /* --pace: linear-gradient(90deg, rgba(161,166,252,1) 0%, rgba(251,161,229,1) 50%, rgba(241,196,161,1) 100%); */
    /* Sizes */
    --heading: 3.4rem;
    --paragraph: 1.1rem;
    --button-small: 1rem;
    /* Fonts */
    --font-main: AppleSDGothic, apple sd gothic neo, noto sans korean, noto sans korean regular, noto sans cjk kr, noto sans cjk, nanum gothic, malgun gothic, dotum, arial, helvetica, MS Gothic, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    font-family: var(--font-main);
    background-color: var(--bc);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    letter-spacing: -0.5px;
    position: relative;
}

main {
    min-height: 100vh;
}

/* Global classes */
.flexbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flexbox-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.flexbox-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.flexbox-col {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.flexbox-col-left {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.flexbox-col-right {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
}

.flexbox-left-start {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.flexbox-space {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form */
.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrap {
    width: 75%;
}

.form {
    width: 100%;
}

.form-title {
    margin: 1em 0 0 0;
    font-size: var(--heading);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.form-title .inswave {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.form-undertitle {
    margin: 0 0 1em 0;
    color: var(--gray);
    font-weight: 300;
}

.send-success {
    width: 100%;
    padding: 1em;
    border-radius: 4px;
    background-color: var(--light-green);
    color: var(--white);
}

.send-error {
    width: 100%;
    padding: 1em;
    border-radius: 4px;
    background-color: var(--red);
    color: var(--white);
}

.form-text {
    margin: 1em 0 .75em 2px;
    color: var(--gray-dark);
    font-weight: 300;
}

.form-text>span {
    color: red;
    font-weight: bold;
    padding-left: 3px;
}

.form-input-grid {
    margin: 1.5em 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1.5em;
}

.form-input-max {
    margin: 1.5em 0;
}

.form-input-wrapper {
    width: 100%;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 20px;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 0 5px 20px 0 rgba(233, 233, 238, 0.8);
    background-color: var(--white);
    border: 2px solid var(--white);
    transition: border .15s ease-in-out;
}

.form-input:hover {
    border: 2px solid var(--blue);
}

.form-input:focus {
    outline: none;
    border: 2px solid var(--blue);
}

input::placeholder {
    color: var(--gray);
}

.form-select {
    background-color: var(--white);
    border: 2px solid var(--white);
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px 0 rgba(233, 233, 238, 0.8);
}

.form-select:focus,
.form-select:hover {
    border: 2px solid var(--blue);
}

select {
    padding: 16px 15px 16px 20px;
    position: relative;
    background: transparent;
    background-image: none;
    display: block;
    width: 100%;
    outline: none;
    color: var(--gray);
    cursor: pointer;
    z-index: 2;
    border: none;
    font-size: 14px;
    line-height: 1;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

select:disabled {
    color: #eee;
}

select:-moz-focusring {
    color: transparent;
    box-shadow: 0 5px 20px 0 rgba(233, 233, 238, 0.8);
}

select::-ms-expand {
    display: none;
}


#form-button {
    font-size: 1.22rem;
}

/* Button */
.button-wrapper {
    margin: 2em 0 1em 0;
}

.button,
.btn-secondary {
    margin: 0;
    width: 100%;
    position: relative;
    padding: 1.2em 1.8em;
    letter-spacing: .1em;
    text-align: center;
    color: var(--white);
    font-size: var(--button-small);
    background: var(--pace);
    background-size: 500%;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transform: scaleX(1);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), filter .3s cubic-bezier(.175, .885, .32, 1.275), bottom .3s cubic-bezier(.175, .885, .32, 1.275), background-position 3s cubic-bezier(.455, .03, .515, .955), -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275), -webkit-filter .3s cubic-bezier(.175, .885, .32, 1.275);
}

.button {
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), bottom .3s cubic-bezier(.175, .885, .32, 1.275), background-position 3s cubic-bezier(.455, .03, .515, .955), -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275);
}

.button,
.button .btn-secondary {
    background-position: 0 50%;
    bottom: 0;
}

.button .btn-secondary {
    left: 0;
    width: 100%;
    position: absolute;
    filter: blur(1rem);
    opacity: .8;
    z-index: -1;
    transform: scale3d(.9, .9, 1);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), filter .3s cubic-bezier(.175, .885, .32, 1.275), bottom .3s cubic-bezier(.175, .885, .32, 1.275), background-position 3s cubic-bezier(.455, .03, .515, .955), -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275), -webkit-filter .3s cubic-bezier(.175, .885, .32, 1.275);
}

.button:focus,
.button:hover {
    background-position: 100% 50%;
    outline: none;
}

.button:focus .btn-secondary,
.button:hover .btn-secondary {
    background-position: 100% 50%;
    filter: blur(1.6rem);
}

/* Media Rules */
@media only screen and (max-width: 1660px) {
    :root {
        /* Sizes */
        --heading: 3rem;
    }
}

@media only screen and (max-width: 1456px) {
    :root {
        /* Sizes */
        --heading: 2.8rem;
    }
}

@media only screen and (max-width: 1024px) {
    :root {
        /* Sizes */
        --heading: 2.4rem;
    }

    /* Form */
    .wrap {
        width: 85%;
    }
}

@media only screen and (max-width: 756px) {
    :root {
        /* Sizes */
        --heading: 2.2rem;
    }

    /* Form */
    .wrap {
        width: 90%;
    }
}

@media only screen and (max-width: 576px) {

    /* Form */
    .form-input-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        grid-column-gap: 0;
        grid-row-gap: 1.5em;
    }

    form>div+div {
        margin-top: 2.5em !important;
    }
}

@media only screen and (max-width: 496px) {
    :root {
        /* Sizes */
        --heading: 1.75rem;
    }
}

.search-item-box.on span::after {
    transform: translateY(-50%) rotate(180deg);
}

.search-item-box.on .search-item {
    display: block;
}

.search-item-box.on:after {
    content: '';
    display: block;
    position: absolute;
    background-color: var(--white);
    z-index: 3;
    width: calc(100% - 4px);
    height: 10px;
    top: 40px;
    left: 2px;
}

.search-item-box.on:before {
    content: '';
    border: 2px solid var(--blue);
    position: absolute;
    z-index: 2;
    width: calc(100% - 4px);
    height: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    ;
    border-bottom: 0;
    cursor: pointer;
}

.search-item-box.on>p {
    box-shadow: none;
}

.search-item-box.on ul.search-item {
    border: 2px solid var(--blue);
}

.search-item-box {
    position: relative;
    z-index: 1;
}

.search-item-box>p {
    background-color: var(--white);
    width: 100%;
    height: 100%;
    padding: 16px;
    padding-left: 20px;
    box-sizing: border-box;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    margin: 0;
    line-height: 1;
    box-shadow: 0 5px 20px 0 rgba(233, 233, 238, 0.8);
    border: 2px solid var(--white);
    border-radius: 10px;
    transition: border .15s ease-in-out;
}

.search-item-box>p:hover {
    border: 2px solid var(--blue);
}

span {
    display: inline-block;
}

.search-item-box span::after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: all 0.2s ease-in-out;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.001' height='8.165' viewBox='0 0 14.001 8.165'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%23212121;%7D%3C/style%3E%3C/defs%3E%3Cpath class='a' d='M13.861,60.224l-.7-.7a.441.441,0,0,0-.645,0L7,65.036,1.487,59.522a.441.441,0,0,0-.645,0l-.7.7a.441.441,0,0,0,0,.645l6.537,6.538a.441.441,0,0,0,.645,0l6.538-6.538a.442.442,0,0,0,0-.645Z' transform='translate(0 -59.382)'/%3E%3C/svg%3E");
}

ul.search-item {
    display: none;
    position: absolute;
    top: 0;
    padding-top: 50px;
    background-color: #fff;
    z-index: -1;
    border-radius: 15px;
    box-shadow: 0 5px 20px 0 rgba(233, 233, 238, 0.8);
    width: 100%;
    font-size: 14px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.search-item li:first-child {
    border-top: 1px dashed #eee;
}

.search-item li:last-child {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.search-item li {
    padding: 15px;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: .5s ease;
    ;
    padding-left: 20px;
    border-top: 1px solid #fff;
}

.search-item li:hover {
    background-color: #ebf0fd;
}

.search-item p {
    margin: 0;
}

label.custom-checkbox {
    cursor: pointer;
    margin-right: 8px;
    padding-left: 22px;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
label.custom-checkbox input[type=checkbox] {
    position: absolute;
    opacity: 0;
} 
label.custom-checkbox input[type=checkbox]:checked~span {
    color: #ffffff;
    background: var(--blue) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;
    border: 2px solid var(--blue);
}
label.custom-checkbox span {
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 3px;
    width: 1rem;
    height: 1rem;
    background-color: var(--white);
    border: 1px solid #d4d7dc;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-open {
    overflow: hidden;
}

.pop-up-show {
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}

.popUpBg {
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: fixed;
}

.popUp {
    display: flex;
    width: 80%;
    height: auto;
    position: relative;
    flex-direction: column;
    padding-bottom:10%;
}

.popUp .conts {
    top: 0;
}

.popUp .img img {
    width: 220px;
    padding: 0 0 26px 10px;
}

.popUp .tx {
    bottom: 0;
    width: 100%;
    padding: 24px 28px 24px 32px;
    background-color: var(--white);
    border-radius: 10px;
    overflow-x: hidden;
}

.popUp .tx .tx-box {
    line-height: 19px;
    font-size: 14px;
    word-break: keep-all;
    height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
}

.popUp .tx a:hover {
    color: rgb(221, 221, 221);
    transition: all 0.2s ease;
}

.popUp p.date {
    color: #cfa0c9;
    padding-left: 4px;
    font-size: 13px;
    letter-spacing: 3px;
    margin: 0;
}

.label-moreShow {
    color: #fff;
    font-size: 11px;
    margin-left: 8px;
}

.moreShow-wrap {
    margin-top: 20px;
    display: flex;
}

.checkbox-moreShow {
    margin: 0;
}

.close-button {
    display: block;
    width: 39px;
    height: 39px;
    overflow: hidden;
    right: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    padding: 0;
    z-index: 1;
}

.close-button>div {
    position: relative;
}

.close-button-block {
    width: 38px;
    height: 19px;
    position: relative;
    overflow: hidden;
}

.close-button-block:before,
.close-button-block:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 1px);
    display: block;
    width: 2px;
    height: 14px;
    transform-origin: bottom center;
    background: white;
    transition: all ease-out 280ms;
}

.close-button-block:last-of-type {
    transform: rotate(180deg);
}

.close-button .in .close-button-block:before {
    transition-delay: 280ms;
    transform: translateX(20px) translateY(-20px) rotate(45deg);
}

.close-button .in .close-button-block:after {
    transition-delay: 280ms;
    transform: translateX(-22px) translateY(-22px) rotate(-45deg);
}

.close-button .out {
    position: absolute;
    top: 0;
    left: 0;
}

.close-button .out .close-button-block:before {
    transform: translateX(-5px) translateY(5px) rotate(45deg);
}

.close-button .out .close-button-block:after {
    transform: translateX(5px) translateY(5px) rotate(-45deg);
}

.close-button:hover .in .close-button-block:before {
    transform: translateX(-5px) translateY(5px) rotate(45deg);
}

.close-button:hover .in .close-button-block:after {
    transform: translateX(5px) translateY(5px) rotate(-45deg);
}

.close-button:hover .out .close-button-block:before {
    transform: translateX(-20px) translateY(20px) rotate(45deg);
}

.close-button:hover .out .close-button-block:after {
    transform: translateX(20px) translateY(20px) rotate(-45deg);
}

@media screen and (max-width: 450px) {
    .popUp {
        width:90%;
    }
    .popUp .img img {
        width: 180px;
        padding: 0 0 20px 5px;
    }

    .close-button {
        top: -5px;
    }
    .popUp .tx {
        padding:15px 25px;
    }
}

.radio-wrap {
    gap: 10px;
}

.radioBox {
    cursor: pointer;
    width: calc(100% / 4 - 5px);
    position: relative;
}

.radioBox input[type=radio] {
    display: none;
}

.radioBox input[type=radio]+label {
    display: inline-block;
    cursor: pointer;
    transition: .3s ease;
    background-color: var(--white);
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 5px 20px 0 rgba(233, 233, 238, 0.8);
    padding: 15px 4px;
    border: 2px solid var(--white);
    font-size: 14px;
    text-align: center;
}

.radioBox input[type=radio]+label:hover {
    border: 2px solid var(--blue);
    background-color: #ebf0fd;
}

.radioBox input[type=radio]:checked+label {
    background-color: var(--blue);
    border: 2px solid var(--blue);
    color: var(--white);
    font-weight: bold;
}