*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#f3f6f8;
    font-family:Arial,sans-serif;
    color:#243b53;
}

.page{
    width:100%;
}

.hidden{
    display:none !important;
}

.container{
    width:100%;
    max-width:920px;
    margin:40px auto;
    background:white;
    border-radius:24px;
    padding:40px;
    box-shadow:
        0 10px 40px rgba(0,0,0,.06);
}

.welcome-screen,
.finish-screen{
    padding:40px 20px;
}

.welcome-card,
.finish-card{
    width:100%;
    max-width:920px;
    margin:auto;
    background:white;
    border-radius:28px;
    padding:60px;
    box-shadow:
        0 10px 40px rgba(0,0,0,.06);
}

.welcome-label{
    display:inline-flex;
    padding:10px 16px;
    background:#e7f4f1;
    color:#2f8f83;
    border-radius:999px;
    font-size:13px;
    font-weight:bold;
    margin-bottom:24px;
}

.welcome-card h1{
    margin:0 0 28px;
    font-size:58px;
    line-height:1;
    color:#102a43;
}

.welcome-text{
    font-size:18px;
    line-height:1.9;
    color:#486581;
}

.welcome-text a{
    color:#2f8f83;
    font-weight:bold;
    text-decoration:underline;
}

.survey-banner{
    margin:-40px -40px 24px;
    padding:24px 40px 20px;
    background:#2f8f83;
    color:#fff;
    border-radius:24px 24px 0 0;
}

.block-name{
    display:block;
    margin-bottom:14px;
    color:#fff;
    font-size:14px;
    font-weight:bold;
    text-transform:uppercase;
    letter-spacing:.03em;
    line-height:1.45;
}

.counter{
    font-size:14px;
    color:rgba(255,255,255,.85);
}

.progress{
    height:8px;
    background:#e6ecf0;
    border-radius:999px;
    overflow:hidden;
    margin-bottom:24px;
}

#progress-bar{
    width:0%;
    height:100%;
    background:#2f8f83;
    transition:.3s;
}

.dots{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:34px;
}

.dot{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#cbd2d9;
    cursor:pointer;
    transition:.2s;
}

.dot.active{
    background:#2f8f83;
    transform:scale(1.15);
}

.dot.answered{
    background:#7bc5bb;
}

.question-title{
    font-size:30px;
    line-height:1.4;
    margin-bottom:28px;
    color:#102a43;
}

.option-card{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:18px;
    border:1px solid #d9e2ec;
    border-radius:16px;
    margin-bottom:14px;
    cursor:pointer;
    transition:.2s;
}

.option-card:hover{
    border-color:#2f8f83;
    background:#f8fffe;
}

.option-card.is-disabled{
    opacity:.45;
    cursor:not-allowed;
    pointer-events:none;
}

.option-card.is-disabled:hover{
    border-color:#d9e2ec;
    background:transparent;
}

.option-card span{
    line-height:1.6;
}

.custom-input{
    width:100%;
    margin-top:16px;
    padding:16px;
    border-radius:14px;
    border:1px solid #d9e2ec;
    font-size:15px;
}

.question-intro{
    margin-bottom:20px;
    padding:16px 18px;
    background:#f0f7f6;
    border-radius:14px;
    font-size:16px;
    line-height:1.7;
    color:#486581;
}

.question-intro-title{
    margin-bottom:14px;
    font-size:14px;
    font-weight:bold;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:#2f8f83;
    line-height:1.5;
}

.question-intro p{
    margin:0 0 12px;
}

.question-intro p:last-child{
    margin-bottom:0;
}

.question-intro a{
    color:#2f8f83;
    font-weight:bold;
    word-break:break-all;
}

.validation-hint{
    margin-top:20px;
    color:#c92a2a;
    font-size:14px;
}

.sortable-hint{
    margin:0 0 16px;
    color:#627d98;
    font-size:15px;
}

.sortable-list{
    list-style:none;
    margin:0;
    padding:0;
}

.sortable-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 18px;
    margin-bottom:12px;
    border:1px solid #d9e2ec;
    border-radius:14px;
    background:#fff;
    cursor:grab;
    touch-action:none;
    -webkit-user-select:none;
    user-select:none;
}

.sortable-item.dragging{
    opacity:.6;
    border-color:#2f8f83;
    box-shadow:0 6px 20px rgba(47,143,131,.2);
}

.sortable-rank{
    width:28px;
    height:28px;
    border-radius:50%;
    background:#2f8f83;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    flex-shrink:0;
}

.sortable-text{
    flex:1;
    line-height:1.5;
    min-width:0;
}

.sortable-controls{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
}

.sortable-move-up,
.sortable-move-down{
    width:40px;
    height:40px;
    border:1px solid #d9e2ec;
    border-radius:10px;
    background:#eef2f6;
    color:#2f8f83;
    font-size:18px;
    font-weight:bold;
    line-height:1;
    cursor:pointer;
    padding:0;
}

.sortable-move-up:disabled,
.sortable-move-down:disabled{
    opacity:.35;
    cursor:not-allowed;
}

.sortable-handle{
    color:#9fb3c8;
    font-size:18px;
    padding:0 4px;
}

@media(min-width:769px){
    .sortable-move-up,
    .sortable-move-down{
        display:none;
    }
}

.multi-text-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.multi-text-row{
    display:flex;
    gap:10px;
    align-items:center;
}

.multi-text-input{
    flex:1;
    padding:16px;
    border-radius:14px;
    border:1px solid #d9e2ec;
    font-size:15px;
}

.multi-text-remove{
    width:44px;
    height:44px;
    border-radius:12px;
    border:none;
    background:#eef2f6;
    color:#627d98;
    font-size:22px;
    cursor:pointer;
}

.multi-text-add{
    margin-top:12px;
    padding:12px 16px;
    border:none;
    border-radius:12px;
    background:#eef2f6;
    color:#2f8f83;
    font-weight:bold;
    cursor:pointer;
}

.tooltip-trigger{
    position:relative;
    color:#2f8f83;
    text-decoration:underline;
    text-decoration-style:dotted;
    cursor:help;
}

.tooltip-popup{
    display:none;
    position:absolute;
    left:0;
    bottom:calc(100% + 8px);
    width:280px;
    padding:12px 14px;
    background:#102a43;
    color:#fff;
    border-radius:12px;
    font-size:13px;
    line-height:1.5;
    font-weight:normal;
    text-decoration:none;
    z-index:10;
    box-shadow:0 8px 24px rgba(0,0,0,.15);
}

.tooltip-trigger:hover .tooltip-popup,
.tooltip-trigger:focus .tooltip-popup{
    display:block;
}

.primary-btn:disabled{
    opacity:.55;
    cursor:not-allowed;
}

.textarea{
    width:100%;
    min-height:220px;
    border:1px solid #d9e2ec;
    border-radius:18px;
    padding:20px;
    resize:vertical;
    font-size:16px;
    line-height:1.6;
}

.nav{
    display:flex;
    gap:14px;
    margin-top:40px;
}

button{
    border:none;
    cursor:pointer;
    height:56px;
    border-radius:14px;
    font-size:15px;
    font-weight:bold;
}

.primary-btn{
    flex:1;
    background:#2f8f83;
    color:white;
}

.secondary-btn{
    width:180px;
    background:#eef2f6;
}

.finish-card{
    text-align:center;
}

.finish-icon{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#e7f4f1;
    color:#2f8f83;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 24px;
    font-size:42px;
    font-weight:bold;
}

.finish-card h2{
    font-size:42px;
    margin-bottom:24px;
}

.finish-card p{
    font-size:18px;
    line-height:1.8;
    color:#486581;
}

.finish-restart-note{
    margin-top:8px;
    font-size:15px;
    color:#627d98;
}

.finish-restart-btn{
    margin-top:28px;
    width:100%;
    max-width:360px;
}

@media(max-width:768px){

    body{
        background:white;
    }

    .container{
        margin:0;
        border-radius:0;
        min-height:100vh;
        padding:20px;
    }

    .welcome-screen,
    .finish-screen{
        padding:0;
    }

    .welcome-card,
    .finish-card{
        border-radius:0;
        padding:28px 22px;
        min-height:100vh;
    }

    .welcome-card h1{
        font-size:38px;
        line-height:1.1;
    }

    .welcome-text{
        font-size:16px;
        line-height:1.7;
    }

    .survey-banner{
        margin:-20px -20px 20px;
        padding:20px 20px 16px;
        border-radius:0;
    }

    .block-name{
        font-size:12px;
    }

    .question-title{
        font-size:24px;
    }

    .nav{
        position:sticky;
        bottom:0;
        background:white;
        padding-top:14px;
    }

    .secondary-btn{
        width:120px;
    }
}