/* Original modal and choice-helper presentation; no quiz runtime.
 * Source: reference/website/style.css. Keep the documented module order.
 */

/* Choice helpers */
.quiz-modal {
    border: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    border-radius: 21px;
    width: min(660px,calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    box-shadow: 0 30px 100px #102e3a40;
    overflow: auto;
}

.quiz-modal::backdrop {
    background: #132d2478;
    backdrop-filter: blur(7px);
}

body:has(.quiz-modal[open]) {
    overflow: hidden;
}

.quiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
}

.quiz-top .brand img {
    width: 37px;
    height: 37px;
}

.quiz-top .wordmark {
    font-size: 17px;
    letter-spacing: -.7px;
}

.quiz-close {
    border: 1px solid var(--line);
    background: transparent;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.quiz-close svg {
    width: 16px;
    height: 16px;
}

.quiz-content {
    padding: 30px 36px 32px;
}

.quiz-progress {
    height: 4px;
    background: var(--line);
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.quiz-progress i {
    display: block;
    height: 100%;
    background: var(--green);
    transition: width .3s;
}

.quiz-breadcrumb {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
    margin-bottom: 13px;
}

.quiz-content h2 {
    font-size: 28px;
    letter-spacing: -1px;
    outline: none;
}

.quiz-intro {
    font-size: 14px;
    line-height: 1.7;
    margin: 13px 0 23px;
}

.quiz-options {
    display: grid;
    gap: 10px;
}

.quiz-option {
    border: 1px solid var(--line);
    border-radius: 9px;
    min-height: 59px;
    background: var(--paper);
    text-align: left;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-weight: 500;
    font-size: 15px;
    transition: background .17s;
}

.quiz-option:hover,.quiz-option[aria-pressed=true] {
    background: var(--sage);
    border-color: var(--green);
}

.quiz-option svg {
    width: 17px;
    height: 17px;
}

.quiz-option small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.5;
}

.quiz-back {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    margin-top: 25px;
}

.quiz-back svg {
    width: 15px;
    height: 15px;
}

.quiz-footer {
    padding: 15px 28px;
    background: var(--sage);
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    border-radius: 0 0 21px 21px;
}

.quiz-field {
    margin: 16px 0;
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.quiz-field input,.quiz-field select {
    width: 100%;
    border: 1px solid #bfcabb;
    padding: 14px;
    border-radius: 7px;
    background: var(--paper);
    margin-top: 8px;
    color: var(--ink);
    font-size: 16px;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    line-height: 1.7;
    margin: 19px 0;
}

.check-field input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.quiz-content .demo-hint {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
    padding: 11px 14px;
    background: var(--sage);
    border-radius: 7px;
    margin-bottom: 20px;
}

.skip-email {
    display: block;
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 12px;
    margin: 18px auto 0;
}

.result-icon {
    width: 47px;
    height: 47px;
    background: #dee9d5;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
}

.result-card {
    padding: 20px;
    border-radius: 11px;
    background: var(--sage);
    margin: 22px 0;
}

.result-card h3 {
    font-size: 20px;
    line-height: 1.4;
}

.result-card p {
    font-size: 14px;
    line-height: 1.8;
    margin: 10px 0 0;
}

.result-card ul {
    font-size: 13px;
    line-height: 1.9;
    padding-left: 20px;
    color: var(--muted);
    margin-bottom: 0;
}

.answer-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.answer-tags span {
    font-size: 10px;
    background: var(--cream);
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.result-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.result-actions .button {
    font-size: 12px;
    padding: 12px 15px;
    gap: 10px;
}

.loading {
    text-align: center;
    padding: 35px 10px;
}

.loading img {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.loading h2 {
    font-size: 25px;
}

.loading p {
    font-size: 14px;
}

.loading-line {
    height: 5px;
    background: var(--line);
    width: 180px;
    margin: 25px auto;
    border-radius: 4px;
    overflow: hidden;
}

.loading-line:before {
    content: '';
    height: 100%;
    display: block;
    background: var(--green);
    width: 100%;
    transform-origin: left;
    animation: calculate 1.2s ease-out;
}

.info-modal .quiz-content p {
    font-size: 14px;
}

.mobile-quiz {
    display: none;
}

.result-checks {
    list-style: none;
    padding: 0;
}

.result-checks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.result-checks svg {
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

.error-text {
    color: #a02f26;
    font-size: 13px;
}

.print-title {
    display: none;
}

@keyframes calculate {
    from {
        transform: scaleX(.05);
    }
    to {
        transform: scaleX(1);
    }
}
