* {
    margin: 0;
    padding: 0;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*풀페이지 민하이 제안*/
html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Pretendard", "맑은 고딕", "Malgun Gothic", 돋움, Dotum, Arial, "Apple Gothic", sans-serif;
  background: #F5F5F5;
}

a {
    text-decoration: none;
}

img {
    border: 0;
}

li {
    list-style: none;
}

.quiz_step {
    width: 100%;
    display: none;
}

.quiz_step.is_active {
    display: block;
}


.quiz_all {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quiz_bg {
    min-width: 320px;
    margin-top: -65px;
    flex: 1 0 100%;
    position: relative;
    background: #071352;
    background: -webkit-linear-gradient(180deg, rgba(7, 19, 82, 1) 0%, rgba(50, 72, 179, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(7, 19, 82, 1) 0%, rgba(50, 72, 179, 1) 100%);
    background: linear-gradient(180deg, rgba(7, 19, 82, 1) 0%, rgba(50, 72, 179, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#071352", endColorstr="#3248B3", GradientType=0);
}

.quiz_app_box {
    width: 100%;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px 0 20px;
}

.quiz_app {
    width: 100%;
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    padding: 140px 0px 140px 0px;

    display:flex;
    align-items: center;
    justify-content: center;
}

.quiz_page {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.quiz_hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.quiz_badge_box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz_badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: #dfe5f1;
    color: #143376;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.quiz_hero h1 {
    margin: 15px 0 15px;
    font-size: 42px;
    font-weight: 900;
    word-break: keep-all;
    text-align: center;
    line-height: 50px;
    color: #ffffff;
}

.quiz_hero p {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    word-break: keep-all;
    line-height: 28px;
    text-align: center;
}


@media only screen and (min-width: 0px) and (max-width: 650px) {
    .quiz_hero h1 {
        font-size: 30px;
        font-weight: 900;
        line-height: 40px;
    }

    .quiz_hero p {
        font-size: 14px;
        line-height: 25px;
    }
}


.quiz_form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quiz_area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz_card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #e5ebf3;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(22, 45, 78, 0.08);
    position: relative;
}


.quiz_num {
    display: flex;
    margin-bottom: 10px;
    color: #2379ef;
    font-weight: 800;
    font-size: 15px;
}

.quiz_card h2 {
    margin: 0 0 22px;
    font-size: 20px;
}

@media only screen and (min-width: 0px) and (max-width: 650px) {
    .quiz_card h2 {
        font-size: 18px;
    }
}

.quiz_options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media only screen and (min-width: 0px) and (max-width: 450px) {
    .quiz_options {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.quiz_option {
    display: grid;
    position: relative;
    cursor: pointer;
    width: 100%;
}

.quiz_option input {
    position: absolute;
    opacity: 0;
}

.quiz_option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s;
    line-height: 27px;
    word-break: keep-all;
    text-align: center;
}

.quiz_option input:checked + span {
    border-color: #2379ef;
    background: #2379ef;
    color: #fff;
    box-shadow: 0 12px 24px rgba(35, 121, 239, 0.22);
}

.quiz_text_input,
.form_group input {
    width: 100%;
    border: 1px solid #dfe6f0;
    border-radius: 8px;
    padding: 15px 18px;
    font-size: 16px;
    outline: none;
}

.quiz_text_input:focus,
.form_group input:focus {
    border-color: #2379ef;
}

.quiz_actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

@media only screen and (min-width: 0px) and (max-width: 450px) {
    .quiz_actions {
        flex-direction: column;
    }
}

.quiz_hint_btn,
.quiz_submit_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    border: 0;
    border-radius: 999px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.quiz_hint_btn {
    background: #fff;
    color: #143a7b;
    border: 1px solid #dfe6f0;
}

.quiz_submit_btn {
    background: #ffffff;
    color: #143a7b;
}

.quiz_submit_btn:disabled,
.quiz_submit_btn.is_loading {
    opacity: 0.65;
    cursor: not-allowed;
}

.form_grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form_group label {
    font-size: 15px;
    font-weight: 800;
}

.form_group label b {
    color: #2379ef;
}

.form_full {
    grid-column: 1 / -1;
}

.privacy_box {
    max-height: 210px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 16px;
    background: #f6f8fb;
    border: 1px solid #e6ecf4;
}

.privacy_box h3 {
    margin: 18px 0 6px;
    font-size: 15px;
}

.privacy_box h3:first-child {
    margin-top: 0;
}

.privacy_box p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.agree_label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}



/*퀴즈 의견*/
.optional_text {
    align-items: center;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #eef3ff;
    color: #2379ef;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}

.quiz_opinion_textarea {
    width: 100%;
    min-height: 130px;
    border: 1px solid #dfe6f0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.quiz_opinion_textarea:focus {
    border-color: #2379ef;
}

.form_help_text {
    margin: 8px 0 0;
    color: #7a8799;
    font-size: 13px;
    line-height: 1.5;
}


/*퀴즈결과*/
.score_result_card {

}

.score_result_desc {
    margin: 8px 0 18px;
    color: #ffffff;
    font-size: 16px;
    line-height: 27px;
    text-align: center;
    word-break: keep-all;
}

.score_result_desc strong {
    color: #ffb413;
    font-size: 20px;
}

.score_result_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.score_result_item {
    padding: 16px 12px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    border: 1px solid #e5ecf7;
}

.score_result_item strong {
    display: block;
    color: #164ca0;
    font-size: 28px;
    line-height: 1;
}

.score_result_item span {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}

@media only screen and (max-width: 640px) {
    .score_result_grid {
        grid-template-columns: 1fr;
    }
}


/*결과 카드*/

.score_result_highlight {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
}

.score_result_image_box {
    position: relative;
    padding-bottom: 56.8%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.score_result_image {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
}

.score_result_img_text_all {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.score_result_img {
    width: 80px;
    height: 80px;
    display: block;
    object-fit: contain;
}

.score_result_img_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 15px;
    border-radius: 15px;
    background: #eff7f2;
    border: 1px dashed #b3e3b5;

    flex-shrink: 0;
}

.score_result_text_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 15px;
    border-radius: 15px;
    background: #eff7f2;
    border: 1px dashed #b3e3b5;

    width: 100%;
}

.score_result_text_wrap strong {
    display: block;
    font-size: 24px;
    color: #0b3f25;
    margin-bottom: 8px;
    font-weight: 900;
}

@media only screen and (min-width: 0px) and (max-width: 700px) {
    .score_result_img_text_all {
        display: flex;
        flex-direction: column;
    }
}

.score_result_text_wrap p {
    margin: 0;
    color: #475467;
    line-height: 23px;
    word-break: keep-all;
}

.score_result_table_label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score_result_table_thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #e6eaf2;
}

@media only screen and (max-width: 640px) {
    .score_result_highlight {
        display: block;
        text-align: center;
    }

    .score_result_image_box {
        margin: 0 auto 14px;
    }

    .score_result_table_thumb {
        width: 34px;
        height: 34px;
    }
}



/*퀴즈이벤트 배너*/
.quiz_top_visual {
    position: relative;
    padding-bottom: 56.8%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.quiz_top_visual > img {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
}




.quiz_modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quiz_modal.is_active {
    display: flex;
}

.quiz_modal_dim {
    position: absolute;
    inset: 0;
    background: rgba(12, 20, 35, 0.55);
    backdrop-filter: blur(6px);
}

.quiz_modal_box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 34px 28px 28px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    animation: quizModalUp 0.24s ease;
}

.quiz_modal_icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3e8;
    color: #ff7a00;
    font-size: 28px;
    font-weight: 900;
}

.quiz_modal_box h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
    color: #172033;
}

.quiz_modal_box p {
    margin: 0;
    color: #68758a;
    font-size: 15px;
    line-height: 1.6;
}

.quiz_modal_actions {
    margin-top: 24px;
}

.quiz_modal_btn {
    width: 100%;
    border: 0;
    padding: 15px;
    border-radius: 999px;
    background: #143a7b;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

@keyframes quizModalUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



body.quiz_modal_open {
    overflow: hidden;
}



