/* Exam solutions page — pairs with mg-page-hero.css and terms-legal.css */

.mg-exam-solutions-page {
    --exam-solutions-text: 1.5rem;
    font-size: var(--exam-solutions-text);
}

.mg-exam-solutions-page .mg-exam-solutions-steps {
    display: grid;
    gap: 0.85rem;
}

.mg-exam-solutions-page .mg-exam-solutions-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.mg-exam-solutions-page .mg-exam-solutions-step-marker {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mg-exam-solutions-page .mg-exam-solutions-step p {
    margin: 0;
    font-size: var(--exam-solutions-text);
    line-height: 1.55;
    color: #57534e;
}

.mg-exam-solutions-page .mg-exam-solutions-legal {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e7e5e4;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #78716c;
}

.mg-exam-solutions-page .mg-exam-solutions-legal strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #44403c;
}

.mg-exam-solutions-picker-stack {
    display: grid;
    gap: 0.75rem;
}

.mg-exam-picker-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid #e7ecf3;
    background: #fff;
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.mg-exam-picker-item.is-selected {
    border-color: rgba(13, 110, 253, 0.45);
    background: rgba(13, 110, 253, 0.06);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.1);
}

.mg-exam-picker-item:hover,
.mg-exam-picker-item:focus-visible {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
    color: inherit;
}

.mg-exam-picker-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.mg-exam-picker-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.mg-exam-picker-copy strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #14213d;
    line-height: 1.25;
}

.mg-exam-picker-copy span {
    font-size: 1.15rem;
    color: #6b7280;
    line-height: 1.4;
}

.mg-exam-picker-arrow {
    color: #9ca3af;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mg-exam-solutions-flow {
    display: grid;
    gap: 1.25rem;
}

.mg-exam-solutions-flow-section {
    padding-top: 0.35rem;
}

.mg-exam-solutions-flow-section--revealed {
    animation: mg-exam-flow-reveal 0.28s ease-out;
}

@keyframes mg-exam-flow-reveal {
    from {
        opacity: 0;
        transform: translateY(0.65rem);
    }

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

.mg-exam-solutions-loading {
    display: none;
    align-items: center;
    gap: 0.65rem;
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-size: 1.15rem;
    font-weight: 600;
}

.mg-exam-solutions-loading.htmx-request {
    display: inline-flex;
}

.mg-exam-solutions-loading-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(13, 110, 253, 0.25);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: mg-exam-loading-spin 0.8s linear infinite;
}

@keyframes mg-exam-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.mg-exam-picker-item.htmx-request {
    opacity: 0.72;
    pointer-events: none;
}

.mg-exam-solutions-flow-label {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 0.45rem;
}

.mg-exam-solutions-flow-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #14213d;
    margin-bottom: 0.35rem;
}

.mg-exam-solutions-flow-hint {
    font-size: var(--exam-solutions-text);
    color: #6b7280;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}
