#tft-quiz-app {
    /* Переменные из :root */
    --slider-track-height: 10px;
    --thumb-size: 24px;
    --thumb-color: #3498db;
    --label-color: #555;
    --value-color: #333;
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --light-gray: #ecf0f1;
    --medium-gray: #bdc3c7;
    --dark-gray: #7f8c8d;
    --text-dark: #2c3e50;
    --text-medium: #34495e;
    --bg-light: #f0f4f8;
    --bg-white: #ffffff;
    --accent-light: #e8f4fd;
    --accent-border: #aed6f1;

    /* Стили из body */
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-medium);
    /* Примечание: следующие стили могут влиять на страницу. 
       Возможно, их лучше удалить или настроить в зависимости от того, 
       как плагин встраивается в страницу. */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#tft-quiz-app .container {
    background-color: var(--bg-white);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

#tft-quiz-app h1,
#tft-quiz-app h2,
#tft-quiz-app h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

#tft-quiz-app h1 { font-size: 1.8em; }
#tft-quiz-app h2 { font-size: 1.5em; }
#tft-quiz-app h3 { font-size: 1.3em; margin-top: 25px; }
#tft-quiz-app p { line-height: 1.6; text-align: left; margin-bottom: 15px; }
#tft-quiz-app ul { text-align: left; margin-left: 20px; margin-bottom: 15px; }
#tft-quiz-app li { margin-bottom: 8px; }
#tft-quiz-app strong { font-weight: 700; }

/* --- Intro Area --- */
#tft-quiz-app #intro-container p { text-align: justify; }
#tft-quiz-app #start-test-btn { margin-top: 20px; background-color: var(--secondary-color); }
#tft-quiz-app #start-test-btn:hover { background-color: #27ae60; }

/* --- Quiz Area --- */
#tft-quiz-app #quiz-main-container { display: none; }
#tft-quiz-app #question-area { margin-top: 30px; text-align: left; min-height: 250px; }
#tft-quiz-app #progress { font-size: 0.9em; color: var(--dark-gray); margin-bottom: 15px; }
#tft-quiz-app #question-text { font-size: 1.2em; color: var(--text-medium); margin-bottom: 35px; line-height: 1.6; min-height: 50px; }

/* Slider Styles */
#tft-quiz-app .slider-wrapper { margin-top: 20px; }
#tft-quiz-app .slider-container { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
#tft-quiz-app .slider-label { font-size: 1em; color: var(--label-color); min-width: 40px; text-align: center; }
#tft-quiz-app .slider-label.left { text-align: right; color: var(--danger-color); }
#tft-quiz-app .slider-label.right { text-align: left; color: var(--secondary-color); }

#tft-quiz-app #answer-slider {
    flex-grow: 1;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: var(--slider-track-height);
    background: linear-gradient(to right, var(--danger-color), var(--warning-color), var(--secondary-color));
    border-radius: calc(var(--slider-track-height) / 2);
    outline: none;
    cursor: pointer;
    transition: opacity .2s;
}

#tft-quiz-app #answer-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--thumb-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
}

#tft-quiz-app #answer-slider::-moz-range-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--thumb-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
    border: none;
}

#tft-quiz-app #slider-value-display {
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    color: var(--value-color);
    padding: 8px;
    background-color: #f8f9f9;
    border-radius: 5px;
    min-height: 25px;
    transition: color 0.1s ease-in-out;
}

/* Button Styles */
#tft-quiz-app button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 1.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

#tft-quiz-app button:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#tft-quiz-app button:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.7;
}

#tft-quiz-app #next-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    margin-top: 35px;
    /* opacity: 0.5; */
    /* pointer-events: none; */
}

#tft-quiz-app .reload-btn {
    background-color: var(--secondary-color);
    margin: 20px auto 0;
    display: block;
}

#tft-quiz-app .reload-btn:hover {
    background-color: #27ae60;
}

/* --- Results Area --- */
#tft-quiz-app #results-area {
    display: none;
    margin-top: 30px;
    text-align: left;
    background-color: var(--accent-light);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
}

#tft-quiz-app #results-area h2 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
}

#tft-quiz-app #result-output {
    font-size: 1.15em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    background-color: var(--bg-white);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    line-height: 1.4;
}

#tft-quiz-app #result-interpretation p,
#tft-quiz-app #result-interpretation ul {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-medium);
    text-align: left;
}

#tft-quiz-app #result-interpretation span { font-weight: bold; }
#tft-quiz-app #result-interpretation h3 { text-align: center; color: var(--primary-color); margin-bottom: 15px; }
#tft-quiz-app #result-interpretation hr { border: none; border-top: 1px solid var(--accent-border); margin: 25px 0; }

/* --- Manual Test Area --- */
#tft-quiz-app #manual-test-container {
    background-color: var(--bg-white);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-bottom: 30px;
}

#tft-quiz-app #manual-test-area { text-align: left; }
#tft-quiz-app #manual-test-area h3 { text-align: center; margin-bottom: 15px; margin-top: 0; }
#tft-quiz-app #manual-test-area div { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; justify-content: center; }
#tft-quiz-app #manual-test-area label { min-width: 20px; font-weight: bold; }
#tft-quiz-app #manual-test-area input[type="number"] {
    padding: 8px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    width: 80px;
    text-align: right;
}

#tft-quiz-app #manual-calc-btn {
    margin-top: 15px;
    background-color: var(--warning-color);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#tft-quiz-app #manual-calc-btn:hover { background-color: #d4ac0d; }

/* Hide elements */
#tft-quiz-app .hidden { display: none; }

/* ===== СТИЛИ ДЛЯ КОНТЕЙНЕРА С КНОПКОЙ-ПРИЗЫВОМ (CTA) ===== */
.tft-cta-container {
    margin: 40px 0 25px 0;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.tft-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6f61; /* Яркий акцентный цвет */
    color: #ffffff !important; /* !important, чтобы перебить стили темы */
    font-size: 18px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tft-cta-button:hover {
    background-color: #e65a50;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Styles for full results page */
.p-value-wrapper {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2em;
}

.p-value-score {
    color: #d9534f;
    font-weight: bold;
}