:root {
    --primary: #0f766e;
    --primary-light: #1f7a73;
    --primary-soft: #e6f4f7;

    --bg-page: #f3f4f6;
    --bg-card: #ffffff;
    --bg-answer: #f3f4f6;
    --bg-answer-hover: #e5e7eb;

    --border: #e5e7eb;
    --text-main: #111827;
    --text-muted: #374151;

    --radius-main: 16px;
    --radius-small: 12px;
}

.test-preview
{
margin-bottom:80px;
}

/* =========================
   QUESTION BLOCK
========================= */
.question-fieldset {
    
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-main);
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 25px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* =========================
   QUESTION HEADER (LEGEND)
========================= */
.question-fieldset legend {
    display: block;
    width: 100%;

    font-size: 17px;
    font-weight: 600;
    color: #fff;

    padding: 14px 18px;
    border-radius: var(--radius-small);
    margin-bottom: 14px;

    background: linear-gradient(135deg, var(--primary), var(--primary-light));

    box-shadow: 0 6px 16px rgba(15,118,110,0.25);
}

/* =========================
   ANSWERS
========================= */
.clickable-answer {
    display: flex;
    align-items: center;

    padding: 14px 16px;
    border-radius: var(--radius-small);
    border: 1px solid var(--border);

    background: var(--bg-answer);
    color: var(--text-muted);

    margin-bottom: 8px;
    cursor: pointer;

    transition: all 0.15s ease;
}

/* hover */
.clickable-answer:hover {
    background: var(--bg-answer-hover);
    transform: translateY(-1px);
}

/* RADIO */
.clickable-answer input {
    margin-right: 10px;
    accent-color: var(--primary);
}

/* SELECTED */
.clickable-answer:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--text-main);
    font-weight: 500;

    box-shadow: 0 4px 12px rgba(15,118,110,0.12);
    transform: scale(1.01);
}

/* =========================
   FORM (CTA)
========================= */
.form-wrapper {
   padding: 20px;
    border-radius: var(--radius-main);

    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* GDPR text */
.gdpr-message {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* ROW */
.form-row {
 display: flex;
    flex-direction: column;
    gap: 10px;
}
.email-label {
    font-size: 16px;
    font-weight: 500;
    color: #0f766e; /* rovnaká farba ako button */
}
/* INPUT */
.email-input {
    width: 100%;
    padding: 14px 16px;

    border-radius: var(--radius-small);
    border: 2px solid var(--border);

    font-size: 16px;
    transition: all 0.2s ease;
}

.email-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

/* BUTTON */
.btn_test {
    width: 100%;
    padding: 15px;

    border-radius: var(--radius-small);
    border: none;

    font-size: 17px;
    font-weight: 600;
    color: #fff;

    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    cursor: pointer;

    transition: all 0.2s ease;

    box-shadow: 0 6px 16px rgba(15,118,110,0.25);
}

/* hover */
.btn_test:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15,118,110,0.35);
}

/* click */
.btn_test:active {
    transform: scale(0.98);
}

/* =========================
   DESKTOP LAYOUT
========================= */
@media (min-width: 768px) {

    .form-row {
        flex-direction: row;
        align-items: center;
    }

    .email-input {
        flex: 1;
    }

    .btn_test {
        width: auto;
        min-width: 220px;
        height: 52px;
        white-space: nowrap;
    }
}
.question-error {
    border: 2px solid #f59e0b !important;
    background: #fff7ed !important;
}


.question-hint {
    display: none;
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 4px;
}
.question-fieldset.question-error .question-hint {
    display: block;
}
.result-container
{
height:600px;
}
.result-loader {
    width: 100%;
    max-width: 900px;
    margin: 60px auto;
    padding: 60px 20px;
    text-align: center;
    background: #f3f3f3;
    border-radius: 20px;
}

.result-loader h2 {
    font-size: 26px;
    margin-bottom: 30px;
}

.result-loader p {
    margin-top: 20px;
    color: #555;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #ddd;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
.result-wrapper {
    max-width: 1440px;
    margin: 20px auto;
    padding: 0 16px;
}

.result-header {
    text-align: center;
    margin-bottom: 10px;
}

.result-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.result-header h1 {
    font-size: 32px;
    margin:  0;
}

.result-subtitle {
    color: #4f46e5;
    font-size: 16px;
}
.result-grid {
    display: flex;
    gap: 24px;
}
.result-left {
    flex: 2;
}

.result-right {
    flex: 1;
}


@media (max-width: 768px) {
    .result-grid {
        flex-direction: column;
    }

    .result-left,
    .result-right {
        width: 100%;
    }
}
.result-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.result-right .result-payment-placeholder {
    background: #fff;
    border-radius: 16px;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.result-teaser-box {
    background: #eef2ff;
    border-radius: 12px;
    padding: 18px;
    border-left: 4px solid #4f46e5;
}
.result-teaser-box h3
{
margin: 0;
}
.result-teaser-box p
{
margin: 0;
}

.result-blur-box {
    position: relative;
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #f9fafb;
    overflow: hidden;
}

.result-blur-box p {
    color: #111;
    line-height: 1.6;
    font-size: 9px;
    letter-spacing: 1px;
}

.result-blur-box::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.4);
}

.result-cta-text h3 {
    font-size: 18px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-cta-text p {
margin: 0;
    color: #555;
}
.payment-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.payment-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.payment-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}
.payment-sub {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.payment-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #5b4cf0, #6c5ce7);
    transition: all 0.2s ease;
}

.payment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(91,76,240,0.3);
}

.payment-list {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
    color: #555;
    font-size: 12px;
}

.payment-list li {
    margin-bottom: 6px;
}

.payment-logos img {
    display: flex;
    align-items: center;
    margin: 0;
    width:80%;
}

.payment-privacy {
    margin-top: 10px;
    font-size: 12px;
    color: #444;
}

.payment-privacy strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.payment-privacy ul {
    padding-left: 0;
    list-style: none;
}

.payment-privacy li {
    margin-bottom: 5px;
}