:root {
    --jat-primary: #2E7D32;
    /* Dark Green */
    --jat-primary-dark: #1B5E20;
    --jat-bg: #ffffff;
    --jat-text: #111111;
    /* Black */
    --jat-text-light: #444444;
    /* Dark Grey */
    --jat-surface: #f8f9fa;
    --jat-border: #000000;
    --jat-radius: 12px;
    --jat-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.jat-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--jat-bg);
    border-radius: var(--jat-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    font-family: var(--jat-font);
    color: var(--jat-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.jat-title,
.jat-result-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000;
    line-height: 1.2;
}

.jat-description {
    font-size: 1.1rem;
    color: var(--jat-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.jat-btn {
    background: var(--jat-primary);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.jat-btn:hover {
    background: var(--jat-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.jat-btn-secondary {
    background: transparent;
    color: var(--jat-text);
    border: 2px solid var(--jat-border);
    box-shadow: none;
}

.jat-btn-secondary:hover {
    border-color: var(--jat-text);
    background: transparent;
    color: #000;
    transform: translateY(-1px);
}

/* Question Section */
.jat-progress-bar {
    height: 6px;
    background: var(--jat-surface);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.jat-progress-fill {
    height: 100%;
    background: var(--jat-primary);
    width: 0%;
    transition: width 0.4s ease;
}

.jat-question {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    min-height: 3.6em;
    /* Prevent layout shift */
    display: flex;
    align-items: center;
    justify-content: center;
}

.jat-options {
    display: grid;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.jat-option {
    background: var(--jat-surface);
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--jat-text);
    text-align: left;
    /* Better for reading options */
}

@media(min-width: 600px) {
    .jat-option {
        text-align: center;
    }
}

.jat-option:hover {
    background: #fff;
    border-color: var(--jat-primary);
    color: var(--jat-primary);
}

/* Force Green on all interaction states to override theme defaults */
#jat-jungian-test-container .jat-options .jat-option:hover,
#jat-jungian-test-container .jat-options .jat-option:focus,
#jat-jungian-test-container .jat-options .jat-option:active,
#jat-jungian-test-container .jat-options .jat-option.selected {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3) !important;
}

.jat-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid var(--jat-border);
    padding-top: 20px;
}

.jat-nav-btn {
    background: none;
    border: none;
    font-size: 0.95rem;
    color: var(--jat-text-light);
    cursor: pointer;
    padding: 10px;
}

/* Force specific styling for Nav button to override theme defaults */
#jat-jungian-test-container .jat-nav-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: #444444 !important;
    box-shadow: none !important;
    border: none !important;
}

.jat-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#jat-jungian-test-container .jat-nav-btn:hover:not(:disabled) {
    background-color: #2E7D32 !important;
    color: #ffffff !important;
    border-radius: 5px;
    /* Add radius for better look if it gains a background */
}

/* Results */
.jat-main-result {
    font-size: 3rem;
    color: var(--jat-primary);
    margin: 10px 0 30px;
}

.jat-result-desc {
    text-align: left;
    background: var(--jat-surface);
    padding: 30px;
    border-radius: var(--jat-radius);
    margin-bottom: 30px;
}

.jat-result-desc h4 {
    margin-top: 0;
}

.jat-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.jat-score-box span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.jat-bar-bg {
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.jat-bar-fill {
    height: 100%;
    background: var(--jat-text);
    width: 0%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Spinner */
.jat-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--jat-surface);
    border-top-color: var(--jat-primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 600px) {
    .jat-container {
        padding: 25px 20px;
        margin: 20px;
    }

    .jat-title {
        font-size: 2rem;
    }

    .jat-scores {
        grid-template-columns: 1fr;
    }

    .jat-result-columns {
        grid-template-columns: 1fr !important;
    }
}

/* Elaborate Result Styles */
.jat-result-section {
    text-align: left;
    margin-bottom: 30px;
}

.jat-result-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.jat-result-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.jat-col h4 {
    color: var(--jat-primary);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.jat-col p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: var(--jat-text-light);
}

.jat-growth-box {
    background: #f1f8e9;
    /* Very light green hint */
    border-left: 5px solid var(--jat-primary);
    padding: 20px;
    border-radius: 4px;
}

.jat-growth-box h4 {
    margin-top: 0;
    color: var(--jat-primary-dark);
    margin-bottom: 10px;
}

.jat-growth-box p {
    margin: 0;
    font-style: italic;
    color: #444;
}

.jat-result-deep-dive {
    font-size: 1rem;
    color: var(--jat-text-light);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 3px solid var(--jat-border);
}

.jat-section-title {
    font-size: 1.4rem;
    color: var(--jat-primary-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #efefef;
    padding-bottom: 10px;
}

.jat-col ul,
.jat-growth-box ul {
    padding-left: 20px;
    margin: 0;
}

.jat-col li,
.jat-growth-box li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--jat-text-light);
}

.jat-growth-box li {
    color: #333;
}