@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ari-test-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    color: #1a1a1a;
}

.ari-test-wrapper h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ari-question-block {
    margin-bottom: 30px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.question-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.ari-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ari-answer-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ari-answer-label:hover {
    background: #f1f5f9;
}

.ari-answer-label input[type="radio"]:checked + span {
    font-weight: 500;
    color: #3b82f6;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.signature-pad-wrapper {
    margin-top: 30px;
}

.signature-pad-canvas-container {
    width: 100%;
    height: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}

#signature-pad {
    width: 100%;
    height: 100%;
    touch-action: none;
}

#clear-signature {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.ari-submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.2s;
}

.ari-submit-btn:hover {
    background: #1d4ed8;
}

.ari-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.ari-success {
    color: #059669;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.ari-error {
    color: #dc2626;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

/* Results Overlay */
.ari-test-wrapper {
    position: relative;
}

.ari-results-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.results-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.results-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.passed .results-title { color: #059669; }
.failed .results-title { color: #dc2626; }

.results-score {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
    color: #1a1a1a;
}

.results-message {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 30px;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ari-retake-btn {
    background: #4b5563;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#ari-retake-btn:hover {
    background: #374151;
}
