body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
}

.instruction-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.instruction-header {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
}

.instruction-header h3 {
    color: var(--primary-color, #4f46e5);
}

.instruction-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.border-start-md {
    border-left: 1px solid #dee2e6;
}
@media (max-width: 767.98px) {
    .border-start-md {
        border-left: none;
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

.palette-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-weight: bold;
}

.palette-box.not-visited { background-color: #6c757d; } /* Gray */
.palette-box.not-answered { background-color: #dc3545; } /* Red */
.palette-box.answered { background-color: #198754; } /* Green */
.palette-box.marked { background-color: #6610f2; } /* Indigo */
.palette-box.answered-marked { background-color: #6610f2; border: 2px solid #198754;} /* Indigo with Green circle */


#proceed-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ✅ Agreement Checkbox - Highlighted */
.agreement-box {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 2px solid #4f46e5;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: subtlePulse 2s ease-in-out 3;
}

.agreement-box:hover {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    transform: scale(1.01);
}

.agreement-box.checked {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #16a34a;
}

.agreement-checkbox {
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #4f46e5 !important;
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-checkbox:checked {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.agreement-box .form-check-label {
    cursor: pointer;
    font-size: 1rem;
    color: #1e1b4b;
    user-select: none;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
    50% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.15); }
}
