.mbk-next-topic {
    margin-bottom: -12px !important;
    color: var(--mbk-muted);
    font-size: 1.125rem;
    font-weight: 600;
}

.mbk-question-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mbk-global-position {
    color: var(--mbk-muted);
    font-size: 1rem;
    font-weight: 600;
}

.mbk-progress {
    width: 100%;
    height: 5px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.mbk-progress i {
    display: block;
    width: calc(var(--mbk-progress) * 1%);
    height: 100%;
    border-radius: inherit;
    background: var(--mbk-primary);
    transition: width 0.3s ease;
}

.mbk-question-card .mbk-card-content {
    justify-content: flex-start;
    padding-top: 54px;
}

.mbk-topic-position {
    color: var(--mbk-primary);
    font-size: 1rem;
    font-weight: 700;
}

.mbk-question-intro {
    max-width: 100%;
    color: var(--mbk-muted);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

.mbk-statement {
    width: 100%;
    max-width: none !important;
    font-size: var(--mbk-question-font-size, 32px) !important;
    font-weight: 700 !important;
}

.mbk-response-area {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: auto;
    padding-top: 30px;
}

/* Lisätiedot näkyvät tavallisena tekstinä ilman laatikkoa tai korostusviivaa. */
.mbk-question-card .mbk-info-panel {
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mbk-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    animation: none;
}

.mbk-answer-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.mbk-answer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    text-align: center;
    cursor: pointer;
}

.mbk-answer-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mbk-answer-label {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
}

.mbk-answer-circle {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.mbk-answer-circle::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid var(--mbk-text);
    border-radius: 50%;
}

.mbk-answer-circle i {
    display: none;
    color: #101820;
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 900;
}

.mbk-answer-option:hover .mbk-answer-circle {
    border-color: var(--mbk-primary);
    transform: translateY(-2px);
}

.mbk-answer-option input:checked + .mbk-answer-circle {
    border-color: var(--mbk-primary);
    background: var(--mbk-primary);
}

.mbk-answer-option input:checked + .mbk-answer-circle::before {
    display: none;
}

.mbk-answer-option input:checked + .mbk-answer-circle i {
    display: block;
    animation: mbk-check-in 0.2s ease;
}

.mbk-completed-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--mbk-primary);
    color: #101820;
    font-size: 2.4rem;
    font-weight: 900;
}

.mbk-loader {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
}

.mbk-loader i {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--mbk-primary);
    animation: mbk-loading 0.9s ease-in-out infinite alternate;
}

.mbk-loader i:nth-child(2) { animation-delay: 0.15s; }
.mbk-loader i:nth-child(3) { animation-delay: 0.3s; }

@keyframes mbk-info-open {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mbk-check-in {
    from { opacity: 0; transform: scale(0.55); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes mbk-loading {
    from { opacity: 0.35; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(-8px); }
}

.mbk-choice-list{border:0;margin:20px 0;padding:0;display:grid;gap:10px}.mbk-choice-help{color:var(--mbk-muted);margin:0 0 12px}.mbk-choice-option,.mbk-ranking-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.07);cursor:pointer}.mbk-choice-option input{width:22px;height:22px;flex:0 0 auto}.mbk-ranking-list{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}.mbk-ranking-item{cursor:grab;touch-action:manipulation}.mbk-ranking-item.is-dragging{opacity:.55}.mbk-ranking-number{display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:var(--mbk-primary);color:var(--mbk-ranking-number-text,#151515)!important;font-weight:700}.mbk-ranking-label{flex:1}.mbk-ranking-controls{display:flex;gap:6px}.mbk-rank-button{min-width:36px;height:36px;border-radius:8px;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer}.mbk-rank-button:disabled{opacity:.3}
.mbk-formatted-text p {
    margin: 0 0 0.85em;
}

.mbk-formatted-text p:last-child {
    margin-bottom: 0;
}
.mbk-feedback-input{box-sizing:border-box;width:100%;min-height:180px;padding:16px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.06);color:var(--mbk-text);font:inherit;line-height:1.55;resize:vertical}.mbk-feedback-input:focus{outline:2px solid var(--mbk-primary);outline-offset:2px}.mbk-feedback-counter{text-align:right;color:var(--mbk-muted);margin:6px 0 18px}.mbk-feedback-contact-text{margin-top:18px}
.mbk-contact-modal[hidden]{display:none!important}.mbk-contact-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px}.mbk-contact-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(5px)}.mbk-contact-modal__dialog{position:relative;z-index:1;box-sizing:border-box;width:min(640px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:40px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:var(--mbk-panel,#07101d);color:var(--mbk-text,#fff);box-shadow:0 24px 80px rgba(0,0,0,.5)}.mbk-contact-modal__close{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;border-radius:50%;background:var(--mbk-primary,#31589d);color:#fff;font-size:28px;line-height:1;cursor:pointer}.mbk-contact-modal__content input:not([type=submit]),.mbk-contact-modal__content textarea,.mbk-contact-modal__content select{box-sizing:border-box;width:100%;max-width:100%}.mbk-contact-modal-open{overflow:hidden}
.mbk-contact-modal__title{margin:0 56px 24px 0;color:var(--mbk-theme-modal-title-color,var(--mbk-accent,#ffe700));font-size:clamp(1.7rem,4vw,2.15rem);line-height:1.2}.mbk-contact-modal .wpcf7 form,.mbk-contact-modal .wpcf7{margin:0}.mbk-contact-modal .wpcf7 form>p{margin:0 0 18px}.mbk-contact-modal .wpcf7 label{display:block;color:inherit;font-weight:600}.mbk-contact-modal .wpcf7-form-control-wrap{display:block;margin-top:7px}.mbk-contact-modal .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]),.mbk-contact-modal .wpcf7 textarea,.mbk-contact-modal .wpcf7 select{box-sizing:border-box;width:100%;max-width:none;padding:13px 15px;color:#151515;background:#fafafa;border:1px solid rgba(0,0,0,.22);border-radius:7px;font:inherit}.mbk-contact-modal .wpcf7 textarea{min-height:190px;resize:vertical}.mbk-contact-modal .wpcf7 input[type=submit]{min-height:50px;padding:13px 28px;color:var(--mbk-theme-modal-submit-text,#fafafa);background:var(--mbk-theme-modal-submit-background,var(--mbk-primary,#31589d));border:0;border-radius:999px;font:inherit;font-weight:700;cursor:pointer}.mbk-contact-modal .wpcf7 input[type=submit]:hover{background:var(--mbk-theme-modal-submit-hover,#375cb2)}

/* Optional plain-text heading for statement details. */
.mbk-question-card .mbk-info-heading {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1.4;
}

/* Per-survey answer-option boxes: preserve original defaults for older surveys. */
.mbk-app .mbk-choice-list, .mbk-app .mbk-ranking-list { gap:var(--mbk-option-gap,10px); }
.mbk-app .mbk-choice-option, .mbk-app .mbk-ranking-item {
    background:var(--mbk-option-bg,rgba(255,255,255,.07));
    border:var(--mbk-option-border-width,1px) solid var(--mbk-option-border-color,rgba(255,255,255,.22));
    border-radius:var(--mbk-option-radius,12px);
    padding:var(--mbk-option-padding-y,14px) var(--mbk-option-padding-x,16px);
    transition:background-color .16s ease,border-color .16s ease;
}
.mbk-app .mbk-choice-option:hover, .mbk-app .mbk-ranking-item:hover {background:var(--mbk-option-hover-bg,rgba(255,255,255,.12));}
.mbk-app .mbk-choice-option:has(input:checked) {
    background:var(--mbk-option-selected-bg,rgba(103,234,148,.16));
    border-color:var(--mbk-option-selected-border-color,#67ea94);
}
.mbk-app .mbk-choice-option:focus-within, .mbk-app .mbk-ranking-item:focus-within {outline:2px solid var(--mbk-primary);outline-offset:2px;}

/* Explicit per-survey answer label colors; selected takes precedence over hover. */
.mbk-app .mbk-choice-option, .mbk-app .mbk-ranking-item { color:var(--mbk-option-text,#fafafa); }
.mbk-app .mbk-choice-option:hover, .mbk-app .mbk-ranking-item:hover { color:var(--mbk-option-hover-text,#fafafa); }
.mbk-app .mbk-choice-option:has(input:checked),
.mbk-app .mbk-choice-option:has(input:checked):hover { color:var(--mbk-option-selected-text,#fafafa); }
.mbk-app .mbk-choice-option > span, .mbk-app .mbk-ranking-label { color:inherit; }
.mbk-app .mbk-ranking-number { color:var(--mbk-ranking-number-text,#151515)!important; }

/* State-aware option text colors must take precedence over theme typography.
   Keep ranking number badges independent from the ranking label color. */
.mbk-app .mbk-question-card .mbk-choice-option,
.mbk-app .mbk-question-card .mbk-choice-option > span,
.mbk-app .mbk-question-card .mbk-ranking-label {color:var(--mbk-option-text,#fafafa)!important;}
.mbk-app .mbk-question-card .mbk-choice-option:hover,
.mbk-app .mbk-question-card .mbk-choice-option:hover > span,
.mbk-app .mbk-question-card .mbk-ranking-item:hover .mbk-ranking-label {color:var(--mbk-option-hover-text,#fafafa)!important;}
.mbk-app .mbk-question-card .mbk-choice-option:has(input:checked),
.mbk-app .mbk-question-card .mbk-choice-option:has(input:checked) > span,
.mbk-app .mbk-question-card .mbk-choice-option:has(input:checked):hover,
.mbk-app .mbk-question-card .mbk-choice-option:has(input:checked):hover > span {color:var(--mbk-option-selected-text,#fafafa)!important;}
