/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Header */
header {
    background-color: #373d42;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2em;
    font-weight: 300;
}

/* Form elements */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

select, input[type="text"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

select:focus, input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #85af7c;
}

/* Questions */
.questions-container {
    margin-top: 30px;
}

.question {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid #85af7c;
}

.question-header {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #373d42;
}

.question-type {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
    margin-bottom: 10px;
}

/* Radio and checkbox styles */
.answer-option {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.answer-option:hover {
    border-color: #85af7c;
    background-color: #f0f8f0;
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin-right: 10px;
}

.answer-option.selected {
    border-color: #85af7c;
    background-color: #e8f5e8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #85af7c;
    color: white;
}

.btn-primary:hover {
    background-color: #6d9564;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Results */
.results-container {
    margin-top: 30px;
}

.result-item {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid #ccc;
}

.result-item.correct {
    border-left-color: #28a745;
    background-color: #f0f9f0;
}

.result-item.incorrect {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.result-item.not-evaluated {
    border-left-color: #ffc107;
    background-color: #fffbf0;
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.result-icon {
    font-size: 24px;
    margin-right: 10px;
}

.result-icon.success {
    color: #28a745;
}

.result-icon.error {
    color: #dc3545;
}

.result-icon.warning {
    color: #ffc107;
}

.result-question {
    font-weight: 600;
    flex-grow: 1;
}

.result-feedback {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 0.95em;
}

/* Loading and messages */
.loading {
    text-align: center;
    padding: 40px;
    color: #777;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .question {
        padding: 15px;
    }
}

/* Verification section */
.verification-info {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin: 5px 0 15px 0;
}

#captcha-code {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#captcha-input {
    max-width: 300px;
    margin: 0 auto;
}
