:root {
    --primary: #0066cc;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light-bg: #f8f9fa;
    --border: #dee2e6;
}

.job-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.quiz-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.quiz-header {
    background: linear-gradient(135deg, var(--primary) 0%, #004999 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.quiz-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.quiz-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.progress-container {
    margin: 20px 0 10px;
}

.progress-bar-wrapper {
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
}

.quiz-body {
    padding: 40px;
}

.question-wrapper {
    display: none;
    animation: fadeIn 0.3s ease;
}

.question-wrapper.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 24px;
    line-height: 1.4;
}

.answer-option {
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    border-color: var(--primary);
    background: white;
    transform: translateX(4px);
}

.answer-option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.input-field.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn-secondary {
    background: var(--light-bg);
    color: #495057;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.thank-you-screen {
    text-align: center;
    padding: 60px 40px;
    display: none;
}

.thank-you-screen.show {
    display: block;
}

.thank-you-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.thank-you-screen h2 {
    font-size: 32px;
    color: var(--success);
    margin-bottom: 16px;
}

.thank-you-screen p {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .job-quiz-container {
        margin: 20px auto;
    }

    .quiz-header {
        padding: 20px;
    }

    .quiz-header h1 {
        font-size: 22px;
    }

    .quiz-body {
        padding: 24px;
    }

    .question-title {
        font-size: 18px;
    }

    .button-group {
        flex-direction: column;
    }
}
textarea[name="quiz_payload"],
textarea[name="quiz_html_payload"],
textarea[name="quiz_score"] {
    display: none;
}
.hidden_input_field {
    display: none;
}