/* =========================================================
   ADHD TEST COMPLETE CSS
   적용 대상: #adhdTestApp
========================================================= */

#adhdTestApp,
#adhdTestApp * {
    box-sizing: border-box;
}

#adhdTestApp {
    --adhd-primary: #5b5cf0;
    --adhd-primary-dark: #4142cc;
    --adhd-primary-light: #eeeeff;
    --adhd-navy: #172033;
    --adhd-text: #252b3a;
    --adhd-muted: #6d7587;
    --adhd-line: #e6e9f1;
    --adhd-bg: #f5f7fb;
    --adhd-card: #ffffff;
    --adhd-success: #14a673;
    --adhd-warning: #f59e0b;
    --adhd-danger: #ef476f;

    width: 100%;
    max-width: 1180px;
    min-height: 600px;
    margin: 0 auto;
    padding: 30px 14px 70px;
    color: var(--adhd-text);
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: break-word;
}

#adhdTestApp button,
#adhdTestApp input,
#adhdTestApp textarea,
#adhdTestApp select {
    font: inherit;
}

#adhdTestApp button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
}

#adhdTestApp button:focus-visible {
    outline: 3px solid rgba(91, 92, 240, 0.28);
    outline-offset: 3px;
}

#adhdTestApp button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

#adhdTestApp h1,
#adhdTestApp h2,
#adhdTestApp h3,
#adhdTestApp p {
    margin-top: 0;
}

#adhdTestApp [hidden] {
    display: none !important;
}

/* =========================================================
   SCREEN
========================================================= */

#adhdTestApp .adhd-screen {
    display: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

#adhdTestApp .adhd-screen.is-active {
    display: block !important;
    animation: adhdFadeUp 0.38s ease both;
}

@keyframes adhdFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LANDING HERO
========================================================= */

#adhdTestApp .adhd-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 72px 66px 66px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    background:
        radial-gradient(
            circle at 88% 16%,
            rgba(180, 184, 255, 0.42) 0,
            rgba(180, 184, 255, 0) 30%
        ),
        radial-gradient(
            circle at 8% 100%,
            rgba(102, 219, 255, 0.2) 0,
            rgba(102, 219, 255, 0) 34%
        ),
        linear-gradient(135deg, #20285b 0%, #4e50d8 54%, #7475f2 100%);
    color: #ffffff;
    box-shadow: 0 25px 70px rgba(33, 42, 104, 0.22);
}

#adhdTestApp .adhd-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -110px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 75px solid rgba(255, 255, 255, 0.07);
}

#adhdTestApp .adhd-hero::after {
    content: "🧠";
    position: absolute;
    z-index: -1;
    right: 70px;
    bottom: 48px;
    font-size: 150px;
    line-height: 1;
    opacity: 0.16;
    transform: rotate(-8deg);
    filter: grayscale(0.1);
}

#adhdTestApp .adhd-brand {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 15px;
    color: #d9dbff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.14em;
}

#adhdTestApp .adhd-brand::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 3px;
    margin-right: 10px;
    border-radius: 999px;
    background: #aeb3ff;
}

#adhdTestApp .adhd-badge {
    display: table;
    margin-bottom: 15px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#adhdTestApp .adhd-hero h1 {
    max-width: 680px;
    margin-bottom: 20px;
    color: #ffffff !important;
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 950;
    line-height: 1.06;
    letter-spacing: -0.055em;
}

#adhdTestApp .adhd-hero > p:not(.adhd-disclaimer) {
    max-width: 740px;
    margin-bottom: 31px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.8;
}

/* =========================================================
   HERO STATS
========================================================= */

#adhdTestApp .adhd-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 145px));
    gap: 12px;
    max-width: 475px;
    margin-bottom: 30px;
}

#adhdTestApp .adhd-hero-stats > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 84px;
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#adhdTestApp .adhd-hero-stats strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
}

#adhdTestApp .adhd-hero-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   BUTTONS
========================================================= */

#adhdTestApp .adhd-primary-btn,
#adhdTestApp .adhd-secondary-btn,
#adhdTestApp .adhd-dark-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 54px;
    padding: 14px 23px;
    border-radius: 14px !important;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

#adhdTestApp .adhd-primary-btn {
    background: var(--adhd-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(91, 92, 240, 0.26);
}

#adhdTestApp .adhd-primary-btn:hover {
    background: var(--adhd-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(65, 66, 204, 0.32);
}

#adhdTestApp .adhd-secondary-btn {
    border: 1px solid #dfe3ec !important;
    background: #ffffff !important;
    color: #384056 !important;
    box-shadow: 0 7px 18px rgba(31, 39, 65, 0.07);
}

#adhdTestApp .adhd-secondary-btn:hover {
    border-color: #bbbff7 !important;
    background: #f7f7ff !important;
    color: var(--adhd-primary-dark) !important;
    transform: translateY(-2px);
}

#adhdTestApp .adhd-dark-btn {
    background: #222a3c !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(34, 42, 60, 0.2);
}

#adhdTestApp .adhd-dark-btn:hover {
    background: #101726 !important;
    transform: translateY(-2px);
}

#adhdTestApp .adhd-text-btn {
    min-height: 42px;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 14px;
    font-weight: 750;
}

#adhdTestApp .adhd-text-btn:hover {
    background: #f0f2f8 !important;
    color: var(--adhd-primary-dark) !important;
}

#adhdTestApp .adhd-hero > .adhd-primary-btn {
    min-width: 240px;
    min-height: 61px;
    padding: 17px 28px;
    background: #ffffff !important;
    color: #3e40c2 !important;
    font-size: 18px;
    box-shadow: 0 14px 35px rgba(24, 30, 90, 0.27);
}

#adhdTestApp .adhd-hero > .adhd-primary-btn:hover {
    background: #f4f4ff !important;
    color: #2527a8 !important;
}

#adhdTestApp .adhd-disclaimer {
    max-width: 720px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    line-height: 1.65;
}

/* =========================================================
   FEATURE GRID
========================================================= */

#adhdTestApp .adhd-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-top: 21px;
}

#adhdTestApp .adhd-feature-grid article {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 27px 25px;
    border: 1px solid var(--adhd-line);
    border-radius: 21px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(29, 39, 70, 0.065);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

#adhdTestApp .adhd-feature-grid article:hover {
    transform: translateY(-4px);
    border-color: #d4d6ff;
    box-shadow: 0 18px 42px rgba(29, 39, 70, 0.11);
}

#adhdTestApp .adhd-feature-grid article > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin-bottom: 16px;
    border-radius: 15px;
    background: var(--adhd-primary-light);
    font-size: 25px;
}

#adhdTestApp .adhd-feature-grid h2 {
    margin-bottom: 8px;
    color: var(--adhd-navy) !important;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

#adhdTestApp .adhd-feature-grid p {
    margin-bottom: 0;
    color: var(--adhd-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   COMMON CARD
========================================================= */

#adhdTestApp .adhd-card {
    width: 100%;
    max-width: 790px;
    margin: 28px auto 0;
    padding: 38px;
    border: 1px solid var(--adhd-line);
    border-radius: 26px;
    background: var(--adhd-card);
    box-shadow: 0 20px 55px rgba(31, 40, 72, 0.1);
}

#adhdTestApp .adhd-center {
    padding-top: 55px;
    padding-bottom: 55px;
    text-align: center;
}

#adhdTestApp .adhd-center h2 {
    margin: 16px 0 11px;
    color: var(--adhd-navy) !important;
    font-size: 29px;
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -0.04em;
}

#adhdTestApp .adhd-center > p {
    margin-bottom: 25px;
    color: var(--adhd-muted);
    font-size: 16px;
}

#adhdTestApp .adhd-big-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 15px;
    border-radius: 24px;
    background: linear-gradient(145deg, #eeeeff, #e2e4ff);
    font-size: 38px;
    box-shadow: inset 0 0 0 1px rgba(91, 92, 240, 0.08);
}

#adhdTestApp .adhd-light-badge {
    display: table;
    margin: 0 auto 13px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eeeeff;
    color: #4d4fd0;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
}

/* =========================================================
   QUIZ
========================================================= */

#adhdTestApp .adhd-quiz-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

#adhdTestApp .adhd-quiz-head > div:nth-child(2) {
    color: #878da0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

#adhdTestApp .adhd-quiz-head > div:nth-child(2) strong {
    color: var(--adhd-primary);
    font-size: 20px;
    font-weight: 950;
}

#adhdTestApp #adhdTimer {
    justify-self: end;
    min-width: 64px;
    padding: 7px 10px;
    border-radius: 10px;
    background: #f3f4f8;
    color: #5e6679;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

#adhdTestApp .adhd-progress {
    width: 100%;
    height: 9px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceef5;
}

#adhdTestApp #adhdProgressBar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b5cf0, #8a7cf6);
    box-shadow: 0 0 10px rgba(91, 92, 240, 0.4);
    transition: width 0.32s ease;
}

#adhdTestApp .adhd-question-category {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 9px;
    background: var(--adhd-primary-light);
    color: #5052d2;
    font-size: 13px;
    font-weight: 850;
}

#adhdTestApp .adhd-question-text {
    min-height: 88px;
    margin-bottom: 8px;
    color: var(--adhd-navy) !important;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 950;
    line-height: 1.4;
    letter-spacing: -0.045em;
}

#adhdTestApp .adhd-question-guide {
    margin-bottom: 24px;
    color: #8a91a2;
    font-size: 14px;
    line-height: 1.7;
}

#adhdTestApp .adhd-choice-list {
    display: grid;
    gap: 11px;
    margin-bottom: 27px;
}

#adhdTestApp .adhd-choice-list button {
    position: relative;
    width: 100%;
    min-height: 61px;
    padding: 15px 48px 15px 18px !important;
    border: 1px solid #e2e5ed !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    color: #343b4e !important;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 5px 13px rgba(30, 40, 70, 0.035);
    transition:
        border-color 0.17s ease,
        background 0.17s ease,
        color 0.17s ease,
        transform 0.17s ease,
        box-shadow 0.17s ease;
}

#adhdTestApp .adhd-choice-list button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 19px;
    width: 19px;
    height: 19px;
    border: 2px solid #cfd3df;
    border-radius: 50%;
    transform: translateY(-50%);
}

#adhdTestApp .adhd-choice-list button:hover {
    border-color: #aeb1f4 !important;
    background: #f8f8ff !important;
    color: #3f41bf !important;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(62, 65, 180, 0.09);
}

#adhdTestApp .adhd-choice-list button.is-selected,
#adhdTestApp .adhd-choice-list button.selected,
#adhdTestApp .adhd-choice-list button[aria-pressed="true"] {
    border-color: var(--adhd-primary) !important;
    background: var(--adhd-primary-light) !important;
    color: #383ac0 !important;
    box-shadow: 0 8px 20px rgba(91, 92, 240, 0.13);
}

#adhdTestApp .adhd-choice-list button.is-selected::after,
#adhdTestApp .adhd-choice-list button.selected::after,
#adhdTestApp .adhd-choice-list button[aria-pressed="true"]::after {
    border: 5px solid var(--adhd-primary);
    background: #ffffff;
}

#adhdTestApp .adhd-quiz-actions {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 11px;
}

#adhdTestApp .adhd-quiz-actions .adhd-primary-btn,
#adhdTestApp .adhd-quiz-actions .adhd-secondary-btn {
    width: 100%;
}

/* =========================================================
   LOADING
========================================================= */

#adhdTestApp .adhd-loader {
    width: 68px;
    height: 68px;
    margin: 0 auto 23px;
    border: 7px solid #e6e7f8;
    border-top-color: var(--adhd-primary);
    border-radius: 50%;
    animation: adhdSpin 0.85s linear infinite;
}

@keyframes adhdSpin {
    to {
        transform: rotate(360deg);
    }
}

#adhdTestApp .adhd-loading-track {
    width: min(100%, 430px);
    height: 11px;
    margin: 23px auto 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eaf2;
}

#adhdTestApp #adhdLoadingBar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b5cf0, #8c7df4);
    transition: width 0.25s ease;
}

#adhdTestApp #adhdLoadingPercent {
    color: var(--adhd-primary);
    font-size: 18px;
    font-weight: 950;
}

/* =========================================================
   RESULT
========================================================= */

#adhdTestApp .adhd-result-card {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

#adhdTestApp .adhd-result-top {
    position: relative;
    overflow: hidden;
    padding: 49px 35px 43px;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(255, 255, 255, 0.18),
            transparent 30%
        ),
        linear-gradient(145deg, #252d6a, #5558e3);
    color: #ffffff;
    text-align: center;
}

#adhdTestApp .adhd-result-top .adhd-light-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

#adhdTestApp .adhd-result-top h2 {
    margin: 12px 0 7px;
    color: #ffffff !important;
    font-size: clamp(31px, 5vw, 45px);
    font-weight: 950;
    line-height: 1.28;
    letter-spacing: -0.045em;
}

#adhdTestApp #adhdResultSubtitle {
    margin-bottom: 27px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
}

#adhdTestApp .adhd-score-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 168px;
    margin: 0 auto 19px;
    border: 10px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.08),
        0 15px 40px rgba(20, 26, 80, 0.24);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

#adhdTestApp .adhd-score-ring > div {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

#adhdTestApp .adhd-score-ring strong {
    color: #ffffff;
    font-size: 62px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.06em;
}

#adhdTestApp .adhd-score-ring span {
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    font-weight: 800;
}

#adhdTestApp .adhd-score-band {
    display: table;
    margin: 0 auto 12px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

#adhdTestApp #adhdScoreSummary {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.83);
    font-size: 15px;
    line-height: 1.75;
}

#adhdTestApp .adhd-result-section {
    margin: 0;
    padding: 34px 36px;
    border-bottom: 1px solid var(--adhd-line);
}

#adhdTestApp .adhd-result-section:last-of-type {
    border-bottom: 0;
}

#adhdTestApp .adhd-result-section h3 {
    margin-bottom: 21px;
    color: var(--adhd-navy) !important;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.4;
    letter-spacing: -0.035em;
}

/* =========================================================
   DOMAIN BARS
========================================================= */

#adhdTestApp #adhdDomainBars {
    display: grid;
    gap: 17px;
}

#adhdTestApp #adhdDomainBars > div {
    min-width: 0;
}

#adhdTestApp #adhdDomainBars .adhd-domain-head,
#adhdTestApp #adhdDomainBars > div > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: #41485b;
    font-size: 14px;
    font-weight: 800;
}

#adhdTestApp #adhdDomainBars .adhd-domain-track,
#adhdTestApp #adhdDomainBars > div > div:nth-child(2) {
    width: 100%;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceef4;
}

#adhdTestApp #adhdDomainBars .adhd-domain-fill,
#adhdTestApp #adhdDomainBars > div > div:nth-child(2) > div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b5cf0, #8587f6);
}

/* =========================================================
   RADAR
========================================================= */

#adhdTestApp #adhdRadar {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

#adhdTestApp #adhdRadar text {
    font-family:
        Pretendard,
        "Noto Sans KR",
        Arial,
        sans-serif;
}

/* =========================================================
   REPORT CONTENT
========================================================= */

#adhdTestApp #adhdProfessionalReport,
#adhdTestApp #adhdStrengths,
#adhdTestApp #adhdCautions {
    color: #50586b;
    font-size: 15px;
    line-height: 1.85;
}

#adhdTestApp #adhdProfessionalReport p:last-child,
#adhdTestApp #adhdStrengths p:last-child,
#adhdTestApp #adhdCautions p:last-child {
    margin-bottom: 0;
}

#adhdTestApp #adhdProfessionalReport ul,
#adhdTestApp #adhdStrengths ul,
#adhdTestApp #adhdCautions ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#adhdTestApp #adhdProfessionalReport li,
#adhdTestApp #adhdStrengths li,
#adhdTestApp #adhdCautions li {
    position: relative;
    margin-bottom: 10px;
    padding: 13px 15px 13px 42px;
    border: 1px solid #e7e9f0;
    border-radius: 13px;
    background: #fafbfe;
}

#adhdTestApp #adhdProfessionalReport li::before,
#adhdTestApp #adhdStrengths li::before,
#adhdTestApp #adhdCautions li::before {
    content: "✓";
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--adhd-primary);
    font-weight: 950;
}

#adhdTestApp #adhdCautions li::before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    top: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff1e5;
    color: #e77817;
    font-size: 12px;
}

/* =========================================================
   ACTION PLAN
========================================================= */

#adhdTestApp .adhd-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

#adhdTestApp .adhd-action-grid > div,
#adhdTestApp .adhd-action-grid > article {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e4e7ef;
    border-radius: 16px;
    background: #fafbfe;
}

#adhdTestApp .adhd-action-grid strong,
#adhdTestApp .adhd-action-grid h4 {
    display: block;
    margin: 0 0 7px;
    color: var(--adhd-navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
}

#adhdTestApp .adhd-action-grid p {
    margin-bottom: 0;
    color: var(--adhd-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   CANVAS
========================================================= */

#adhdTestApp #adhdShareCanvas {
    display: block;
    width: min(100%, 510px);
    height: auto;
    margin: 0 auto 18px;
    border-radius: 19px;
    background: #eef0f7;
    box-shadow: 0 14px 35px rgba(30, 38, 70, 0.13);
}

/* =========================================================
   INFO GRID
========================================================= */

#adhdTestApp .adhd-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

#adhdTestApp .adhd-info-grid > div {
    min-width: 0;
    padding: 18px 12px;
    border: 1px solid #e5e8ef;
    border-radius: 15px;
    background: #f8f9fc;
    text-align: center;
}

#adhdTestApp .adhd-info-grid span {
    display: block;
    margin-bottom: 5px;
    color: #8a91a0;
    font-size: 12px;
    font-weight: 700;
}

#adhdTestApp .adhd-info-grid strong {
    display: block;
    color: #32394b;
    font-size: 16px;
    font-weight: 950;
}

/* =========================================================
   RESULT NOTICE AND BUTTONS
========================================================= */

#adhdTestApp .adhd-notice {
    margin: 31px 35px 0;
    padding: 16px 18px;
    border: 1px solid #e5e7ee;
    border-radius: 14px;
    background: #f7f8fb;
    color: #71798b;
    font-size: 13px;
    line-height: 1.75;
}

#adhdTestApp .adhd-result-buttons {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
    padding: 21px 35px 36px;
}

#adhdTestApp .adhd-result-buttons button {
    width: 100%;
}

/* =========================================================
   MODAL
========================================================= */

#adhdTestApp .adhd-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 20, 37, 0.66);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#adhdTestApp .adhd-modal[hidden] {
    display: none !important;
}

#adhdTestApp .adhd-modal-panel {
    width: min(100%, 430px);
    padding: 35px 29px 29px;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 30px 80px rgba(15, 20, 37, 0.28);
    animation: adhdModalIn 0.28s ease both;
}

@keyframes adhdModalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#adhdTestApp .adhd-modal-panel h2 {
    margin: 14px 0 8px;
    color: var(--adhd-navy) !important;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.4;
    letter-spacing: -0.035em;
}

#adhdTestApp .adhd-modal-panel p {
    margin-bottom: 22px;
    color: var(--adhd-muted);
    font-size: 14px;
}

#adhdTestApp .adhd-modal-panel button {
    width: 100%;
    margin-top: 9px;
}

/* =========================================================
   TOAST
========================================================= */

#adhdTestApp .adhd-toast {
    position: fixed;
    z-index: 1000000;
    left: 50%;
    bottom: 34px;
    max-width: calc(100vw - 28px);
    padding: 13px 18px;
    border-radius: 12px;
    background: rgba(22, 29, 46, 0.94);
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 15px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
    box-shadow: 0 15px 40px rgba(15, 20, 37, 0.3);
}

#adhdTestApp .adhd-toast.is-visible,
#adhdTestApp .adhd-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* =========================================================
   WORDPRESS THEME OVERRIDE
========================================================= */

body #primary,
body #main,
body .site-main,
body .entry-content,
body .inside-article,
body .wp-block-group,
body .wp-block-html {
    overflow: visible;
}

body .entry-content #adhdTestApp {
    margin-top: 0;
    margin-bottom: 0;
}

body .entry-content #adhdTestApp p,
body .entry-content #adhdTestApp h1,
body .entry-content #adhdTestApp h2,
body .entry-content #adhdTestApp h3 {
    max-width: none;
}

body .entry-content #adhdTestApp button {
    text-transform: none;
    letter-spacing: normal;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {
    #adhdTestApp {
        padding: 18px 10px 55px;
    }

    #adhdTestApp .adhd-hero {
        padding: 53px 35px 46px;
        border-radius: 25px;
    }

    #adhdTestApp .adhd-hero::after {
        right: 30px;
        bottom: 38px;
        font-size: 110px;
    }

    #adhdTestApp .adhd-feature-grid {
        grid-template-columns: 1fr;
    }

    #adhdTestApp .adhd-feature-grid article {
        display: grid;
        grid-template-columns: 50px 1fr;
        column-gap: 15px;
        align-items: center;
        padding: 21px;
    }

    #adhdTestApp .adhd-feature-grid article > span {
        grid-row: 1 / 3;
        margin: 0;
    }

    #adhdTestApp .adhd-feature-grid h2 {
        margin: 0 0 3px;
    }

    #adhdTestApp .adhd-card {
        margin-top: 15px;
        padding: 29px 24px;
        border-radius: 21px;
    }

    #adhdTestApp .adhd-result-card {
        padding: 0;
    }

    #adhdTestApp .adhd-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #adhdTestApp .adhd-result-buttons {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {
    #adhdTestApp {
        width: 100%;
        padding: 8px 7px 45px;
        font-size: 15px;
    }

    #adhdTestApp .adhd-hero {
        min-height: auto;
        padding: 36px 21px 30px;
        border-radius: 21px;
    }

    #adhdTestApp .adhd-hero::before {
        top: -120px;
        right: -120px;
        width: 300px;
        height: 300px;
    }

    #adhdTestApp .adhd-hero::after {
        display: none;
    }

    #adhdTestApp .adhd-brand {
        margin-bottom: 12px;
        font-size: 12px;
    }

    #adhdTestApp .adhd-badge {
        margin-bottom: 12px;
        padding: 7px 11px;
        font-size: 12px;
    }

    #adhdTestApp .adhd-hero h1 {
        margin-bottom: 14px;
        font-size: 41px;
        line-height: 1.08;
    }

    #adhdTestApp .adhd-hero > p:not(.adhd-disclaimer) {
        margin-bottom: 23px;
        font-size: 15px;
        line-height: 1.72;
    }

    #adhdTestApp .adhd-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        margin-bottom: 22px;
    }

    #adhdTestApp .adhd-hero-stats > div {
        min-height: 70px;
        padding: 10px 5px;
        border-radius: 12px;
    }

    #adhdTestApp .adhd-hero-stats strong {
        font-size: 17px;
    }

    #adhdTestApp .adhd-hero-stats span {
        font-size: 11px;
    }

    #adhdTestApp .adhd-hero > .adhd-primary-btn {
        width: 100%;
        min-width: 0;
        min-height: 57px;
        font-size: 17px;
    }

    #adhdTestApp .adhd-disclaimer {
        margin-top: 14px;
        font-size: 11px;
    }

    #adhdTestApp .adhd-feature-grid {
        gap: 9px;
        margin-top: 10px;
    }

    #adhdTestApp .adhd-feature-grid article {
        grid-template-columns: 43px 1fr;
        column-gap: 12px;
        padding: 17px 15px;
        border-radius: 16px;
    }

    #adhdTestApp .adhd-feature-grid article > span {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 22px;
    }

    #adhdTestApp .adhd-feature-grid h2 {
        font-size: 16px;
    }

    #adhdTestApp .adhd-feature-grid p {
        font-size: 12px;
        line-height: 1.58;
    }

    #adhdTestApp .adhd-card {
        width: 100%;
        margin-top: 8px;
        padding: 22px 15px;
        border-radius: 18px;
        box-shadow: 0 12px 35px rgba(31, 40, 72, 0.09);
    }

    #adhdTestApp .adhd-center {
        padding-top: 39px;
        padding-bottom: 39px;
    }

    #adhdTestApp .adhd-center h2 {
        font-size: 24px;
    }

    #adhdTestApp .adhd-quiz-head {
        margin-bottom: 14px;
    }

    #adhdTestApp .adhd-quiz-head .adhd-text-btn {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    #adhdTestApp .adhd-progress {
        height: 8px;
        margin-bottom: 24px;
    }

    #adhdTestApp .adhd-question-text {
        min-height: 97px;
        margin-bottom: 5px;
        font-size: 25px;
        line-height: 1.42;
    }

    #adhdTestApp .adhd-question-guide {
        margin-bottom: 18px;
        font-size: 12px;
    }

    #adhdTestApp .adhd-choice-list {
        gap: 8px;
        margin-bottom: 20px;
    }

    #adhdTestApp .adhd-choice-list button {
        min-height: 57px;
        padding: 13px 43px 13px 14px !important;
        border-radius: 13px !important;
        font-size: 14px;
    }

    #adhdTestApp .adhd-choice-list button::after {
        right: 14px;
        width: 18px;
        height: 18px;
    }

    #adhdTestApp .adhd-quiz-actions {
        grid-template-columns: 105px 1fr;
        gap: 8px;
    }

    #adhdTestApp .adhd-primary-btn,
    #adhdTestApp .adhd-secondary-btn,
    #adhdTestApp .adhd-dark-btn {
        min-width: 0;
        min-height: 52px;
        padding: 13px 14px;
        border-radius: 13px !important;
        font-size: 14px;
    }

    #adhdTestApp .adhd-result-card {
        padding: 0;
        overflow: hidden;
    }

    #adhdTestApp .adhd-result-top {
        padding: 38px 18px 32px;
    }

    #adhdTestApp .adhd-result-top h2 {
        font-size: 32px;
    }

    #adhdTestApp .adhd-score-ring {
        width: 145px;
        height: 145px;
        border-width: 8px;
    }

    #adhdTestApp .adhd-score-ring strong {
        font-size: 53px;
    }

    #adhdTestApp .adhd-result-section {
        padding: 27px 16px;
    }

    #adhdTestApp .adhd-result-section h3 {
        margin-bottom: 17px;
        font-size: 19px;
    }

    #adhdTestApp .adhd-action-grid {
        grid-template-columns: 1fr;
    }

    #adhdTestApp .adhd-info-grid {
        gap: 7px;
    }

    #adhdTestApp .adhd-info-grid > div {
        padding: 14px 7px;
        border-radius: 12px;
    }

    #adhdTestApp .adhd-info-grid span {
        font-size: 11px;
    }

    #adhdTestApp .adhd-info-grid strong {
        font-size: 14px;
    }

    #adhdTestApp .adhd-notice {
        margin: 22px 15px 0;
        padding: 14px;
        font-size: 12px;
    }

    #adhdTestApp .adhd-result-buttons {
        gap: 8px;
        padding: 16px 15px 26px;
    }

    #adhdTestApp .adhd-modal-panel {
        padding: 29px 20px 21px;
        border-radius: 20px;
    }

    #adhdTestApp .adhd-toast {
        bottom: 20px;
        width: calc(100vw - 28px);
        font-size: 13px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 370px) {
    #adhdTestApp .adhd-hero {
        padding-right: 16px;
        padding-left: 16px;
    }

    #adhdTestApp .adhd-hero h1 {
        font-size: 36px;
    }

    #adhdTestApp .adhd-hero-stats strong {
        font-size: 15px;
    }

    #adhdTestApp .adhd-hero-stats span {
        font-size: 10px;
    }

    #adhdTestApp .adhd-question-text {
        font-size: 22px;
    }
}

/* GENERATED RESULT ITEMS */
#adhdTestApp .adhd-list-item{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;margin-bottom:10px;padding:14px 15px;border:1px solid #e7e9f0;border-radius:13px;background:#fafbfe;}
#adhdTestApp .adhd-list-item strong{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#eeeeff;color:var(--adhd-primary);font-size:14px;font-weight:950;}
#adhdTestApp #adhdCautions .adhd-list-item strong{background:#fff1e5;color:#e77817;}
#adhdTestApp .adhd-list-item span{color:#50586b;font-size:15px;line-height:1.75;}


/* =========================================================
   BREAK SCREEN ADS
========================================================= */
#adhdTestApp .adhd-break-ad {
    width: 100%;
    max-width: 680px;
    margin: 24px auto 20px;
    padding: 14px 8px;
    border-top: 1px solid #eceef4;
    border-bottom: 1px solid #eceef4;
    background: #ffffff;
}
#adhdTestApp .adhd-break-ad[hidden],
#adhdTestApp .adhd-break-ad-slot[hidden] {
    display: none !important;
}
#adhdTestApp .adhd-break-ad-slot {
    width: 100%;
    min-height: 90px;
    overflow: hidden;
}
#adhdTestApp .adhd-break-ad .adsbygoogle {
    display: block;
    width: 100%;
}
@media (max-width: 560px) {
    #adhdTestApp .adhd-break-ad {
        margin: 18px auto 16px;
        padding: 10px 0;
    }
    #adhdTestApp .adhd-break-ad-slot {
        min-height: 70px;
    }
}
