/* Base */
:root
{
    --text: #111827;
    --muted: #6b7280;
    --pink: #ec4899;
    --bg: #ffffff;
}

*,
*::before,
*::after
{
    box-sizing: border-box;
}

html,
body
{
    height: 100%;
}

body
{
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page
{
    min-height: 100%;
    display: flex;
    justify-content: center;
    padding: 28px 16px;
}

.card
{
    width: 100%;
    max-width: 920px;
    padding: 10px 8px 44px 8px;
}

.logo_wrap
{
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
    margin-bottom: 12px;
}

.logo_img
{
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    object-fit: cover;
}

.logo_fallback
{
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo_text
{
    text-align: center;
    color: white;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo_text_small
{
    margin-top: 3px;
    color: var(--pink);
    font-weight: 800;
}

.progress_wrap
{
    height: 10px;
    margin: 10px 0 6px 0;
}

.progress_bar
{
    height: 4px;
    width: 100%;
    border-radius: 9999px;
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.progress_bar::after
{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: calc((var(--progress) / var(--total)) * 100%);
    background: #d1d5db;
}

.top_row
{
    height: 30px;
    display: flex;
    align-items: center;
}

.back_link
{
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.back_link:hover
{
    text-decoration: underline;
}

.title
{
    font-size: 44px;
    line-height: 1.08;
    margin: 26px 0 16px 0;
    font-weight: 800;
    max-width: 820px;
}

.subtitle
{
    max-width: 720px;
    margin: 0 0 20px 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

.form
{
    margin-top: 8px;
    max-width: 560px;
}

.label
{
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
}

.input
{
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
}

.input_pink
{
    border-color: rgba(236, 72, 153, 0.5);
}

.input:focus
{
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.18);
}

.btn
{
    margin-top: 18px;
    background: #0b0b0c;
    color: white;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn_pink
{
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.35);
}

.btn:hover
{
    filter: brightness(1.04);
}

.arrow
{
    font-weight: 800;
}

.scale_hint
{
    margin: 8px 0 14px 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    max-width: 720px;
}

.question
{
    margin: 10px 0 14px 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    max-width: 820px;
}

.scale_wrap
{
    display: inline-block;
}

.scale_btn
{
    width: 42px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: white;
    font-weight: 700;
    cursor: pointer;
    margin-right: 6px;
    margin-bottom: 10px;
}

.scale_btn:hover
{
    border-color: rgba(236, 72, 153, 0.7);
}

.scale_btn_selected
{
    border: 2px solid rgba(236, 72, 153, 0.95);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.scale_labels
{
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-top: -4px;
    max-width: 540px;
}

.error_box
{
    max-width: 720px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0 12px 0;
}

.error_box ul
{
    margin: 0;
    padding-left: 18px;
}

.result_title
{
    font-size: 40px;
    line-height: 1.12;
    margin: 26px 0 18px 0;
    font-weight: 800;
    max-width: 860px;
}

.result_body
{
    max-width: 780px;
    font-size: 16px;
    line-height: 1.65;
}

.result_footer
{
    max-width: 780px;
    font-size: 16px;
    line-height: 1.65;
    margin-top: 26px;
}

.result_link
{
    color: var(--pink);
    font-weight: 700;
    text-decoration: none;
}

.result_link:hover
{
    text-decoration: underline;
}

@media (max-width: 720px)
{
    .title
    {
        font-size: 32px;
    }
    .result_title
    {
        font-size: 30px;
    }
    .scale_btn
    {
        width: 38px;
        height: 36px;
    }
}
