/* questiom.com - basic styles replacing Voila ipywidgets look */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #fafafa;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    flex-grow: 1;
}

h1, h2, h3, h4 {
    color: #222;
}

/* forms */

label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* buttons and links styled as buttons */

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #e0e0e0;
    color: #333;
    border: 1px solid #bbb;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #d0d0d0;
}

.btn-submit {
    margin-top: 20px;
    font-size: 16px;
}

button.btn {
    font-size: 14px;
}

/* actions row */

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

/* error messages */

.error {
    color: #c00;
    margin-top: 12px;
}

/* questionnaire */

.cover img {
    max-width: 100%;
    margin-bottom: 20px;
}

.question {
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.question img {
    max-width: 100%;
}

.answer {
    margin-left: 20px;
    margin-bottom: 12px;
}

.answer img {
    max-width: 100%;
}

.radio-group {
    margin-top: 4px;
}

.radio-group label {
    display: inline-block;
    font-weight: normal;
    margin-right: 16px;
    cursor: pointer;
}

/* confirmation */

.confirmation-text {
    background: #f5f5f5;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: monospace;
}
