.selfcheck-wrap,
.selfcheck-result-wrap {
    margin: 44px auto 70px;
    color: #1f2933;
    /*font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;*/
}

.selfcheck-wrap h2,
.selfcheck-result-wrap h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
    color: #0245a0;
    letter-spacing: 0;
}

.selfcheck-wrap > p {
    margin: 0 0 28px;
    color: #222;
    font-size: 17px;
    line-height: 1.6;
}

.selfcheck-privacy,
.selfcheck-profile {
    margin: 0 0 22px;
}
.selfcheck-privacy h3,
.selfcheck-profile h3 {
    position: relative;
    font-size: 1.25rem;
    color: #222;
    font-weight: 600;
    padding-left: 1.6rem;
    margin: 2.2rem 0 1.4rem;
    line-height: 1
}

.selfcheck-privacy h3:before,
.selfcheck-profile h3:before {
    position: absolute;
    left: 0;
    top: 3px;
    content: "";
    width: 1.15rem;
    height: 1.15rem;
    background: linear-gradient(to bottom, #45ccf4, #3571e7);
    border-radius: 50%;
}

.selfcheck-privacy h3:after,
.selfcheck-profile h3:after {
    position: absolute;
    left: .3rem;
    top: .45rem;
    content: "";
    width: .55rem;
    height: .55rem;
    background: #fff;
    border-radius: 50%;
}

.privacy-box {
    max-height: 220px;
    overflow-y: auto;
    margin: 0 0 16px;
    padding: 18px 20px;
    border: 1px solid #ddd;
    color:#222;
    font-size: 15px;
    line-height: 1.65;
}

.privacy-box p {
    margin: 0 0 10px;
}

.selfcheck-inline-options,
.profile-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.selfcheck-profile .profile-row {
    border-top:1px solid #e4e4e4;
    padding:.5rem 1rem;
}

.profile-row + .profile-row {
    border-bottom:1px solid #e4e4e4;
}

.profile-row strong {
    min-width: 10%;
    color: #333;
    font-size: 16px;
    font-weight: 800;
}

.selfcheck-inline-options label,
.profile-row label,
.question-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #263642;
    cursor: pointer;
}

.selfcheck-inline-options input[type="radio"],
.profile-row input[type="radio"],
.question-options input[type="radio"] {
    position: static;
    width: 14px;
    height: 14px;
    margin: 0;
    opacity: 1;
    accent-color: #333;
}

.selfcheck-question-list {
    margin-top: 34px;
    border-top: 1px solid transparent;
}

.selfcheck-section-title {
    margin: 42px 0 0;
    padding: 0 0 12px;
    border-bottom: 2px solid #0876c5;
    color: #0876c5;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 800;
}

.selfcheck-question:first-child .selfcheck-section-title {
    margin-top: 0;
}

.selfcheck-group-title {
    margin: 0;
    padding: 16px 22px;
    border-bottom: 1px solid #0b83d9;
    background: #f8fcff;
    color: #162b3d;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
}

.selfcheck-group-title span {
    position: relative;
    display: inline-block;
    padding-left: 25px;
}

.selfcheck-group-title span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0876c5;
}

.selfcheck-group-title span:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.selfcheck-question {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.question-row {
    display: grid;
    grid-template-columns: 74px minmax(300px, 1fr) auto;
    align-items: center;
    gap: 18px 30px;
    min-height: 86px;
    padding: 23px 12px;
    border-bottom: 1px solid #e3e8ef;
    background: #fff;
    transition: background-color 0.15s ease;
}

.question-row:hover {
    background: #fbfdff;
}

.question-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 26px;
    border-radius: 999px;
    background: #e7f6fc;
    color: #0876c5;
    font-size: 14px;
    font-weight: 800;
}

.question-text {
    color: #111827;
    font-size: 18px;
    line-height: 1.5;
    word-break: keep-all;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    min-width: 260px;
    margin: 0;
    padding: 0;
}

.question-options li {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    list-style: none;
}

.question-options label {
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
}

.selfcheck-actions {
    display: flex;
    justify-content: center;
    margin: 34px 0 0;
}

.selfcheck-source {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 28px 0 0;
    padding: 14px 16px;
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    background: #f8fcff;
    color: #3b4a58;
    font-size: 14px;
    line-height: 1.55;
}

.selfcheck-source .source-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e7f6fc;
    color: #0876c5;
    font-size: 13px;
    font-weight: 800;
}

.selfcheck-source .source-text {
    padding-top: 2px;
    word-break: keep-all;
}

.selfcheck-actions button {
    min-width: 240px;
    height: 54px;
    border: 0;
    background: #4377c6;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.selfcheck-actions button:hover,
.selfcheck-actions button:focus {
    background: #075f9e;
}

.result-image {
    margin: 28px 0 24px;
    text-align: center;
}

.result-image img {
    max-width: 720px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    vertical-align: top;
}

.counsel-help-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(720px, 100%);
    margin: 18px auto 0;
    padding: 18px 22px;
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.counsel-help-img img {
    width: 72px;
    height: auto;
    vertical-align: top;
}

.counsel-help-text {
    color: #12385f;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.counsel-modal[aria-hidden="true"] {
    display: none;
}

.counsel-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10000;
    inset: 0;
    padding: 24px;
    box-sizing: border-box;
}

.counsel-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.counsel-modal-panel {
    position: relative;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 0 auto;
    padding: 34px 32px 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.counsel-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 56px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.counsel-modal-close:hover,
.counsel-modal-close:focus {
    border-color: #4377c6;
    color: #0245a0;
}

.counsel-modal-panel h3 {
    margin: 0 72px 10px 0;
    color: #10243f;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.counsel-modal-panel p {
    margin: 0 0 20px;
    color: #263642;
    font-size: 16px;
    line-height: 1.7;
}

.counsel-form-row {
    margin-top: 14px;
}

.counsel-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.counsel-form-row input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #d4dbe5;
}

.counsel-form-row input:focus {
    border-color: #4377c6;
    outline: 2px solid rgba(67, 119, 198, 0.16);
}

.counsel-modal-actions {
    margin-top: 20px;
    text-align: center;
}

.counsel-modal-actions button {
    min-width: 150px;
    height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 6px;
    background: #0245a0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.counsel-modal-actions button:hover,
.counsel-modal-actions button:focus {
    background: #063574;
}

.result-summary {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    background: #f8fcff;
}

.result-summary ul {
    margin: 0;
    padding: 0;
}

.result-summary li {
    margin: 0;
    list-style: none;
    color: #12385f;
    font-size: 18px;
    font-weight: 800;
}

.selfcheck-result-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    border-top: 2px solid #0876c5;
}

.selfcheck-result-table th,
.selfcheck-result-table td {
    padding: 12px 14px;
    border: 1px solid #e3e8ef;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.selfcheck-result-table th {
    background: #f7fbff;
    color: #12385f;
    font-weight: 800;
}
.selfcheck-result-table .td-left {
    text-align: left;
}

@media (max-width: 900px) {
    .question-row {
        grid-template-columns: 64px 1fr;
        gap: 14px 18px;
    }

    .question-options {
        grid-column: 2;
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .selfcheck-wrap,
    .selfcheck-result-wrap {
        margin: 28px auto 50px;
    }

    .selfcheck-wrap h2,
    .selfcheck-result-wrap h2 {
        font-size: 28px;
    }

    .selfcheck-wrap > p {
        font-size: 16px;
    }

    .profile-row {
        align-items: flex-start;
    }

    .profile-row strong {
        width: 100%;
    }

    .selfcheck-section-title {
        font-size: 18px;
    }

    .selfcheck-group-title {
        padding: 14px 10px;
        font-size: 14px;
    }

    .question-row {
        grid-template-columns: 50px 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .question-no {
        width: 46px;
    }

    .question-text {
        font-size: 16px;
    }

    .question-options {
        grid-column: 1 / -1;
        padding-left: 0;
    }

    .selfcheck-source {
        display: block;
        padding: 14px;
    }

    .selfcheck-source .source-label {
        margin-bottom: 8px;
    }

    .counsel-help-box {
        align-items: center;
        padding: 14px;
    }

    .counsel-help-img img {
        width: 58px;
    }

    .counsel-help-text {
        font-size: 17px;
    }

    .counsel-modal {
        padding: 16px;
    }

    .counsel-modal-panel {
        width: 100%;
        max-height: calc(100vh - 32px);
        padding: 30px 20px 24px;
    }

    .counsel-modal-panel h3 {
        margin-right: 64px;
        font-size: 20px;
    }
}
