
.safety-questionnaire {
    background-color: #DAF0ED;
    text-align: center;
}

.safety-questionnaire article {
    margin: 0 auto;
    width: 40%;
}

.safety-questionnaire article.info-text {
    position: relative;
    width: 50%;
}

.safety-questionnaire article.info-text:before {
    content: '';
    display: block;
    margin: 0 auto;
    background-image: url("/wp-content/themes/angelsense/images/info.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    width: 20px;
    height: 20px;
    margin-bottom: 1em;
}

.safety-questionnaire article p {
    color: #292929;
}

.safety-questionnaire article p:first-of-type {
    margin: 1em 0em;
}

.safety-questionnaire .info {
    margin-top: 2em;
    padding: 1em 1em;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.20);
}

.bottom-quiz {
    background-color: #32b4a6;
    color: #FFF;
    text-align: center;
}

.bottom-quiz p {
    margin: 1em auto;
}

.bottom-quiz div.action {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 700px;
    margin: 1em auto;
}

.bottom-quiz div.action .action {
    flex: 1 auto;
    margin: 0 0.5em;
}

.bottom-quiz span {
    font-size: 14px;
}

.quiz {
    --quiz-bg: #f6f6f6;
    --quiz-surface: #ffffff;
    --quiz-text: #292929;
    --quiz-muted: #6f6f6f;
    --quiz-line: #dfdfe3;
    --quiz-card: #f2f2f2;
    --quiz-card-selected: #eefaf8;
    --quiz-accent: #2cb5a5;
    --quiz-accent-dark: #239a8d;
    --quiz-disabled: #A9A9A9;
    --quiz-back: #9f9f9f;

    background: var(--quiz-bg);
    position: relative;
    min-height: 100vh;
    color: var(--quiz-text);
    font-family: inherit;
    overflow: hidden;
    padding: 0;
}

.quiz__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 32px 48px;
    min-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
}

.quiz__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.quiz__counter,
.quiz__percent {
    font-size: 18px;
    line-height: 1.3;
    color: #4c6f84;
    font-weight: 500;
}

.quiz__progress {
    position: relative;
    margin-bottom: 72px;
    padding: 0 12px;
    overflow: visible;
}

.quiz__progress-line,
.quiz__progress-fill {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 999px;
}

.quiz__progress-line {
    background: var(--quiz-line);
}

.quiz__progress-fill {
    background: var(--quiz-accent);
    right: auto;
    width: 0;
    transition: width 0.3s ease;
    z-index: 1;
}

.quiz__progress-steps {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz__progress-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e3e3e7;
    border: 6px solid #f6f6f6;
    box-sizing: border-box;
    transition: all 0.25s ease;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

/* completed steps → check icon */
.quiz__progress-step.is-complete {
    background-color: var(--quiz-accent);
    background-image: url('/wp-content/themes/angelsense/images/check.svg');
}

/* active step → just green */
.quiz__progress-step.is-active {
    background-color: var(--quiz-accent);
    background-image: none;
}

/* future steps → grey */
.quiz__progress-step:not(.is-complete):not(.is-active) {
    background-color: #e3e3e7;
}

.quiz__question {
    max-width: 1040px;
}

.quiz__title {
    margin: 0 0 28px;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--quiz-text);
    letter-spacing: -0.01em;
}

.quiz__answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz__answer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 66px;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--quiz-card);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quiz__answer:hover {
    border-color: #d8d8d8;
}

.quiz__answer.is-selected {
    background: var(--quiz-card-selected);
    border-color: var(--quiz-accent);
}

.quiz__answer-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz__answer-control {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #e3e3e3;
    position: relative;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.quiz__answer.is-selected .quiz__answer-control {
    background-color: var(--quiz-accent);
    background-image: url('/wp-content/themes/angelsense/images/check.svg');
    box-shadow: none;
}

.quiz__answer-text {
    font-size: 18px;
    line-height: 1.35;
    color: #666666;
}

.quiz__answer.is-selected .quiz__answer-text {
    color: var(--quiz-text);
}

.quiz__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 48px;
}

.quiz__back,
.quiz__continue {
    appearance: none;
    border: 0;
    border-radius: 12px;
    font: inherit;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quiz__back {
    background: transparent;
    color: var(--quiz-back);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.quiz__back:hover:not(:disabled) {
    color: #7f7f7f;
}

.quiz__back:disabled {
    opacity: 0.45;
    cursor: default;
}

.quiz__back-icon {
    font-size: 24px;
    line-height: 1;
    transform: translateY(-1px);
}

.quiz__continue {
    min-width: 218px;
    height: 58px;
    padding: 0 28px;
    background: var(--quiz-accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
}

.quiz__continue:hover:not(:disabled) {
    background: var(--quiz-accent-dark);
}

.quiz__continue:disabled {
    background: var(--quiz-disabled);
    color: var(--quiz-text);
    cursor: default;
}

.quiz__loading,
.quiz__error,
.quiz__success {
    max-width: 760px;
    margin: 80px auto;
    padding: 32px;
    border-radius: 16px;
    background: #ffffff;
}

.quiz__progress-fill {
    background: var(--quiz-accent);
    right: auto;
    width: 0;
    transition: width 0.3s ease;
    z-index: 1;
}

.quiz__success h2,
.quiz__error p,
.quiz__loading {
    margin: 0;
}

.quiz__tooltip {
    margin-top: 24px;
    min-height: 86px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.quiz__tooltip.is-visible {
    visibility: visible;
    opacity: 1;
}

.quiz__tooltip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e8f4f2;
    border-radius: 12px;
    padding: 34px 18px;
}

.quiz__tooltip-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: url('/wp-content/themes/angelsense/images/icons/shield.svg') no-repeat center;
    background-size: contain;
}

.quiz__tooltip-text {
    font-size: 16px;
    line-height: 1.4;
    color: #292929;
}

.quiz__submitting {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 120px;
    text-align: center;
}

.quiz__submitting-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 5px solid #d9d9d9;
    border-top-color: #2cb5a5;
    animation: quiz-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.quiz__submitting-text {
    font-size: 16px;
    line-height: 1.4;
    color: #6b6b6b;
    font-weight: 500;
}

.quiz__submitting-bottom {
    background: #2cb5a5;
    color: #ffffff;
    text-align: center;
    padding: 20px 16px;
}

.quiz__submitting-bottom-text {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

@keyframes quiz-spin {
    to {
        transform: rotate(360deg);
    }
}