
/* =========================================
   REALGRENO - NEW BUSINESS ASSESSMENT
   ========================================= */

.sb-assessment {
    --sb-maroon: #2E0000;
    --sb-orange: #FF8533;
    --sb-mustard: #C97E19;
    --sb-cream: #FAF8F5;
    --sb-border: #E8E8E8;

    padding: 76px 24px 90px;
    background: var(--sb-cream);
    color: #222222;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

.sb-assessment *,
.sb-assessment *::before,
.sb-assessment *::after {
    box-sizing: border-box;
}

.sb-assessment [hidden] {
    display: none !important;
}

.sb-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Introduction */

.sb-intro {
    max-width: 730px;
    margin: 0 auto 40px;
    text-align: center;
}

.sb-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--sb-mustard);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sb-eyebrow span {
    width: 30px;
    height: 1px;
    background: var(--sb-orange);
}

.sb-intro h1 {
    margin: 0 0 18px;
    color: var(--sb-maroon);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(36px, 4.5vw, 55px);
    font-weight: 500;
    line-height: 1.17;
    letter-spacing: -.035em;
}

.sb-intro h1 em {
    color: var(--sb-orange);
    font-weight: 500;
}

.sb-intro-text {
    max-width: 650px;
    margin: 0 auto;
    color: #69615B;
    font-size: 15px;
    line-height: 1.85;
}

.sb-intro-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 23px;
}

.sb-intro-meta span {
    padding: 6px 12px;
    border: 1px solid #EAE3DA;
    border-radius: 30px;
    background: #FFFFFF;
    color: #655D56;
    font-size: 11px;
}

/* Quiz card */

.sb-quiz {
    max-width: 810px;
    margin: 0 auto;
    padding: 34px 42px 22px;
    border: 1px solid #EBE6DF;
    background: #FFFFFF;
    box-shadow: 0 12px 38px rgba(46, 0, 0, .045);
}

.sb-quiz-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.sb-quiz-label {
    color: #57504A;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.sb-private {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #827970;
    font-size: 10px;
}

.sb-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sb-mustard);
}

/* Progress bar */

.sb-progress-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 29px;
    color: #655D56;
    font-size: 11px;
    font-weight: 600;
}

.sb-progress-info span:last-child {
    color: #8C847C;
    font-weight: 400;
}

.sb-progress-track {
    height: 4px;
    margin-top: 12px;
    overflow: hidden;
    background: #EAE6E1;
}

.sb-progress-fill {
    width: 12.5%;
    height: 100%;
    background: var(--sb-mustard);
    transition: width .25s ease;
}

/* Questions */

.sb-question-title {
    margin: 32px 0 10px;
    color: var(--sb-maroon);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(22px, 2.8vw, 29px);
    font-weight: 500;
    line-height: 1.4;
}

.sb-question-hint {
    margin: 0 0 21px;
    color: #817970;
    font-size: 12px;
}

/* Answer cards */

.sb-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sb-answer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 67px;
    padding: 14px 15px;
    border: 1px solid #E8E3DC;
    background: #FFFFFF;
    color: #393532;
    cursor: pointer;
    transition: border-color .18s ease,
                background-color .18s ease,
                box-shadow .18s ease;
}

.sb-answer:hover {
    border-color: #CDA36E;
    background: #FFFCF8;
}

.sb-answer:has(input:checked) {
    border-color: var(--sb-mustard);
    background: #FFF8EF;
    box-shadow: inset 3px 0 var(--sb-mustard);
}

.sb-answer input {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--sb-maroon);
    cursor: pointer;
}

/* Requested answer-letter typography */
.sb-answer-letter {
    flex: 0 0 15px;
    color: #2E0000;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

/* Answer text */
.sb-answer-text {
    flex: 1;
    color: #393532;
    font-size: 15px;
    line-height: 1.6;
}

.sb-answer:focus-within {
    outline: 2px solid var(--sb-mustard);
    outline-offset: 2px;
}

/* Navigation */

.sb-validation {
    min-height: 20px;
    margin: 9px 0 0;
    color: #9C2D20;
    font-size: 12px;
}

.sb-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 53px;
    margin-top: 8px;
}

.sb-controls-spacer {
    flex: 1;
}

.sb-required-note {
    color: #827970;
    font-size: 11px;
    text-align: right;
}

.sb-back-btn,
.sb-next-btn,
.sb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-height: 47px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease,
                color .2s ease,
                transform .2s ease;
}

.sb-back-btn {
    padding-left: 0;
    background: transparent;
    color: var(--sb-maroon);
}

.sb-back-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.sb-next-btn {
    min-width: 143px;
    background: var(--sb-maroon);
    color: #FFFFFF;
}

.sb-next-btn:hover:not(:disabled) {
    background: #4A1010;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.sb-next-btn:disabled {
    background: #B8B0A9;
    color: #FFFFFF;
    cursor: not-allowed;
}

.sb-next-btn:focus-visible,
.sb-back-btn:focus-visible,
.sb-action-btn:focus-visible,
.sb-restart:focus-visible {
    outline: 3px solid var(--sb-orange);
    outline-offset: 3px;
}

.sb-quiz-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #F0ECE7;
    color: #827970;
    font-size: 10px;
    line-height: 1.7;
}

/* Results */

.sb-results {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 45px;
}

.sb-result-heading {
    margin-bottom: 25px;
    text-align: center;
}

.sb-result-heading h2 {
    margin: 0 0 13px;
    color: var(--sb-maroon);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 500;
    line-height: 1.25;
}

.sb-result-heading > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: #69615B;
    font-size: 14px;
    line-height: 1.8;
}

.sb-score-card {
    display: grid;
    grid-template-columns: 155px 1fr;
    align-items: center;
    gap: 25px;
    padding: 28px;
    border: 1px solid #EBE6DF;
    background: #FFFFFF;
}

.sb-score-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    background: #FFF4E8;
    color: var(--sb-maroon);
}

.sb-score-number strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 43px;
    font-weight: 500;
    line-height: 1.2;
}

.sb-score-number span {
    color: #766E66;
    font-size: 11px;
}

.sb-score-content h3 {
    margin: 0 0 9px;
    color: var(--sb-maroon);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 500;
}

.sb-score-content p {
    margin: 0;
    color: #69615B;
    font-size: 13px;
    line-height: 1.8;
}

.sb-result-section {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid #EBE6DF;
    background: #FFFFFF;
}

.sb-result-section h3 {
    margin: 0 0 17px;
    color: var(--sb-maroon);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

.sb-category {
    margin-bottom: 18px;
}

.sb-category:last-child {
    margin-bottom: 0;
}

.sb-category-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 7px;
    color: #4B4540;
    font-size: 12px;
}

.sb-category-top strong {
    color: var(--sb-maroon);
}

.sb-category-track {
    height: 6px;
    overflow: hidden;
    background: #EEE9E3;
}

.sb-category-fill {
    height: 100%;
    background: var(--sb-mustard);
}

.sb-priority-list {
    margin: 0;
    padding-left: 20px;
    color: #5D5650;
}

.sb-priority-list li {
    margin-bottom: 12px;
    padding-left: 4px;
    font-size: 14px;
    line-height: 1.8;
}

.sb-priority-list li::marker {
    color: var(--sb-mustard);
}

.sb-priority-list li:last-child {
    margin-bottom: 0;
}

/* Realgreno CTA */

.sb-cta {
    margin-top: 25px;
    padding: 42px;
    background: var(--sb-maroon);
    color: #FFFFFF;
}

.sb-cta-label {
    margin: 0 0 13px;
    color: #FFB568;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.sb-cta h3 {
    max-width: 650px;
    margin: 0 0 15px;
    color: #FFFFFF;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3.5vw, 39px);
    font-weight: 500;
    line-height: 1.25;
}

.sb-cta > p:not(.sb-cta-label) {
    max-width: 680px;
    margin: 0 0 24px;
    color: #E8DAD5;
    font-size: 13px;
    line-height: 1.9;
}

.sb-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sb-action-btn {
    min-height: 49px;
    padding: 0 22px;
    background: var(--sb-orange);
    color: #220A00;
    text-decoration: none;
}

.sb-action-btn:hover {
    background: #FF9A57;
    color: #220A00;
}

.sb-action-secondary {
    border-color: rgba(255,255,255,.45);
    background: transparent;
    color: #FFFFFF;
}

.sb-action-secondary:hover {
    background: #FFFFFF;
    color: var(--sb-maroon);
}

.sb-result-disclaimer {
    margin: 18px 0 0;
    color: #827970;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

.sb-restart {
    display: block;
    margin: 22px auto 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--sb-maroon);
    font: 600 12px "DM Sans", Arial, sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

/* Responsive */

@media (max-width: 680px) {
    .sb-assessment {
        padding: 48px 16px 60px;
    }

    .sb-intro {
        margin-bottom: 27px;
    }

    .sb-intro h1 {
        font-size: clamp(34px, 9vw, 45px);
    }

    .sb-intro-text {
        font-size: 13px;
    }

    .sb-intro-meta {
        gap: 7px;
    }

    .sb-intro-meta span {
        padding: 5px 9px;
        font-size: 10px;
    }

    .sb-quiz {
        padding: 24px 18px 18px;
    }

    .sb-quiz-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .sb-progress-info {
        margin-top: 23px;
    }

    .sb-question-title {
        margin-top: 26px;
        font-size: 25px;
    }

    .sb-answers {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sb-answer {
        min-height: 58px;
        padding: 12px;
    }

    .sb-answer-letter {
        font-size: 15px;
    }

    .sb-answer-text {
        font-size: 15px;
    }

    .sb-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sb-controls-spacer {
        flex-basis: 100%;
        height: 0;
        order: 1;
    }

    .sb-back-btn {
        order: 2;
    }

    .sb-required-note {
        flex: 1;
        order: 3;
        font-size: 10px;
    }

    .sb-next-btn {
        min-width: 118px;
        padding: 0 12px;
        order: 4;
    }

    .sb-score-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .sb-score-number {
        min-height: 110px;
    }

    .sb-result-section {
        padding: 20px 17px;
    }

    .sb-cta {
        padding: 28px 21px;
    }

    .sb-cta-actions {
        flex-direction: column;
    }

    .sb-action-btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-assessment *,
    .sb-assessment *::before,
    .sb-assessment *::after {
        transition: none !important;
    }
}
