.ai-edumi-page {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 44%, #f5f8ff 100%);
}

.ai-edumi-page .ai-edumi-hero {
    padding: 44px 0 24px;
    background:
        radial-gradient(circle at 68% 12%, rgba(4, 102, 194, 0.14), transparent 30%),
        radial-gradient(circle at 24% 82%, rgba(160, 0, 21, 0.07), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ai-edumi-page .ai-edumi-hero h1 {
    margin: 0;
    color: var(--edumi-navy);
    font-size: clamp(2.35rem, 4.15vw, 3.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
}

.ai-edumi-page .ai-edumi-hero .lead {
    max-width: 680px;
    margin: 14px auto 0;
    color: #334e68;
    font-size: 1rem;
    line-height: 1.65;
}

.ai-edumi-page > .container {
    width: min(1120px, calc(100% - 32px));
    max-width: 1120px;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
}

.ai-edumi-page .progress-bar-custom {
    width: 100%;
    height: 14px;
    margin: 8px 0 28px;
    overflow: hidden;
    border: 1px solid rgba(4, 102, 194, 0.12);
    border-radius: 999px;
    background: #edf2f8;
}

.ai-edumi-page .progress-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #ff3e3e 0%, #a00070 48%, #0466c2 100%);
    transition: width 0.3s ease-in-out;
}

.ai-edumi-page .section-ai {
    display: none;
    margin-bottom: 44px;
}

.ai-edumi-page .section-ai.active {
    display: block;
}

.ai-edumi-page .result-container {
    display: none;
    min-height: 400px;
    margin: 0 auto 56px;
    text-align: center;
}

.ai-edumi-page .card {
    overflow: hidden;
    border: 1px solid var(--edumi-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.06);
}

.ai-edumi-page .ai-card-body {
    margin: 0;
    padding: 30px;
}

.ai-edumi-page .section-ai h2,
.ai-edumi-page .result-container h2 {
    color: var(--edumi-navy);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.16;
}

.ai-edumi-page .section-ai p,
.ai-edumi-page .result-container p,
.ai-edumi-page .text-muted {
    color: var(--edumi-muted) !important;
}

.ai-edumi-page .btn-choice {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(4, 102, 194, 0.35);
    border-radius: 8px;
    background: #ffffff;
    color: var(--edumi-navy);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    box-shadow: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.ai-edumi-page .btn-choice:hover {
    border-color: var(--edumi-blue);
    background: var(--edumi-gradient);
    box-shadow: 0 10px 24px rgba(160, 0, 21, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.ai-edumi-page .btn-choice:hover h5,
.ai-edumi-page .btn-choice:hover small,
.ai-edumi-page .btn-choice.selected h5,
.ai-edumi-page .btn-choice.selected small,
.ai-edumi-page .level-btn.selected h5,
.ai-edumi-page .level-btn.selected small,
.ai-edumi-page .goal-btn.selected h5,
.ai-edumi-page .goal-btn.selected small {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.ai-edumi-page .likert-container .btn-choice:hover,
.ai-edumi-page .likert-container .btn-choice.selected {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.ai-edumi-page .btn-choice.selected,
.ai-edumi-page .level-btn.selected,
.ai-edumi-page .goal-btn.selected {
    border-color: transparent;
    background: linear-gradient(135deg, #ff3e3e 0%, #a00070 48%, #0466c2 100%);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(160, 0, 21, 0.18);
}

.ai-edumi-page .level-btn,
.ai-edumi-page .goal-btn {
    min-height: 104px;
    flex-direction: column;
    gap: 6px;
    padding: 18px !important;
}

.ai-edumi-page .level-btn h5,
.ai-edumi-page .goal-btn h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.ai-edumi-page .level-btn small,
.ai-edumi-page .goal-btn small {
    display: block;
    color: inherit;
    font-weight: 600;
    opacity: 0.72;
}

.ai-edumi-page .question-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--edumi-border);
}

.ai-edumi-page .question-row:last-child {
    border-bottom: 0;
}

.ai-edumi-page .question-text {
    min-width: 0;
    color: var(--edumi-text);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.ai-edumi-page .likert-container {
    display: grid;
    grid-template-columns: repeat(5, 40px);
    gap: 8px;
    justify-content: end;
}

.ai-edumi-page .likert-container .btn-choice {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 0.9rem;
}

.ai-edumi-page .ai-helper-text {
    font-size: 0.9rem;
}

.ai-edumi-page .ai-chart-shell {
    width: min(100%, 520px);
    height: 360px;
    margin: 18px auto 0;
}

.ai-edumi-page #bigfive-radar {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto;
}

.ai-edumi-page .inclination-badge {
    min-height: 38px;
    padding: 0 14px;
    border-color: transparent;
    background: var(--edumi-gradient);
    color: #ffffff;
    font-size: 0.86rem;
    box-shadow: 0 10px 22px rgba(160, 0, 21, 0.16);
}

.ai-edumi-page .course-recommendation {
    margin-top: 28px;
    padding: 22px;
    text-align: left;
}

.ai-edumi-page #recommended-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-edumi-page .field-badge {
    min-height: 38px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 0.82rem;
    white-space: normal;
    border: 1px solid transparent;
    background: var(--edumi-gradient);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(160, 0, 21, 0.16);
}

@media (max-width: 767.98px) {
    .ai-edumi-page .ai-edumi-hero {
        padding: 34px 0 20px;
    }

    .ai-edumi-page > .container {
        width: min(100% - 24px, 640px);
    }

    .ai-edumi-page .ai-card-body {
        padding: 22px;
    }

    .ai-edumi-page .question-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
        text-align: center;
    }

    .ai-edumi-page .question-text {
        text-align: center;
    }

    .ai-edumi-page .likert-container {
        justify-content: center;
    }

    .ai-edumi-page .ai-chart-shell {
        height: 320px;
    }
}

@media (max-width: 420px) {
    .ai-edumi-page .ai-edumi-hero h1 {
        font-size: 2rem;
    }

    .ai-edumi-page .ai-card-body,
    .ai-edumi-page .course-recommendation {
        padding: 18px;
    }

    .ai-edumi-page .likert-container {
        grid-template-columns: repeat(5, 36px);
        gap: 6px;
    }

    .ai-edumi-page .likert-container .btn-choice {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }
}

@media (hover: none) {
    .ai-edumi-page .btn-choice:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-edumi-page .progress-bar-fill,
    .ai-edumi-page .btn-choice {
        transition: none !important;
    }
}
