:root {
    --tit-teal: #078698;
    --tit-teal-dark: #056675;
    --tit-purple: #68468a;
    --tit-gold: #c2ad63;
    --tit-orange: #fca119;
    --tit-charcoal: #646669;
}

.tit-assessment[hidden] {
    display: none !important;
}

.tit-assessment {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 22px;
    font-family: inherit;
}

.tit-assessment__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 31, 38, 0.76);
    backdrop-filter: blur(3px);
    animation: tit-fade-in 180ms ease-out both;
}

.tit-assessment__dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 34px 38px 26px;
    border: 1px solid rgba(194, 173, 99, 0.65);
    border-radius: 20px;
    background:
        radial-gradient(circle at 0 0, rgba(194, 173, 99, 0.14), transparent 34%),
        #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    color: #303236;
    text-align: center;
    animation: tit-rise-in 240ms cubic-bezier(.2, .8, .2, 1) both;
}

.tit-assessment__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tit-charcoal);
    font: 400 32px/1 Arial, sans-serif;
    cursor: pointer;
}

.tit-assessment__close:hover,
.tit-assessment__close:focus-visible {
    background: #f1f2f3;
    color: #222;
}

.tit-assessment__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--tit-purple);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tit-assessment h2 {
    max-width: 720px;
    margin: 0 auto 10px;
    color: var(--tit-charcoal);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.tit-assessment__intro > p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #555a60;
    font-size: 1rem;
    line-height: 1.55;
}

.tit-assessment__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tit-assessment__choice {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 25px 22px 22px;
    border: 1px solid #e1e3e5;
    border-top: 5px solid var(--tit-teal);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(48, 50, 54, 0.08);
}

.tit-assessment__choice--membership {
    border-top-color: var(--tit-purple);
}

.tit-assessment__choice-label {
    display: block;
    margin-bottom: 9px;
    color: var(--tit-teal);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tit-assessment__choice--membership .tit-assessment__choice-label {
    color: var(--tit-purple);
}

.tit-assessment__choice h3 {
    margin: 0 0 9px;
    color: var(--tit-charcoal);
    font-size: 1.22rem;
    line-height: 1.25;
}

.tit-assessment__choice p {
    flex: 1;
    margin: 0 0 15px;
    color: #60646a;
    font-size: 0.91rem;
    line-height: 1.45;
}

.tit-assessment__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--tit-teal);
    color: #fff !important;
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.tit-assessment__choice--membership .tit-assessment__button {
    background: var(--tit-purple);
}

.tit-assessment__button:hover,
.tit-assessment__button:focus-visible {
    background: var(--tit-teal-dark);
    box-shadow: 0 7px 16px rgba(7, 134, 152, 0.25);
    transform: translateY(-1px);
}

.tit-assessment__choice--membership .tit-assessment__button:hover,
.tit-assessment__choice--membership .tit-assessment__button:focus-visible {
    background: #563873;
    box-shadow: 0 7px 16px rgba(104, 70, 138, 0.25);
}

.tit-assessment__both {
    margin: 18px auto 7px;
    color: #53575c;
    font-size: 0.88rem;
}

.tit-assessment__later {
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: #6b7076;
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
}

body.tit-assessment-open {
    overflow: hidden;
}

@keyframes tit-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tit-rise-in {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
    .tit-assessment {
        align-items: end;
        padding: 0;
    }

    .tit-assessment__dialog {
        width: 100%;
        max-height: 92vh;
        padding: 26px 18px 18px;
        border-radius: 20px 20px 0 0;
    }

    .tit-assessment__choices {
        grid-template-columns: 1fr;
    }

    .tit-assessment__choice {
        display: flex;
        padding: 17px;
        text-align: center;
    }

    .tit-assessment__choice h3 {
        margin-top: 0;
        font-size: 1.08rem;
    }

    .tit-assessment__choice p {
        margin-bottom: 10px;
        font-size: 0.84rem;
    }

    .tit-assessment__button {
        min-height: 43px;
        font-size: 0.84rem;
        text-align: center;
    }

    .tit-assessment__intro > p {
        margin-bottom: 17px;
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tit-assessment__backdrop,
    .tit-assessment__dialog,
    .tit-assessment__button {
        animation: none;
        transition: none;
    }
}
