:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #22c55e;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

#form2 {
    display: none;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.instructions {
    background-color: var(--card-background);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.instructions h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
}

.question {
    background-color: var(--card-background);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.question:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.question h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.25rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background-color: var(--background-color);
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: white;
    border-radius: 50%;
}

.radio-option label {
    cursor: pointer;
    flex-grow: 1;
}

textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    max-width: 100%;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.name {
    display: block;
    margin-bottom: 2rem;
}

.name input {
    width: 97.5%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.name input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    margin: 2rem auto;
    min-width: 200px;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

/* Error states */
.error {
    border-color: var(--error-color) !important;
}

/* Links styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .question {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* Error and success messages */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.error-message {
    background-color: #fee2e2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.success-message {
    background-color: #dcfce7;
    color: var(--success-color);
    border: 1px solid #bbf7d0;
}

/* Question states */
.question.answered {
    border-left: 4px solid var(--success-color);
}

.question.error {
    border-color: var(--error-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Instruction content styling */
.instruction-content {
    margin-top: 1rem;
}

.instruction-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.instruction-content li {
    margin-bottom: 0.5rem;
}

.good-luck {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    text-align: center;
}

/* Chart image styling */
.question img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-message,
    .success-message {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

/* Remove timer styles */
.timer {
    display: none;
}

.table-section {
    margin: 2rem 0;
}

.table-section h3 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-background);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--background-color);
}

.data-table tbody tr:hover {
    background-color: #f1f5f9;
}

.editable {
    background-color: #fff8e6;
    cursor: text;
    min-width: 60px;
}

.editable:focus {
    outline: none;
    background-color: #fff;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.editable:empty::before {
    content: "Click to edit";
    color: #94a3b8;
    font-style: italic;
}

/* Responsive table */
@media (max-width: 1024px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Yellow highlight for empty editable cells */
.editable:empty {
    background-color: #fef9c3;
}

/* Add to existing styles */

.questions-section {
    margin-top: 3rem;
}

.questions-section .question {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.questions-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.questions-section p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.answer-group {
    margin-bottom: 1.5rem;
}

.answer-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.questions-section textarea.editable {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    min-height: 100px;
    background-color: white;
}

.questions-section textarea.editable:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.questions-section textarea.editable.error {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .questions-section .question {
        padding: 1rem;
    }

    .questions-section textarea.editable {
        min-height: 80px;
    }
}