:root {
    --survey-bg: #f3f5f8;
    --survey-card-bg: #ffffff;
    --survey-text: #2e3440;
    --survey-muted: #6b7280;
    --survey-border: #d9e0ea;
    --survey-border-strong: #c6d1df;
    --survey-primary: #4f7ecb;
    --survey-primary-soft: #edf4ff;
    --survey-shadow: 0 18px 48px rgba(30, 41, 59, 0.10);
    --survey-radius: 18px;
    --survey-option-radius: 14px;
    --survey-field-radius: 12px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #fff;
}

/* FRAME CONTAINER */
.survey-stage {
    position: relative;
    padding: 25px 100px 100px 100px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.survey-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/img/background_hearts.jpg");
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;

    mask: 
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 100px;
}

body.survey-home .survey-stage::before {
    background-image: url("/img/background_spear_pattern.svg");
    background-repeat: repeat;
    background-size: 240px 240px;
    opacity: 1; /* SVG already has opacity */
}

/* top bar */

.survey-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 55px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.survey-topbar-left {
    flex: 1;
}

.survey-topbar-left h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;
}

.survey-topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    color: #2e5b9a;
}

.survey-topbar-title-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
}

.survey-topbar-title-logo svg {
    display: block;
}

.survey-topbar-title-text {
    display: inline-block;
}

.survey-topbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4px;
    text-align: right;
    min-width: 220px;
}

.survey-page-counter {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.3;
    color: #6b7280;
    text-align: right;
}

/* breadcrumb */

.survey-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    width: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    text-align: right;
    -webkit-transform:scale(1,1.5); /* Safari and Chrome */
    -moz-transform:scale(1,1.5); /* Firefox */
    -ms-transform:scale(1,1.5); /* IE 9 */
    -o-transform:scale(1,1.5); /* Opera */
    transform:scale(1,1.5); /* W3C */
}

.survey-breadcrumb-link,
.survey-breadcrumb-current,
.survey-breadcrumb-future,
.survey-breadcrumb-separator {
    display: inline-block;
}

.survey-breadcrumb-link {
    color: #4f7ecb;
    text-decoration: none;
    font-weight: 600;
	padding: 2px;
}

.survey-breadcrumb-link:hover {
    text-decoration: underline;
}

.survey-breadcrumb-current {
    color: #1f2937;
    font-weight: 700;
}
a.survey-breadcrumb-current {
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
}

.survey-breadcrumb-future {
    color: #9aa5b1;
}

.survey-breadcrumb-separator {
    color: #9aa5b1;
}


/* INNER WHITE CARD */
.survey-wrap,
.survey-finish-message {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 40px 50px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
	margin: 0 auto;
}

.survey-header {
    margin-bottom: 36px;
}

.survey-header-compact {
    display: none;
}

.survey-page-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.survey-page-survey-title {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    color: #c2cad6;
    text-align: right;
}

.survey-header h1 {
    margin: 0 0 14px 0;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;
}

.survey-header p {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--survey-muted);
}

.survey-page-meta {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
    color: var(--survey-muted);
    font-size: 15px;
    line-height: 1.5;
}

.survey-page-meta strong {
    display: inline-block;
    margin-bottom: 6px;
    color: #c2cad6;
    font-weight: 700;
}

.survey-block {
    margin-bottom: 38px;
}

.survey-block-heading{
	margin-bottom: 20px !important;
}

.survey-block h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    color: #1f2937;
}

.survey-block p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--survey-muted);
}

.survey-label {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #1f2937;
}

.survey-description {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--survey-muted);
}

.req {
    color: #d14343;
}

.survey-hidden {
    display: none !important;
}

hr {
    border: 0;
    height: 1px;
    background: #e8edf4;
    margin: 8px 0;
}

.survey-hide-required-indicators .req {
    display: none;
}

.survey-block-invalid .survey-label {
    color: #c62828;
}

.survey-block-invalid input[type="text"],
.survey-block-invalid input[type="email"],
.survey-block-invalid textarea,
.survey-block-invalid select,
.survey-block-invalid .choice,
.survey-block-invalid .survey-ranking-list,
.survey-block-invalid .survey-stars {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.08);
}

.survey-modal[hidden] {
    display: none;
}

.survey-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

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

.survey-modal-box {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: 20vh auto 0 auto;
    background: #fff;
    padding: 28px 28px 24px 28px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.survey-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.survey-modal-text {
    font-size: 16px;
    line-height: 1.5;
    color: #5b6472;
    margin-bottom: 20px;
}

.surpix-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.surpix-logo {
    width: 1.3em;
    height: 1.3em;
}

.surpix-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.survey-denied-message {
    text-align: center;
}

.survey-denied-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.survey-denied-message p {
    margin: 15px !important;
}

.survey-access-message {
    max-width: 860px;
    margin: 0 auto;
}

.survey-access-intro {
    max-width: 760px;
    margin: 10px auto 26px auto;
}

.survey-access-lead {
    font-size: 20px;
    line-height: 1.65;
    color: #243041;
    margin: 18px 0 22px 0 !important;
}

.survey-access-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 26px auto;
    max-width: 420px;
    text-align: left;
	width: fit-content;
}

.survey-access-features li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
    font-size: 16px;
    color: #243041;
    line-height: 1.5;
}

.survey-access-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #3B82F6;
    font-weight: 700;
}

.survey-access-note {
    font-size: 17px;
    line-height: 1.6;
    color: #4b5563;
    margin: 10px 0 0 0 !important;
}

.survey-access-form {
    max-width: 680px;
    margin: 28px auto 10px auto;
    text-align: left;
}

.survey-access-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.survey-access-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.survey-access-input {
    flex: 1 1 auto;
}

.survey-access-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .survey-access-row {
        flex-direction: column;
    }

    .survey-access-btn {
        width: 100%;
    }
	
	.survey-access-lead {
        font-size: 18px;
    }

    .surpix-title {
        flex-direction: column;
        gap: 8px;
    }
}

/* inputs */

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--survey-border-strong);
    background: #fff;
    color: var(--survey-text);
    border-radius: var(--survey-field-radius);
    padding: 15px 16px;
    font-size: 17px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--survey-primary);
    box-shadow: 0 0 0 4px rgba(79, 126, 203, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #9aa5b1;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* choice cards */

.choice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 14px 0;
    min-height: 64px;
    padding: 18px 20px;
    border: 1px solid #e4e9f0;
    border-radius: var(--survey-option-radius);
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
}

.choice:hover {
    border-color: #cfd9e8;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    background: #fbfdff;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 2px 0 0 0;
    border: 2px solid #b8c4d3;
    background: #fff;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    transition: all 0.18s ease;
}

.choice input[type="radio"] {
    border-radius: 50%;
}

.choice input[type="checkbox"] {
    border-radius: 6px;
}

.choice input[type="radio"]:hover,
.choice input[type="checkbox"]:hover {
    border-color: #7f97b7;
}

.choice input[type="radio"]:checked,
.choice input[type="checkbox"]:checked {
    border-color: #4f7ecb;
    background: #4f7ecb;
}

.choice input[type="radio"]::after,
.choice input[type="checkbox"]::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.choice input[type="radio"]::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    top: 5px;
    left: 5px;
}

.choice input[type="checkbox"]::after {
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
    left: 7px;
}

.choice input[type="radio"]:checked::after,
.choice input[type="checkbox"]:checked::after {
    opacity: 1;
}

.choice:has(input:checked) {
    border-color: #4f7ecb;
    background: #f8fbff;
    box-shadow: 0 0 0 2px rgba(79, 126, 203, 0.08);
}

.choice-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.5;
    color: #2f3746;
}

.choice-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.choice-title {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 500;
    color: #2f3746;
}

.choice-description {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #7b8797;
}

.choice-description-line.spaced {
    margin-top: 6px;
}

/* dropdown */

select {
    min-height: 54px;
    background-image:
        linear-gradient(45deg, transparent 50%, #67748a 50%),
        linear-gradient(135deg, #67748a 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    appearance: none;
    padding-right: 42px;
}

/* MULTI-SELECT (card style like other blocks) */

select[multiple] {
    padding: 0;
    border: none;
    background: transparent;
}

/* container look */
select[multiple] {
    display: block;
    width: 100%;
}

/* options styled as cards */
select[multiple] option {
    padding: 16px 18px;
    margin-bottom: 10px;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* hover */
select[multiple] option:hover {
    background: #fbfdff;
}

/* selected (IMPORTANT) */
select[multiple] option:checked {
    background: #edf4ff;
    border-color: #4f7ecb;
    font-weight: 600;
}

/* remove ugly native highlight (some browsers) */
select[multiple]:focus {
    outline: none;
}

/* rating */

.survey-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.survey-rating-choice {
    min-width: 62px;
    justify-content: center;
    padding: 16px 18px;
    border-radius: 14px;
}

/* =========================
   STAR RATING
   ========================= */

.survey-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.survey-stars input {
    display: none;
}

.survey-star {
    display: inline-block;
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 42px;
    color: #d7dee8;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.survey-star:hover,
.survey-star:hover ~ .survey-star {
    color: #f5b301;
    filter: drop-shadow(0 2px 4px rgba(245, 179, 1, 0.28));
}

.survey-stars input:checked ~ .survey-star {
    color: #f5b301;
    filter: drop-shadow(0 2px 5px rgba(245, 179, 1, 0.32));
}

.survey-stars input:checked + .survey-star {
    transform: scale(1.08);
}

.survey-rating-caption {
    margin-top: 8px;
    min-height: 22px;
    font-size: 14px;
    color: #7b8797;
    font-weight: 600;
}

/* slider */

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #d6dde7;
    outline: none;
    margin-top: 12px;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: #d6dde7;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8b97a8, #6c7a8f);
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        0 0 0 2px rgba(79,126,203,0.15);
    cursor: pointer;
    margin-top: -10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        0 0 0 4px rgba(79,126,203,0.18);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #d6dde7;
}

input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8b97a8, #6c7a8f);
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        0 0 0 2px rgba(79,126,203,0.15);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.08);
}

input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        0 0 0 4px rgba(79,126,203,0.25);
}

input[type="range"]:focus::-moz-range-thumb {
    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        0 0 0 4px rgba(79,126,203,0.25);
}

/* touched / answered slider state */
input[type="range"][data-slider-unanswered="0"]::-webkit-slider-runnable-track {
    background: #c7d9f6;
}

input[type="range"][data-slider-unanswered="0"]::-moz-range-track {
    background: #c7d9f6;
}

input[type="range"][data-slider-unanswered="0"]::-webkit-slider-thumb {
    background: linear-gradient(145deg, #6f8fbe, #4f7ecb);
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        0 0 0 2px rgba(79,126,203,0.18);
}

input[type="range"][data-slider-unanswered="0"]::-moz-range-thumb {
    background: linear-gradient(145deg, #6f8fbe, #4f7ecb);
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        0 0 0 2px rgba(79,126,203,0.18);
}

/* unanswered slider state */
input[type="range"][data-slider-unanswered="1"]::-webkit-slider-thumb {
    background: #ffffff;
    border: 3px solid #8b97a8;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.10),
        0 0 0 2px rgba(139,151,168,0.12);
}

input[type="range"][data-slider-unanswered="1"]::-moz-range-thumb {
    background: #ffffff;
    border: 3px solid #8b97a8;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.10),
        0 0 0 2px rgba(139,151,168,0.12);
}

.survey-slider-value {
    margin-top: 12px;
    font-size: 16px;
    color: #425066;
    font-weight: 600;
}

.survey-slider-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--survey-muted);
    align-items: start;
}

.survey-slider-labels span {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
}

.survey-slider-labels span:first-child {
    text-align: left;
}

.survey-slider-labels span:nth-child(2) {
    text-align: center;
    justify-self: center;
    max-width: 220px;
}

.survey-slider-labels span:last-child {
    text-align: right;
    justify-self: end;
}

/* =========================
   SLIDER - MODERN STYLE
   ========================= */

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #d6dde7;
    outline: none;
    margin-top: 12px;
}

/* track (webkit) */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: #d6dde7;
}

/* thumb (webkit) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8b97a8, #6c7a8f);
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        0 0 0 2px rgba(79,126,203,0.15);
    cursor: pointer;
    margin-top: -10px; /* centers thumb on track */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        0 0 0 4px rgba(79,126,203,0.18);
}

/* Firefox track */
input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #d6dde7;
}

/* Firefox thumb */
input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8b97a8, #6c7a8f);
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        0 0 0 2px rgba(79,126,203,0.15);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.08);
}

/* active/focus */
input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        0 0 0 4px rgba(79,126,203,0.25);
}

input[type="range"]:focus::-moz-range-thumb {
    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        0 0 0 4px rgba(79,126,203,0.25);
}


/* ranking */

.survey-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.survey-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 18px 18px;
    background: #fff;
    border: 1px solid #e3e9f1;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
	cursor: move;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.survey-ranking-item:hover {
    border-color: #cfd9e8;
    background: #fbfdff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.survey-ranking-handle {
    color: #7b8797;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    cursor: grab;
    touch-action: none;
    -ms-touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* buttons */

.survey-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid #eef2f7;
}

.survey-nav-left,
.survey-nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.survey-btn,
.survey-nav a.survey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--survey-primary);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    box-shadow: 0 10px 24px rgba(79, 126, 203, 0.22);
}

.survey-btn:hover,
.survey-nav a.survey-btn:hover {
    background: #406eb7;
    transform: translateY(-1px);
}

.survey-btn-secondary {
    background: #edf2f7;
    color: #334155;
    box-shadow: none;
}

.survey-btn-secondary:hover {
    background: #e2e8f0;
}

/* finish page */

.survey-finish-message h1 {
    margin: 0 0 12px 0;
    font-size: 36px;
    color: #1f2937;
}

.survey-finish-message p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--survey-muted);
}

/* image blocks */

.survey-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.survey-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e5ebf2;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.survey-image-lightbox[hidden] {
    display: none;
}

.survey-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.survey-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.survey-image-lightbox-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.survey-image-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.survey-image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* comment */

.survey-block-comment {
    position: relative;
    background: #eef7ff;
    border: 1px solid #cfe5fb;
    padding: 32px 20px 18px 20px;
    margin: 65px 0;
}

.survey-comment-label {
  position: absolute;
  top: -18px;
  left: 16px;
  background: #fff;
  padding: 4px 12px;
  font-weight: 600;
  color: #23415f;
  font-size: 20px;
  border: 1px solid #cfe5fb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.survey-comment-text {
    color: #23415f;
    line-height: 1.7;
}

.survey-comment-text p {
    margin: 14px;
}

.survey-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}


/* matchmaking report page */

.survey-report-page {
    background: #ffffff;
    padding: 40px 50px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin: 0 auto;
}

.survey-report-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.survey-report-box h1 {
    margin: 0 0 14px 0;
    font-size: 34px;
    line-height: 1.2;
    color: #1f2937;
}

.survey-report-text {
    margin: 0 0 30px 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--survey-muted);
}

.survey-report-loading {
    margin: 0 0 34px 0;
}

.survey-report-loading-subtext {
    margin: 10px 0 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--survey-muted);
}

.survey-report-loading-actions {
    margin-top: 20px;
}

.survey-report-timeout {
    margin: 0 0 30px 0;
}

.survey-report-preview {
    margin-top: 20px;
}

.survey-report-spinner {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px auto;
    border: 6px solid #dbe7f7;
    border-top-color: var(--survey-primary);
    border-radius: 50%;
    animation: survey-spin 0.9s linear infinite;
}

.survey-report-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #2e5b9a;
}

.survey-report-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.survey-report-result-actions {
    margin-bottom: 30px;
}

.survey-btn-disabled,
.survey-btn-disabled:hover,
.survey-btn:disabled,
.survey-btn:disabled:hover,
.survey-btn[disabled],
.survey-btn[disabled]:hover {
    background: #cbd5e1 !important;
    color: #f8fafc !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

.survey-report-preview-text {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #1f2d3d;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 15px;
	margin-bottom: 45px;
}

.survey-report-preview-text strong {
    display: block;
    margin-bottom: 4px;
}

.survey-report-score-wrap {
    text-align: center;
    margin: 8px 0 18px 0;
}

.survey-report-score-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.survey-report-score-stars .survey-rating-star {
    display: inline-block;
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 42px;
    color: #d7dee8;
}

.survey-report-score-stars .survey-rating-star.is-active {
    color: #f5b301;
    filter: drop-shadow(0 2px 5px rgba(245, 179, 1, 0.32));
}

.survey-report-score-label {
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #23415f;
}

.survey-report-score-text {
    margin-top: 8px;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
    color: #36506c;
    text-align: center;
	margin-bottom: 30px;
}

.survey-report-preview-text p {
    margin: 0 0 16px 0;
}

.survey-report-preview-text strong + strong {
    margin-top: 2px;
}

.survey-report-preview-text p:last-child {
    margin-bottom: 0;
}

.survey-report-section {
    margin: 0 0 18px 0;
}

.survey-report-preview-text p:first-child {
    margin-top: 0;
}

.survey-report-section:last-child {
    margin-bottom: 0;
}

.survey-report-section-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #23415f;
    text-align: left;
}

.survey-report-section p,
.survey-report-preview-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 400;
    color: #1f2d3d;
    text-align: left;
}

.survey-report-score-line {
    margin: 3px 0;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    color: #2f3746;
    text-align: left;
}

@keyframes survey-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* mobile */

@media (max-width: 900px) {
    body {
        background-size: 72px auto, 72px auto;
        padding: 24px 12px;
    }
	.survey-stage::before{
		padding: 25px;
	}
		
	.survey-stage{
		padding: 0;
	}

    .survey-wrap,
    .survey-finish-message {
        padding: 28px 20px;
        border-radius: 18px;
		margin: 0 auto;
    }

    .survey-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 32px;
    }

    .survey-topbar-left,
    .survey-topbar-right {
        width: 100%;
        min-width: 0;
    }

    .survey-topbar-right {
        align-items: flex-start;
        text-align: left;
    }

    .survey-topbar-title {
        width: 100%;
        align-items: flex-start;
        font-size: 20px;
    }

    .survey-topbar-title-text {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .survey-breadcrumb {
        justify-content: flex-start;
        text-align: left;
        transform: none;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
    }
	
	.survey-header h1 {
		font-size: 24px;
	}
	
	.survey-label,
	.survey-page-survey-title {
		font-size: 18px;
	}

    .survey-block h2 {
        font-size: 24px;
    }

    .survey-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .survey-nav-left,
    .survey-nav-right {
        width: 100%;
        justify-content: stretch;
    }

    .survey-btn,
    .survey-nav a.survey-btn {
        width: 100%;
    }
	
	.survey-slider-labels {
		gap: 10px;
		font-size: 13px;
	}
	
	.survey-slider-labels span:nth-child(2) {
		max-width: 140px;
	}
	
	.survey-ranking-item {
		margin-right:30px;
	}
	
	.survey-report-page{
		padding: 0;
	}
	
	.survey-rating-star {
	  width: 28px !important;
	  height: 28px !important;
	  line-height: 28px !important;
	  font-size: 28px !important;
	}
	
    .surpix-title {
        flex-direction: column;
        gap: 8px;
    }

    .surpix-logo {
        width: 30px;
        height: 30px;
    }
}